execute as @e[type=enderman,tag=jjc_lhnqz] 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_lhnqz] at @s facing entity @p[predicate=colosseum_of_fools:survive,tag=jjc_p,distance=..60] feet run tp @s ~ ~ ~ ~ ~
execute as @e[type=enderman,tag=jjc_lhnqz,scores={jjc_303=80..}] at @s anchored eyes positioned ^ ^ ^ facing entity @p[predicate=colosseum_of_fools:survive,tag=jjc_p,distance=..60] eyes positioned ^ ^ ^1 run function colosseum_of_fools:ss/enderman/lhnqz/2
scoreboard players reset @e[type=enderman,tag=jjc_lhnqz,scores={jjc_303=80..}] jjc_202
execute as @e[type=enderman,tag=jjc_lhnqz,scores={jjc_303=80..}] at @s store result score @s jjc_303 run random value -20..20
execute if entity @e[type=enderman,tag=jjc_lhnqz,tag=jjc_lhnqz0] run function colosseum_of_fools:ss/enderman/lhnqz/3

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

execute as @e[type=armor_stand,tag=jjc_lhnqz0,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_lhnqz0,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_lhnqz0,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_lhnqz0,predicate=colosseum_of_fools:random/0.5] at @s run particle dust{color:[0.9,0.6,0.9],scale:2} ~ ~1.4 ~ 0.5 0.1 0.5 1 1