execute as @a at @s unless data entity @s SelectedItem.tag:{Enchantments:[{id:"16"}]} run give ...
execute as @a at @s unless data entity @s SelectedItem.tag:{Enchantments:[{id:"16"}]} run give ...
I also tried...
execute as @a at @s if data entity @s[nbt={SelectedItem:{tag:{Enchantments:[{id:silk_touch}]}}}] run give ...
execute as @a at @s if data entity @s[nbt={SelectedItem:{tag:{Enchantments:[{id:silk_touch}]}}}] run give ...
I am trying to detect if the player is using silk touch or not mining a block to then give him the custom ore or the ingot, I have all the other stuff but this one does not work... I searched in google and this should work :/ (Minecraft Java 1.20.1)