I would recommend you searching the docs, too.
[doublepost=1591023492,1591022932][/doublepost]
Tuske doesn't works correctly in 1.8.8, use vanilla gui, they're way better.
Code:
open chest [inventory] with %integer% rows named %string% to %players%
set slot %interger% of %players%'s current inventory to [%integer% of] %item% [named %string%]
And use ''on inventory click" to do stuff
Example:
Code:
command /text:
trigger:
open chest with 6 rows named "Test gui %player%" to player
loop 54 times:
set slot (loop-number - 1) of player's current inventory to wool named "Slot %loop-number - 1%" with lore "line1||line2||line3"
on inventory click:
if inventory name of current inventory of player (is|contains) "Test gui ":
#do stuff