Solved Looping GUI Slots

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

cdoxy

Member
Aug 9, 2024
43
2
8
26
I'm using metadata tags for guis, is there a loop i can use to loop certain slots of the gui?

example:

loop event-inventory's slots:
if slot 10 contains wool:
set slot 25 of metadata tag "" of player to 4 string

thanks!
 
Why do you need to use loops for that?
good point...
let me figure something out.

i'm making a crafting grid using a chest inventory so i wanted to be able to check if any of the slots in the 3x3 grid contain wool.

but i think i can do it better

thanks anyway!
 
this is for future players with the same issue:

i just used:

if slot <your slot> of current inventory of player is <item>: