So, I am trying to make some custom enchants and I ran into a problem, there is no errors in console, it just doesn't work. I have tried many different things to get it to work but nothing works.
Code:
I also have something similar for an "Explosive" enchant, this used to work before I had more than 1 line of lore, but now it does not.
The pickaxe has the lore of all the other enchants on it such as "Haste 1" and on the next line "Explosive 3" for example. It also has some normal vanilla enchants such as Efficiency and Fortune.
Code:
code_language.skript:
every second:
loop all players:
if lore of loop-player's held item contains "&7Haste 1":
make console execute command "/effect %loop-player% minecraft:haste 3 1"
else if lore of loop-player's held item contains "&7Haste 2":
make console execute command "/effect %loop-player% minecraft:haste 3 2"
else if lore of loop-player's held item contains "&7Haste 3":
make console execute command "/effect %loop-player% minecraft:haste 3 3"
I also have something similar for an "Explosive" enchant, this used to work before I had more than 1 line of lore, but now it does not.
The pickaxe has the lore of all the other enchants on it such as "Haste 1" and on the next line "Explosive 3" for example. It also has some normal vanilla enchants such as Efficiency and Fortune.