I am making a skript that helps me make items quicker, but I am having trouble with enchanting, here is what I have
Code:
command /lllll [<number>]:
permission: op
trigger:
if player's tool is not air:
enchant player's tool with sharpness arg-1
else:
send "&cYou must be holding an item to enchant."
I also tried:
command /lllll [<number>]:
permission: op
trigger:
if player's tool is not air:
set {_i} to arg-1
enchant player's tool with sharpness {_i}
else:
send "&cYou must be holding an item to enchant."