How do i loop in a chest's inventory?

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

mm2325

Member
May 24, 2025
1
0
1
on inventory open:
if type of event-inventory is chest inventory or ender chest inventory or barrel inventory or shulker box inventory:
send "You opened a chest!" to player
loop all items of event-inventory:
if loop-slot's item is not air:
send "%loop-slot's item%" to player

How do i loop in a chest's inventory. i don't know what else to ask or say except help :emoji_frowning: