scoreboard players add @e[type=wither_skeleton,tag=jjc_wither_lord,tag=jjc_wither_lord2] jjc_404 1
execute as @e[type=wither_skeleton,tag=jjc_wither_lord2,scores={jjc_404=10}] at @s facing entity @p[predicate=colosseum_of_fools:survive,tag=jjc_p,distance=..60] feet run tp @s ~ ~ ~ ~ 0
execute as @e[type=wither_skeleton,tag=jjc_wither_lord2,scores={jjc_404=10}] at @s store result score @s jjc_rot run data get entity @s Rotation[0] 100
execute as @e[type=wither_skeleton,tag=jjc_wither_lord2,scores={jjc_404=1..20}] at @s run tp @s ~ ~ ~ ~ 30
execute as @e[type=wither_skeleton,tag=jjc_wither_lord2] at @s run particle dust{color:[1,1,1],scale:1} ~ ~2 ~ 0.5 1 0.5 0 5 force
execute as @e[type=wither_skeleton,tag=jjc_wither_lord2] at @s run particle minecraft:falling_dust{block_state:{Name:"minecraft:black_concrete_powder"}} ~ ~2 ~ 0.5 1 0.5 2 5
execute as @e[type=wither_skeleton,tag=jjc_wither_lord2,scores={jjc_404=20}] at @s store result entity @s Rotation[0] float 0.01 run scoreboard players get @s jjc_rot
execute as @e[type=wither_skeleton,tag=jjc_wither_lord2,scores={jjc_404=20}] at @s rotated ~ 0 run summon marker ^ ^ ^0.01 {Tags:["jjc_wither_lord2m","jjc"]}
execute as @e[type=wither_skeleton,tag=jjc_wither_lord2,scores={jjc_404=20}] at @s store result score @s jjc_x1 run data get entity @s Pos[0] 1000
execute as @e[type=wither_skeleton,tag=jjc_wither_lord2,scores={jjc_404=20}] at @s store result score @s jjc_z1 run data get entity @s Pos[2] 1000
execute as @e[type=marker,tag=jjc_wither_lord2m] at @s store result score @s jjc_x2 run data get entity @s Pos[0] 1000
execute as @e[type=marker,tag=jjc_wither_lord2m] at @s store result score @s jjc_z2 run data get entity @s Pos[2] 1000
execute as @e[type=marker,tag=jjc_wither_lord2m] at @s store result entity @n[distance=..200,type=wither_skeleton,tag=jjc_wither_lord2] Motion[0] double 0.5 run scoreboard players operation @s jjc_x2 -= @n[distance=..200,type=wither_skeleton,tag=jjc_wither_lord2] jjc_x1
execute as @e[type=marker,tag=jjc_wither_lord2m] at @s store result entity @n[distance=..200,type=wither_skeleton,tag=jjc_wither_lord2] Motion[2] double 0.5 run scoreboard players operation @s jjc_z2 -= @n[distance=..200,type=wither_skeleton,tag=jjc_wither_lord2] jjc_z1
kill @e[type=marker,tag=jjc_wither_lord2m]
execute as @e[type=wither_skeleton,tag=jjc_wither_lord2,scores={jjc_404=20}] at @s run playsound entity.player.attack.sweep hostile @a[distance=..200] ~ ~1 ~ 3 0.5
execute as @e[type=wither_skeleton,tag=jjc_wither_lord2,scores={jjc_404=20..}] at @s positioned ~-1 ~ ~-1 as @e[nbt={attributes:[{}]},dx=1,dz=1,dy=1,type=!armor_stand,tag=!jjc_wither_lord] at @s run function colosseum_of_fools:ss/wither_skeleton/wither_lord/1d
tag @e[type=wither_skeleton,tag=jjc_wither_lord,tag=jjc_wither_lord2,scores={jjc_404=30..}] add jjc_wither_lord2_r
scoreboard players reset @e[type=wither_skeleton,tag=jjc_wither_lord2_r] jjc_404
tag @e[type=wither_skeleton,tag=jjc_wither_lord,tag=jjc_wither_lord2_r] remove jjc_wither_lord2
tag @e[type=wither_skeleton,tag=jjc_wither_lord,tag=jjc_wither_lord2_r] remove jjc_wither_lord2_r