execute as @e[type=cave_spider,tag=jjc_brooding_spider4_2,scores={jjc_505=1..},nbt={OnGround:1b}] at @s run playsound item.mace.smash_ground block @a[distance=..200] ~ ~0.1 ~ 2 1
execute as @e[type=cave_spider,tag=jjc_brooding_spider4_2,scores={jjc_505=1..},nbt={OnGround:1b}] at @s run particle dust_pillar{block_state:{Name:"minecraft:oxidized_copper"}} ~ ~0.1 ~ 2 0 2 0 100 normal
execute as @e[type=cave_spider,tag=jjc_brooding_spider4_2,scores={jjc_505=1..},nbt={OnGround:1b}] at @s run particle explosion_emitter ~ ~ ~ 0 0 0 0 1 normal
execute as @e[type=cave_spider,tag=jjc_brooding_spider4_2,scores={jjc_505=1..},nbt={OnGround:1b}] at @s as @e[nbt={attributes:[{}]},distance=..4,type=!#colosseum_of_fools:spider] at @s run function colosseum_of_fools:ss/brooding_spider/2d
tag @e[type=cave_spider,tag=jjc_brooding_spider4,scores={jjc_505=1..},nbt={OnGround:1b}] remove jjc_brooding_spider4_2
scoreboard players add @e[type=cave_spider,tag=jjc_brooding_spider4] jjc_505 1
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,scores={jjc_505=1}] at @s run playsound entity.spider.death hostile @a[distance=..200] ~ ~ ~ 2 0
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,scores={jjc_505=1}] at @s run playsound entity.spider.death hostile @a[distance=..200] ~ ~ ~ 2 0
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,scores={jjc_505=1}] at @s run playsound entity.snowball.throw hostile @a[distance=..200] ~ ~ ~ 2 0
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,scores={jjc_505=1}] at @s run playsound entity.snowball.throw hostile @a[distance=..200] ~ ~ ~ 2 0
effect give @e[type=cave_spider,tag=jjc_brooding_spider4,scores={jjc_505=1}] slowness 3 6 true
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=1}] at @s store result score @s jjc_x1 run data get entity @s Pos[0] 1000
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=1}] at @s store result score @s jjc_z1 run data get entity @s Pos[2] 1000
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=1}] at @s as @p[predicate=colosseum_of_fools:survive,tag=jjc_p,distance=..60] at @s store result score @s jjc_x2 run data get entity @s Pos[0] 1000
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=1}] at @s as @p[predicate=colosseum_of_fools:survive,tag=jjc_p,distance=..60] at @s store result score @s jjc_z2 run data get entity @s Pos[2] 1000
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=1}] at @s store result entity @s Motion[0] double -0.000125 run scoreboard players operation @s jjc_x1 -= @p[predicate=colosseum_of_fools:survive,tag=jjc_p,distance=..60] jjc_x2
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=1}] at @s store result entity @s Motion[2] double -0.000125 run scoreboard players operation @s jjc_z1 -= @p[predicate=colosseum_of_fools:survive,tag=jjc_p,distance=..60] jjc_z2
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,scores={jjc_505=1}] at @s run data modify entity @s Motion[1] set value 2.4d
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,scores={jjc_505=1}] at @s run attribute @s generic.gravity base set 0.2

tag @e[type=cave_spider,tag=jjc_brooding_spider4,scores={jjc_505=1}] add jjc_brooding_spider4_2
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=40}] at @s run playsound entity.spider.death hostile @a[distance=..200] ~ ~ ~ 2 0
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=40}] at @s run playsound entity.spider.death hostile @a[distance=..200] ~ ~ ~ 2 0
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=40}] at @s run playsound entity.snowball.throw hostile @a[distance=..200] ~ ~ ~ 2 0
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=40}] at @s run playsound entity.snowball.throw hostile @a[distance=..200] ~ ~ ~ 2 0
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=40}] at @s store result score @s jjc_x1 run data get entity @s Pos[0] 1000
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=40}] at @s store result score @s jjc_z1 run data get entity @s Pos[2] 1000
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=40}] at @s as @n[distance=..200,type=marker,tag=jjc_jjc] at @s store result score @s jjc_x2 run data get entity @s Pos[0] 1000
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=40}] at @s as @n[distance=..200,type=marker,tag=jjc_jjc] at @s store result score @s jjc_z2 run data get entity @s Pos[2] 1000
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=40}] at @s store result entity @s Motion[0] double -0.000125 run scoreboard players operation @s jjc_x1 -= @n[distance=..200,type=marker,tag=jjc_jjc] jjc_x2
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=40}] at @s store result entity @s Motion[2] double -0.000125 run scoreboard players operation @s jjc_z1 -= @n[distance=..200,type=marker,tag=jjc_jjc] jjc_z2
execute as @e[type=cave_spider,tag=jjc_brooding_spider4,tag=!jjc_brooding_spider4_2,scores={jjc_505=40}] at @s run data modify entity @s Motion[1] set value 2.4d
tag @e[type=cave_spider,tag=jjc_brooding_spider4,scores={jjc_505=40}] add jjc_brooding_spider4_2
tag @e[type=cave_spider,tag=jjc_brooding_spider4,scores={jjc_505=40..},tag=!jjc_brooding_spider4_2] add jjc_brooding_spider4_r
tag @e[type=cave_spider,tag=jjc_brooding_spider4,scores={jjc_505=100..}] add jjc_brooding_spider3_r
scoreboard players reset @e[type=cave_spider,tag=jjc_brooding_spider4_r] jjc_505
execute as @e[type=cave_spider,tag=jjc_brooding_spider4_r] at @s run attribute @s generic.gravity base set 0.08
tag @e[type=cave_spider,tag=jjc_brooding_spider4_r] remove jjc_brooding_spider4
tag @e[type=cave_spider,tag=jjc_brooding_spider4_r] remove jjc_brooding_spider4_2
tag @e[type=cave_spider,tag=jjc_brooding_spider4_r] remove jjc_brooding_spider4_r
execute as @e[type=cave_spider,tag=jjc_brooding_spider4] at @s run particle explosion ~ ~1 ~ 0 0 0 0 1 normal