#Item changes multiple times in gui inventory

1 messages · Page 1 of 1 (latest)

west flame
#
function randomTags(p: player):
    set {_randomTags} to chest inventory with 3 rows named "GUI"

    set slot (integers between 0 and 27) of {_randomTags} to gray stained glass pane named "&7"
    loop 6 times:
        set {_randomtag} to random element out of {tags::*}
        set slot 13 of {_randomTags} to {_randomtag}
    open {_randomTags} to {_p}
    
command /testing:
    trigger:
        randomTags(player)

how would i make it so the item which is under {_randomtag} would change x amount of times before telling them they wont {_randomtag}?

#

ive noticed the issue is that i put open {_randomTags} to {_p} at the bottom instead of the top

wheat furnace
#

"how would i make it so the item which is under {_randomtag} would change x amount of times"
Seems like you already got this, its done with a loop. right now, youre changing it 6 times

"before telling them they wont {_randomtag}??
What do you mean by this?

wheat furnace
west flame
#

yeah xd

wheat furnace
#

again, just a loop, except you can put the open line inside of it, and you would want a wait

west flame
#

and no that was meant to say "before telling them they won it" however i just didnt put that into the code xd

wheat furnace
#

(without a wait it would change so fast its unnoticable)

west flame
#

just got this

#

so im guessing i have to use "replace" in skript correct?

#

or is there a way that it wont have "raw iron named" in it without replacing it?

#

@wheat furnace sry for the ping ❤️

wheat furnace
#

you can just use name of %item% if you just want the item, although if the item is not renamed, use type of %item%