execute at @e[tag=shadow,distance=..5] run particle minecraft:squid_ink ~ ~1.4 ~ .3 .5 .3 .1 30 normal @a[scores={sanity=..-50}]
execute as @e[tag=shadow,distance=..5] run scoreboard players add @p[scores={usetome=1..,sanity=..-50}] sanity 2
execute as @e[tag=shadow,distance=..5,predicate=survivalplus:1chance] at @s run summon item ~ ~.1 ~ {Item:{id:"leather_boots",components:{"minecraft:custom_data":{shade:tag},trim:{pattern:coast,material:netherite},dyed_color:0,item_name:{"text":"Shade","italic":false,"color":"dark_gray"},lore:[{"text":"A shadow follows you, dealing damage to enemies","italic":false,"color":"gray"}],unbreakable:{},attribute_modifiers:[{attributes:"armor",amount:3,slot:feet,id:"-1243144583711657-91674"}],tooltip_display:{hidden_components:[trim,unbreakable,dyed_color]}}}}
execute as @e[tag=shadow,distance=..5] run kill @s