## Mining fatigue
execute as @a[distance=..75] at @s unless predicate {condition:"minecraft:entity_properties",entity:"this",predicate:{effects:{"minecraft:mining_fatigue":{}}}} run particle minecraft:elder_guardian ~ ~ ~ 0 0 0 0 1
execute as @a[distance=..75] at @s unless predicate {condition:"minecraft:entity_properties",entity:"this",predicate:{effects:{"minecraft:mining_fatigue":{}}}} run playsound minecraft:entity.elder_guardian.curse hostile @s ~ ~ ~ 1 1
execute as @a[distance=..75] run effect give @s mining_fatigue 300 2