execute in kiwi2:limitbreak_run_dimension if score world Border matches 0 positioned -24 -64 -24 as @e[tag=wave_mob,tag=!phantom_sovereign] unless entity @s[tag=wave_mob,dx=47,dy=256,dz=47] run tag @s add outside_border
execute in kiwi2:limitbreak_run_dimension if score world Border matches 1 positioned -37 -64 -37 as @e[tag=wave_mob,tag=!phantom_sovereign] unless entity @s[tag=wave_mob,dx=73,dy=256,dz=73] run tag @s add outside_border
execute in kiwi2:limitbreak_run_dimension if score world Border matches 2 positioned -49 -64 -49 as @e[tag=wave_mob,tag=!phantom_sovereign] unless entity @s[tag=wave_mob,dx=98,dy=256,dz=98] run tag @s add outside_border
execute in kiwi2:limitbreak_run_dimension if score world Border matches 3 positioned -74 -64 -74 as @e[tag=wave_mob,tag=!phantom_sovereign] unless entity @s[tag=wave_mob,dx=148,dy=256,dz=148] run tag @s add outside_border
execute in kiwi2:limitbreak_run_dimension if score world Border matches 4 positioned -149 -64 -149 as @e[tag=wave_mob,tag=!phantom_sovereign] unless entity @s[tag=wave_mob,dx=298,dy=256,dz=298] run tag @s add outside_border

execute in kiwi2:limitbreak_run_dimension if score world Border matches 0 positioned -24 -64 -24 as @e[type=spider,tag=wave_mob,tag=!phantom_sovereign] unless entity @s[type=spider,tag=wave_mob,dx=46,dy=256,dz=46] run tag @s add outside_border
execute in kiwi2:limitbreak_run_dimension if score world Border matches 1 positioned -37 -64 -37 as @e[type=spider,tag=wave_mob,tag=!phantom_sovereign] unless entity @s[type=spider,tag=wave_mob,dx=72,dy=256,dz=72] run tag @s add outside_border
execute in kiwi2:limitbreak_run_dimension if score world Border matches 2 positioned -49 -64 -49 as @e[type=spider,tag=wave_mob,tag=!phantom_sovereign] unless entity @s[type=spider,tag=wave_mob,dx=97,dy=256,dz=97] run tag @s add outside_border
execute in kiwi2:limitbreak_run_dimension if score world Border matches 3 positioned -74 -64 -74 as @e[type=spider,tag=wave_mob,tag=!phantom_sovereign] unless entity @s[type=spider,tag=wave_mob,dx=147,dy=256,dz=147] run tag @s add outside_border
execute in kiwi2:limitbreak_run_dimension if score world Border matches 4 positioned -149 -64 -149 as @e[type=spider,tag=wave_mob,tag=!phantom_sovereign] unless entity @s[type=spider,tag=wave_mob,dx=298,dy=256,dz=298] run tag @s add outside_border
execute in kiwi2:limitbreak_run_dimension if entity @e[tag=wave_mob,tag=outside_border] run function kiwi2:border/teleport_wave_mobs_go

execute in kiwi2:limitbreak_run_dimension if score world Border matches 0 as @e[type=#hunter_projectiles,scores={power_shot_arrow_age=1..}] positioned -24 -64 -24 unless entity @s[dx=47,dy=256,dz=47] at @s run function kiwi2:upgrades/classes/hunter/hunter_power_shot_hit_border
execute in kiwi2:limitbreak_run_dimension if score world Border matches 1 as @e[type=#hunter_projectiles,scores={power_shot_arrow_age=1..}] positioned -37 -64 -37 unless entity @s[dx=72,dy=256,dz=72] at @s run function kiwi2:upgrades/classes/hunter/hunter_power_shot_hit_border
execute in kiwi2:limitbreak_run_dimension if score world Border matches 2 as @e[type=#hunter_projectiles,scores={power_shot_arrow_age=1..}] positioned -49 -64 -49 unless entity @s[dx=97,dy=256,dz=97] at @s run function kiwi2:upgrades/classes/hunter/hunter_power_shot_hit_border
execute in kiwi2:limitbreak_run_dimension if score world Border matches 3 as @e[type=#hunter_projectiles,scores={power_shot_arrow_age=1..}] positioned -74 -64 -74 unless entity @s[dx=147,dy=256,dz=147] at @s run function kiwi2:upgrades/classes/hunter/hunter_power_shot_hit_border
execute in kiwi2:limitbreak_run_dimension if score world Border matches 4 as @e[type=#hunter_projectiles,scores={power_shot_arrow_age=1..}] positioned -99 -64 -99 unless entity @s[dx=197,dy=256,dz=197] at @s run function kiwi2:upgrades/classes/hunter/hunter_power_shot_hit_border