I am trying to make a disenchantment command that will later tie in with an npc. Atm im using a command that requires permissions.
It is showing that "::*}" is not a valid item data.
Thanks!
code_language.skript:
command /disenchant:
trigger:
player has permission "disenchant"
set {_enchants::*} to enchants of player's tool
send "&aSucessfully removed %{_enchants::*}% from tool!" to player
set {_enchants::*} to "{_enchants::*}" parsed as text
disenchant player's tool
give player enchanted book of {_enchants::*}
Thanks!