scoreboard players add @e[type=wither_skeleton,tag=jjc_wither_lord,tag=jjc_wither_lord3] jjc_404 1
execute as @e[type=wither_skeleton,tag=jjc_wither_lord,tag=jjc_wither_lord3,scores={jjc_404=..14}] at @s facing entity @p[predicate=colosseum_of_fools:survive,tag=jjc_p,distance=..60] feet run tp @s ~ ~ ~ ~ -30
execute as @e[type=wither_skeleton,tag=jjc_wither_lord3,scores={jjc_404=1}] at @s anchored eyes run playsound minecraft:entity.wither.ambient hostile @a ^ ^ ^2 2 2
execute as @e[type=wither_skeleton,tag=jjc_wither_lord3] at @s anchored eyes run particle large_smoke ^ ^ ^1 0 0 0 0.05 1 force
execute as @e[type=wither_skeleton,tag=jjc_wither_lord3,scores={jjc_404=20}] at @s anchored eyes run particle large_smoke ^ ^ ^1 0 0 0 0.1 10 force
execute as @e[type=wither_skeleton,tag=jjc_wither_lord3,scores={jjc_404=20}] at @s anchored eyes positioned ^ ^ ^1 run playsound entity.wither.shoot hostile @a[distance=..200] ~ ~ ~ 0.5 1
execute as @e[type=wither_skeleton,tag=jjc_wither_lord3,scores={jjc_404=20}] at @s anchored eyes run summon minecraft:potion ^0.1 ^ ^1 {LeftOwner:0b,HasBeenShot:0b,Motion:[0d,0d,0d],NoGravity:true,Item:{id:"wither_skeleton_skull",components:{"minecraft:potion_contents":{custom_effects:[{id:"minecraft:wither",duration:100,amplifier:0b,show_icon:1b,show_particles:1b}]}}},Tags:["jjc_wither_skull","jjc_wither_skull0","jjc_wither_lord_j","jjc_wither_skull","jjc"],Passengers:[{id:"item_display",item:{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzRmMzI4ZjUwNDQxMjliNWQxZjk2YWZmZDFiOGMwNWJjZGU2YmQ4ZTc1NmFmZjVjNTAyMDU4NWVlZjhhM2RhZiJ9fX0="}]}}},transformation:{right_rotation:[0f,1f,0f,0f],left_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1f,1f,1f]},Tags:["jjc_wither_skull","jjc_wither_wizard02"],CustomName:'{"translate":"entity.minecraft.wither_skeleton"}'}]}
execute as @e[type=wither_skeleton,tag=jjc_wither_lord3,scores={jjc_404=20}] at @s anchored eyes run summon minecraft:potion ^ ^ ^1 {LeftOwner:0b,HasBeenShot:0b,Motion:[0d,0d,0d],NoGravity:true,Item:{id:"wither_skeleton_skull",components:{"minecraft:potion_contents":{custom_effects:[{id:"minecraft:wither",duration:100,amplifier:0b,show_icon:1b,show_particles:1b}]}}},Tags:["jjc_wither_skull","jjc_wither_skull0","jjc_wither_lord_j","jjc_wither_skull","jjc"],Passengers:[{id:"item_display",item:{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzRmMzI4ZjUwNDQxMjliNWQxZjk2YWZmZDFiOGMwNWJjZGU2YmQ4ZTc1NmFmZjVjNTAyMDU4NWVlZjhhM2RhZiJ9fX0="}]}}},transformation:{right_rotation:[0f,1f,0f,0f],left_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1f,1f,1f]},Tags:["jjc_wither_skull","jjc_wither_wizard02"],CustomName:'{"translate":"entity.minecraft.wither_skeleton"}'}]}
execute as @e[type=wither_skeleton,tag=jjc_wither_lord3,scores={jjc_404=20}] at @s anchored eyes run summon minecraft:potion ^-0.1 ^ ^1 {LeftOwner:0b,HasBeenShot:0b,Motion:[0d,0d,0d],NoGravity:true,Item:{id:"wither_skeleton_skull",components:{"minecraft:potion_contents":{custom_effects:[{id:"minecraft:wither",duration:100,amplifier:0b,show_icon:1b,show_particles:1b}]}}},Tags:["jjc_wither_skull","jjc_wither_skull0","jjc_wither_lord_j","jjc_wither_skull","jjc"],Passengers:[{id:"item_display",item:{id:"minecraft:player_head",count:1,components:{"minecraft:profile":{properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzRmMzI4ZjUwNDQxMjliNWQxZjk2YWZmZDFiOGMwNWJjZGU2YmQ4ZTc1NmFmZjVjNTAyMDU4NWVlZjhhM2RhZiJ9fX0="}]}}},transformation:{right_rotation:[0f,1f,0f,0f],left_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1f,1f,1f]},Tags:["jjc_wither_skull","jjc_wither_wizard02"],CustomName:'{"translate":"entity.minecraft.wither_skeleton"}'}]}

tag @e[type=wither_skeleton,tag=jjc_wither_lord,tag=jjc_wither_lord3,scores={jjc_404=40..}] add jjc_wither_lord3_r
scoreboard players reset @e[type=wither_skeleton,tag=jjc_wither_lord3_r] jjc_404
tag @e[type=wither_skeleton,tag=jjc_wither_lord,tag=jjc_wither_lord3_r] remove jjc_wither_lord3
tag @e[type=wither_skeleton,tag=jjc_wither_lord,tag=jjc_wither_lord3_r] remove jjc_wither_lord3_r
schedule function colosseum_of_fools:ss/wither_skeleton/skull/tick 1t replace