execute store result score .antilag civ.counter if entity @e[type=minecraft:pillager]
execute store result score .antilag bum.counter if entity @e[type=minecraft:vindicator]
execute if score .antilag civ.counter matches 50.. as @e[type=pillager] at @s unless entity @a[distance=..20] run tp @s ~ ~-1000 ~
execute if score .antilag bum.counter matches 20.. as @e[type=vindicator] at @s unless entity @a[distance=..20] run tp @s ~ ~-1000 ~