#gui

1 messages · Page 1 of 1 (latest)

versed wasp
#

command /gui:
trigger:
open virtual chest inventory with size 3 named "Menu" to player

whats wrong

vernal lichen
mystic shadow
versed wasp
#

Ohhhhh

#

Thann you

mystic shadow
#

np

#

and if u wanna set slots

#

do this

#

set slot <slot number> of player's current inventory to <item> named "name of the item" with lore "you don't have to add lore but u can add it if u want"

versed wasp
#

Okayy I'll do that

versed wasp
#

nevermind

icy patio
#

Dont set slots after opening inventory

#

Better set variable to chest, then set slots of thie variable and open it for player

weak bough
#
mystic shadow
#

why r u yappin

#

let the man do what he wants

#

he doesnt have to use vanilla guis

versed wasp
north rapids
#

or

set slot 1 of {_menu} to dirt named "Dirt" with lore "This is dirt"
open {_menu} to player```
icy patio
#

Formatting slots while inventory is opened is not a good idea

versed wasp
#

how i can make the gui like player doesnt get the items

#

and how i set items to gui

icy patio
#

Or just simple example

command /test:
    trigger:
        Set {_x} to chest with 3 rows named "&8Test"
        Set slot 3 of {_x} to diamond
        Open {_x} to player

On inventory click
    if name of current inventory of player is "&8Test":
        cancel event
        if clicked slot is 3:
             close player's inventory
             send "123"
versed wasp
#

okayyyy thanks

versed wasp
#

what that {_x} mean

mystic shadow
#
    if name of event-inventory is "":
        cancel event```
versed wasp
mystic shadow
#

name of the gui

versed wasp
#

okay

versed wasp
#

i dont understand {_x} << that

#

i set like ```command /test:
trigger:
Set {Menu} to chest with 3 rows named "&8Test"
Set slot 3 of {Menu} to diamond
Open {Menu} to player

On inventory click
if name of current inventory of player is "&8Test":
cancel event
if clicked slot is 3:
close player's inventory
send "123"```

hasty nexus