Syntax
execute as @a[predicate=e422.spells:sneakcheck] if data entity @s[nbt={SelectedItem:{tag:{e422:{spells:{iceshard:1}}}}}] run execute unless entity @s[nbt={SelectedItem:{tag:{Damage:0}}}] run item modify entity @s weapon.mainhand e422.spells:repair
does this code make sense?
I want it to work when I sneak and am holding iceshard run the code