scoreboard players add @e[type=enderman,tag=jjc_sdnqz,tag=jjc_sdnqz0] jjc_404 1
scoreboard players add @e[type=enderman,tag=jjc_sdnqz,tag=jjc_sdnqz0] jjc_505 1
execute as @e[type=enderman,tag=jjc_sdnqz,scores={jjc_505=20..},predicate=colosseum_of_fools:ss/target,predicate=colosseum_of_fools:ss/player] at @s on target run tag @s add jjc_t
execute as @e[type=enderman,tag=jjc_sdnqz,scores={jjc_505=20..},predicate=!colosseum_of_fools:ss/target] at @s run tag @p[predicate=colosseum_of_fools:survive,tag=jjc_p,distance=..60] add jjc_t

execute as @e[type=enderman,tag=jjc_sdnqz,scores={jjc_505=20..}] at @s at @n[distance=..200,tag=jjc_t] align xyz if block ~ ~ ~ #colosseum_of_fools:no if block ~ ~-1 ~ #colosseum_of_fools:no run summon item_display ~0.5 ~-1 ~0.5 {Tags:["jjc","jjc_sdnqz_j","jjc_sdnqz_j_zs"],item:{id:"purple_stained_glass"},teleport_duration:1,transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0f,0.1f,0f]},brightness:{block:15,sky:15},Passengers:[{id:"item_display",Tags:["jjc","jjc_nov2","jjc_sdnqz_j_zs","jjc_nov","jjc_sdnqz_j_zs2"],item:{id:"purple_stained_glass"},teleport_duration:1,transformation:{translation:[0f,0f,0f],left_rotation:[0f,-0.4f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0f,0.1f,0f]},brightness:{block:15,sky:15}}]}
execute as @e[type=enderman,tag=jjc_sdnqz,scores={jjc_505=20..}] at @s at @n[distance=..200,tag=jjc_t] align xyz if block ~ ~ ~ #colosseum_of_fools:no unless block ~ ~-1 ~ #colosseum_of_fools:no run summon item_display ~0.5 ~ ~0.5 {Tags:["jjc","jjc_sdnqz_j","jjc_sdnqz_j_zs"],item:{id:"purple_stained_glass"},teleport_duration:1,transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0f,0.1f,0f]},brightness:{block:15,sky:15},Passengers:[{id:"item_display",Tags:["jjc","jjc_nov2","jjc_sdnqz_j_zs","jjc_nov","jjc_sdnqz_j_zs2"],item:{id:"purple_stained_glass"},teleport_duration:1,transformation:{translation:[0f,0f,0f],left_rotation:[0f,-0.4f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0f,0.1f,0f]},brightness:{block:15,sky:15}}]}
tag @e[tag=jjc_t] remove jjc_t
schedule function colosseum_of_fools:ss/enderman/sdnqz/tick 1t replace
execute as @e[type=enderman,tag=jjc_sdnqz,tag=jjc_sdnqz0] at @s run tp @s ~ ~ ~ ~ -90
execute as @e[type=enderman,tag=jjc_sdnqz0] at @s run particle dragon_breath ~ ~4 ~ 0.125 0.125 0.125 0.025 2 force
tag @e[type=enderman,tag=jjc_sdnqz,tag=jjc_sdnqz0,scores={jjc_404=120..}] remove jjc_sdnqz0
scoreboard players reset @e[type=enderman,tag=jjc_sdnqz,scores={jjc_505=20..}] jjc_505
execute as @e[type=enderman,tag=jjc_sdnqz,scores={jjc_404=120..}] at @s store result score @s jjc_303 run random value -80..-40
scoreboard players reset @e[type=enderman,tag=jjc_sdnqz,scores={jjc_404=120..}] jjc_404