Code:
set {_pord} to 70
set {_item} to player's tool
set {_meta} to {_item}.getItemMeta()
set {_ench} to {_meta}.getStoredEnchants()
if {_ench} = `{Enchantment[minecraft:efficiency, DIG_SPEED]=1}`:
(this is a snippet of my full script)
Is there an alternative way to compare this function with a text, since if {_ench} = `{Enchantment [minecraft: efficiency, DIG_SPEED] = 1}`: it doesn't work for me
I would like to be able to check if the enchantment that the player has in his enchanted book is the one requested.
Excuse my bad English, I speak Spanish