execute if entity @a[scores={nitInvadeProg=1}] as @e[tag=nitObelisk,limit=1,sort=random] at @s run function nitref:invasion/obelisks
execute if entity @a[scores={nitInvadeProg=2}] unless entity @e[tag=nitInvadeGeneral] run function nitref:invasion/update_progress
execute if entity @a[scores={nitInvadeProg=3}] as @e[tag=nitObelisk,limit=1,sort=random] at @s run function nitref:invasion/obelisks
execute if entity @a[scores={nitInvadeProg=4}] unless entity @e[tag=nitInvadeGeneral] run function nitref:invasion/update_progress
execute if entity @a[scores={nitInvadeProg=5}] as @e[tag=nitObelisk,limit=1,sort=random] at @s run function nitref:invasion/obelisks
execute if entity @a[scores={nitInvadeProg=6}] unless entity @e[tag=nitInvadeGeneral] run function nitref:invasion/update_progress
execute if entity @a[scores={nitInvadeProg=7}] as @e[tag=nitPlanarPortal] at @s run function nitref:invasion/portals
execute if entity @a[scores={nitInvadeProg=7}] run scoreboard players add @a[predicate=nitref:end_dimension] nitInvadeProg 1
execute if entity @a[scores={nitInvadeProg=7}] run tellraw @a[predicate=nitref:end_dimension] [{"text":"[۩]","color":"green","bold":true},{"text":": ","color":"white","bold":false},{"text":"Shoot down those portal banners!","color":"dark_red"}]
execute if entity @a[scores={nitInvadeProg=17}] as @e[tag=nitDrillStation] at @s run function nitref:invasion/drill
execute if entity @a[scores={nitInvadeProg=18}] unless entity @e[tag=nitInvadeGeneral] run function nitref:invasion/update_progress
execute if entity @a[scores={nitInvadeProg=19}] run function nitref:invasion/wither