I am trying to make a skript that will give you a lightning wand, and i cant figure out how to make it have enchantments. I have tried other methods on the forum, but they are all from 2017-2019 and are not recent, so they do not work. So i am making my own post. Here is the code and I will also mark where I am having the problems.
Code:
command /lightningwand <player>:
aliases: lw
usage: &7[&6LW&7] &cWho do you want to give the wand?
permission: lw.give
trigger:
if arg-1 is set:
## here is the first line
give player 1 iron axe named "&f&lStormbreaker" with lore "&7You are now Thor. This axe has Sharpness 20 and can strike lightning." and "" and "&5&lMythic" of sharpness 20
else:
stop
on rightclick:
## here is the second line
if player's tool is iron axe named "&f&lStormbreaker" with lore "&7You are now Thor. This axe has Sharpness 20 and can strike lightning." and "" and "&5&lMythic" of sharpness 20:
strike lightning at the targeted block
else:
stop