Grab book to sword

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

SaltyPotata

Member
May 26, 2020
17
0
0
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.


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
[doublepost=1595978679,1595978644][/doublepost]So far I just want the book to disappear and that's it how should I do that?
 
Status
Not open for further replies.