
effect give @e[type=#colosseum_of_fools:mob,tag=jjc_mob,nbt={Passengers:[{id:"minecraft:item_display",Tags:["jjc_shield"]}]}] slowness 1 1 true

execute as @e[type=#colosseum_of_fools:mob,tag=jjc_mob,nbt={Passengers:[{id:"minecraft:item_display",Tags:["jjc_shield"]}]}] at @s on passengers run data modify entity @s Rotation[0] set from entity @n[distance=..200,type=#colosseum_of_fools:mob,tag=jjc_mob,nbt={Passengers:[{id:"minecraft:item_display",Tags:["jjc_shield"]}]}] Rotation[0]

execute as @e[type=#colosseum_of_fools:mob,tag=jjc_mob,nbt={Passengers:[{id:"minecraft:item_display",Tags:["jjc_shield"]}],HurtTime:9s}] at @s run data merge entity @s {Motion:[0d,0d,0d]}
execute as @e[type=#colosseum_of_fools:mob,tag=jjc_mob,nbt={Passengers:[{id:"minecraft:item_display",Tags:["jjc_shield"]}],HurtTime:9s}] at @s run playsound item.shield.block hostile @a
execute as @e[type=#colosseum_of_fools:mob,tag=jjc_mob,nbt={Passengers:[{id:"minecraft:item_display",Tags:["jjc_shield"]}],HurtTime:9s}] at @s run particle crit ~ ~1 ~ 0.25 0.5 0.25 0.1 20 normal

execute as @e[type=#colosseum_of_fools:mob,tag=jjc_mob,nbt={Passengers:[{id:"minecraft:item_display",Tags:["jjc_shield"]}],AbsorptionAmount:0f},tag=jjc_shield_spawn] at @s on passengers run playsound entity.zombie.break_wooden_door hostile @a
execute as @e[type=#colosseum_of_fools:mob,tag=jjc_mob,nbt={Passengers:[{id:"minecraft:item_display",Tags:["jjc_shield"]}],AbsorptionAmount:0f},tag=jjc_shield_spawn] at @s run particle item{item:"shield"} ~ ~1 ~ 0.25 0.5 0.25 0.1 20 normal
execute as @e[type=#colosseum_of_fools:mob,tag=jjc_mob,nbt={Passengers:[{id:"minecraft:item_display",Tags:["jjc_shield"]}],AbsorptionAmount:0f},tag=jjc_shield_spawn] at @s on passengers run kill @s[tag=jjc_shield]

execute as @e[type=#colosseum_of_fools:mob,tag=jjc_mob,nbt={Passengers:[{id:"minecraft:item_display",Tags:["jjc_shield"]}]},tag=!jjc_shield_spawn] at @s store result entity @s attributes[{id:"minecraft:generic.max_absorption"}].base double 1 store result entity @s AbsorptionAmount float 1 run attribute @s generic.max_health get 0.5
tag @e[type=#colosseum_of_fools:mob,tag=jjc_mob,nbt={Passengers:[{id:"minecraft:item_display",Tags:["jjc_shield"]}]},tag=!jjc_shield_spawn] add jjc_shield_spawn