How to check for items in a Shulker Box

  • 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 comminuty!

    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.

MrT1_

Member
Jun 29, 2022
1
0
1
34
I have started a dupe server and I am trying to make it so you can not dupe certain items. The problem is I am not sure how to check if that item is in a shulker. I am very new to skript, so does anyone know how to do this?
 
I don't know what Dupe servers are, but if there are no hoppers this should work:
Code:
on inventory click:
    if player's top inventory is shulker box inventory:
        if event-item is tnt:
            send "You can't add TNT to a shulker box!"
            cancel event
 
Status
Not open for further replies.