execute as @e[type=zombie_villager,tag=jjc_grave1,nbt=!{active_effects:[{id:"minecraft:unluck",amplifier:100b}]}] at @s unless block ~ ~ ~ #colosseum_of_fools:no run tp ~ ~0.05 ~
execute as @e[type=zombie_villager,tag=jjc_grave1,nbt={active_effects:[{id:"minecraft:unluck",amplifier:100b}]}] at @s run tp ~ ~0.05 ~
execute as @e[type=zombie_villager,tag=jjc_grave1,nbt=!{active_effects:[{id:"minecraft:unluck",amplifier:100b}]}] at @s if block ~ ~ ~ #colosseum_of_fools:no run data merge entity @s {Invulnerable:0b,NoAI:0b}
execute as @e[type=zombie_villager,tag=jjc_grave1,nbt=!{active_effects:[{id:"minecraft:unluck",amplifier:100b}]}] at @s if block ~ ~ ~ #colosseum_of_fools:no run tag @s remove jjc_noai
execute as @e[type=zombie_villager,tag=jjc_grave1,nbt=!{active_effects:[{id:"minecraft:unluck",amplifier:100b}]}] at @s if block ~ ~ ~ #colosseum_of_fools:no run tag @s remove jjc_grave1
scoreboard players add @e[type=marker,tag=jjc_grave0] jjc_303 1
execute as @e[type=marker,tag=jjc_grave0,scores={jjc_303=10}] at @s run playsound block.grass.break hostile @a[distance=..200] ~ ~ ~ 1 1
execute as @e[type=marker,tag=jjc_grave0,scores={jjc_303=20}] at @s run playsound block.grass.break hostile @a[distance=..200] ~ ~ ~ 1 1
execute as @e[type=marker,tag=jjc_grave0,scores={jjc_303=30}] at @s run playsound block.grass.break hostile @a[distance=..200] ~ ~ ~ 1 1
execute as @e[type=marker,tag=jjc_grave0,scores={jjc_303=40}] at @s run playsound block.grass.break hostile @a[distance=..200] ~ ~ ~ 1 1

execute as @e[type=marker,tag=jjc_grave0] at @s unless block ~ ~-1 ~ #minecraft:sand run particle minecraft:block{block_state:{Name:"minecraft:dirt"}} ~ ~0.3 ~ 0.25 0.25 0.25 0 2
execute as @e[type=marker,tag=jjc_grave0] at @s if block ~ ~-1 ~ #minecraft:sand at @s run particle minecraft:block{block_state:{Name:"minecraft:sand"}} ~ ~0.3 ~ 0.25 0.25 0.25 0 2
kill @e[type=marker,tag=jjc_grave0,scores={jjc_303=40..}]