Hello. I really need help. I am trying to grab a book to a sword then it will be unbreakable. I can't make it happen.
[doublepost=1595978679,1595978644][/doublepost]So far I just want the book to disappear and that's it how should I do that?
Code:
on inventory click:
if event-item is a diamond sword:
if player's cursor slot is book:
if name of player's cursor slot is "something":
cancel the event
set lore of event-item to "something"
wait 3 ticks
set cursor slot of player to air