Solved Shield Slot help

  • 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.

kays

New Member
Jul 15, 2017
9
2
3
Skript Version: Skript 2.2 (dev32d)
Skript Author: Bensku
Minecraft Version: 1.12.2

What is offhand slot number? I'm trying to prevent player to drag certain item to offhand ._. please help!
 
Don't know off the top of my head, but you can set up a script to tell you.
Use the inventory click event and broadcast the clicked slot.
 
Don't know off the top of my head, but you can set up a script to tell you.
Use the inventory click event and broadcast the clicked slot.
So the number is 40 but I don't know how to cancel the clicked event ;-;
This is my take on it but not working how I wanted to
code_language.skript:
on inventory click:
    cursor slot of player is diamond hoe named "&aCumcumber Seed":
        clicked slot is 40
        cancel the event
[doublepost=1518052572,1518051048][/doublepost]Nvm i figured it out! :emoji_grinning:
 
  • Like
Reactions: Wynnevir
Status
Not open for further replies.