#I have a list of items named {itemlist::} how would i add everything to a gui?

1 messages · Page 1 of 1 (latest)

solid drum
#

send ur code

#

and im pretty sure you would need to rewrite the var as {itemlist::*} with the *

true path
#

setup the gui whichever way you want

#

then, where you would do like "set slot 2 to cobblestone", you can loop all items in the list with "loop {itemList::*}:" and do "set slot %loop-index% to %loop-value%

#

it's not quite the right syntaxes and stuff, but it's the general idea of how to do it

true path
#

ok, at what part

#

create GUI
set the slots by looping the list
open the GUI to player

#

wdym end of it

#

end of what

true path
#

itemlist::* represents the whole list

#

it's not an item, it's just the whole thing

#

so you can tell skript to loop itemlist::* and in each iteration you'll have loop index (the value that * replaces) and loop value (the item)

true path
#

have you tried debugging it

#

so? what's broken

#

no {} for event players uuid

#

also you don't need event-

#

it's just %player's uuid%

spice light
#

{} are for variables you've created

#

You don't need them for event variables like player or entity

#

Send code

#

Try "player" instead of event-player

#

Wait

#

Remove "of event-player"

#

That's not needed

#

Since it's a custom variable, it's not associated with the player like that

#

I would look up a tutorial/documentation

#

It'll explain it better and with some examples

#

Try finding other resources

#

There are a few different skript documentation sites

true path
#

set {var} to X

#

command /whatever <number>:

then, you can use arg-1 in the code