looping items's in a chunk

  • 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.
Are you meaning dropped items?
They're entities, so you could loop all entities in the chunk and check if said entity is a dropped item.
 
I don't know how to loop entities in a chunk and Chek if is a item that's why I asked for a example
code_language.skript:
loop all entities in %chunk%
that's how you loop entities in a chunk

and from an entity:
code_language.skript:
if %entity% is a dropped item
 
Thanks, is there a way to add the looped item to a chest and then remove it form the world
yes, theres an expression for getting the item of a dropped item
and then theres an effect for removing entities
 
Can you give me an example plz I am new to skript

Yes I have looked on the docs
No, I'm not writing your script out for you.

I recommend learning some basic Skript using some tutorials, such as
https://skripthub.net/tutorials/17
and
https://skripthub.net/tutorials/21

Also, check the docs for these things. I don't know them off the top of my head, so I would have to go find them for you on the docs.
Put some effort into this. If you learn the basic stuff, including how to read the docs, you will realize what you are asking for is extremely easy
http://skriptlang.github.io/Skript/
 
Status
Not open for further replies.