execute as @e[type=enderman,tag=jjc_sdnqz] at @s if entity @n[predicate=colosseum_of_fools:survive,tag=jjc_p,distance=..60] run scoreboard players add @s jjc_303 1

execute as @e[type=enderman,tag=jjc_sdnqz] at @s facing entity @p[predicate=colosseum_of_fools:survive,tag=jjc_p,distance=..60] feet run tp @s ~ ~ ~ ~ ~

tag @e[type=enderman,tag=jjc_sdnqz,scores={jjc_303=60}] add jjc_sdnqz0
execute if entity @e[type=enderman,tag=jjc_sdnqz0] run function colosseum_of_fools:ss/enderman/sdnqz/3

execute as @e[type=enderman,tag=jjc_sdnqz,predicate=colosseum_of_fools:random/0.5,tag=!jjc_sdnqz0] at @s if entity @n[predicate=colosseum_of_fools:survive,tag=jjc_p,distance=..60] run scoreboard players add @s jjc_505 4
execute as @e[type=enderman,tag=jjc_sdnqz,predicate=colosseum_of_fools:random/0.5,tag=!jjc_sdnqz0] at @s if entity @n[predicate=colosseum_of_fools:survive,tag=jjc_p,distance=..8] run scoreboard players add @s jjc_505 2
execute as @e[type=enderman,tag=jjc_sdnqz,predicate=colosseum_of_fools:random/0.5,tag=!jjc_sdnqz0] at @s anchored eyes unless block ^ ^ ^ #colosseum_of_fools:no run tag @s add jjc_lhnqz_tp
tag @e[type=enderman,tag=jjc_sdnqz,scores={jjc_505=100..},tag=!jjc_sdnqz0] add jjc_lhnqz_tp

execute as @e[type=armor_stand,tag=jjc_sdnqz0,predicate=colosseum_of_fools:random/0.2] at @s store result entity @s Motion[0] double 0.005 run random value -10..10
execute as @e[type=armor_stand,tag=jjc_sdnqz0,predicate=colosseum_of_fools:random/0.2] at @s if block ~ ~ ~ #colosseum_of_fools:no if block ~ ~1 ~ #colosseum_of_fools:no if block ~ ~2 ~ #colosseum_of_fools:no if block ~ ~3 ~ #colosseum_of_fools:no if block ~ ~4 ~ #colosseum_of_fools:no store result entity @s Motion[1] double 0.005 run random value -10..10
execute as @e[type=armor_stand,tag=jjc_sdnqz0,predicate=colosseum_of_fools:random/0.2] at @s store result entity @s Motion[2] double 0.005 run random value -10..10

execute as @e[type=armor_stand,tag=jjc_sdnqz0] at @s run particle dust{color:[1,0,5],scale:2} ~ ~2.4 ~ 0.25 0.5 0.25 1 1