Code:
on inventory click:
if clicked item is helmet or chestplate or leggings or boots:
if the lore of player's cursor slot contains coloured "&6&lCrystal Bonus":
set {crystal.lore} to the name of player's cursor slot
if clicked item's lore contains "&6&lArmor Crystal":
message "&c&l(!) &cThere is already a armor crystal on this item!"
cancel event
else:
set lore of clicked item to "%lore of event-item%||%{crystal.lore}%)"
message "&a&l(!) &aYou have applied a armor crystal!"
clear {crystal.lore}
cancel event
I'm basically trying to add a lore to the clicked item. The lore needs to be the same as the cursors name.
E.g:
name of cursor = "Pickles"
I want pickles to be added to the lore
And I know someone is going to comment this:
set lore of clicked item to "%lore of event-item%||Pickles"
and this is not what I want