Looping items in a block at a certain location

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

_BraydenKing

Member
May 12, 2021
13
0
1
23
I'm trying to figure out a way to loop all the items in a dropper at a certain location. Here is my skript:

Code:
every 10 seconds:
    loop all players:
        loop all items in inventory of {placeddroppers::%uuid of loop-player%::3::*}:
            send "%loop-item%" to loop-player

There are no errors on reload. It is not sending anything to the loop-player, so i'm guessing its not looping the items inside of the dropper. Anyone know how to fix this?
 
maybe try
Code:
loop all items in {placeddroppers::%uuid of loop-player%::3::*}'s inventory:
idk if its working but thats how I doing for player inventory
 
Maybe this? If its still not working try to store the location od the block in variable too and replace "at location {var}" to "at {var}"
Code:
loop all items in inventory of {(the block variable here)} at location of {(the block variable here)}:
 
Status
Not open for further replies.