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

pokw

Active Member
Jun 3, 2019
53
1
8
How do I loop the inventory of a player's tool? This is the code I have right now if someone can help.

Code:
command /command:
  trigger:
    player's tool is shulker:
      loop the inventory of player's tool:
        if loop-inventory contains dirt:
          send "loop inventory contains dirt"
        else:
          send "loop inventory does not contain dirt"
       send "loop started"
    send "command executed"

Errors:
576e8d5d3b2a7b716082a03c0fcd6a99.png
 
Are you trying to know what the player is holding? or are you trying to see whats in their inventory?
Inventory:
Code:
Loop player's inventory
Held item:
Code:
if player's held item is #blah blah
 
Are you trying to know what the player is holding? or are you trying to see whats in their inventory?
Inventory:
Code:
Loop player's inventory
Held item:
Code:
if player's held item is #blah blah
I'm trying to see what's in the inventory of their held item, the shulker.
 
You cant rlly loop the inventory of the shulker if its in their hand. Or possibly not at all but you can edit use NBT Data
 
Status
Not open for further replies.