scoreboard players add @e[type=wither_skeleton,tag=jjc_wither_warrior,tag=!jjc_wither_warrior1,tag=!jjc_wither_warrior2,predicate=colosseum_of_fools:ss/target] jjc_303 1

execute as @e[type=wither_skeleton,tag=jjc_wither_warrior,scores={jjc_303=40..}] at @s store result score @s jjc_random run random value 1..2
tag @e[type=wither_skeleton,tag=jjc_wither_warrior,scores={jjc_303=40..,jjc_random=1}] add jjc_wither_warrior1
tag @e[type=wither_skeleton,tag=jjc_wither_warrior,scores={jjc_303=40..,jjc_random=2}] add jjc_wither_warrior2
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior,scores={jjc_303=40..}] at @s store result score @s jjc_303 run random value -20..0

execute if entity @e[type=wither_skeleton,tag=jjc_wither_warrior,tag=jjc_wither_warrior1] run function colosseum_of_fools:ss/wither_skeleton/wither_warrior/11
execute if entity @e[type=wither_skeleton,tag=jjc_wither_warrior,tag=jjc_wither_warrior2] run function colosseum_of_fools:ss/wither_skeleton/wither_warrior/12

execute as @e[type=wither_skeleton,tag=jjc_wither_warrior,predicate=colosseum_of_fools:random/0.5] at @s run particle smoke ~ ~1.5 ~ 0.5 0.1 0.5 0.05 1

execute as @e[type=wither_skeleton,tag=jjc_wither_warrior] at @s store result score @s jjc_y0 run data get entity @s Pos[1] 10
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior] at @s if score @s jjc_y0 < @n[type=marker,tag=jjc_jjc,distance=..40] jjc_y0 run tag @s add jjc_wither_warrior1
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior,predicate=!colosseum_of_fools:ss/target] at @s if score @s jjc_y0 < @n[type=marker,tag=jjc_jjc,distance=..40] jjc_y0 run tp @n[type=marker,tag=jjc_jjc,distance=..40]

execute as @e[type=wither_skeleton,tag=jjc_wither_warrior,predicate=!colosseum_of_fools:ss/speed0_2] on passengers run data merge entity @s[tag=jjc_cape] {transformation:{left_rotation:[0.3f,0f,0f,0.953f],translation:[0f,-1.65f,-0.97f]},start_interpolation:0,interpolation_duration:10}
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior,predicate=colosseum_of_fools:ss/speed0_2] on passengers run data merge entity @s[tag=jjc_cape] {transformation:{left_rotation:[0.044f,0f,0f,1f],translation:[0f,-1.87f,-0.32f]},start_interpolation:0,interpolation_duration:10}
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior] at @s on passengers run data modify entity @s[tag=jjc_nov] Rotation[0] set from entity @n[distance=..200,type=wither_skeleton,tag=jjc_wither_warrior] Rotation[0]
execute as @e[type=wither_skeleton,tag=jjc_wither_warrior] on passengers at @s[tag=jjc_nov] run tp @s ~ ~ ~ ~ 0