#GUi help

1 messages · Page 1 of 1 (latest)

manic parcel
#

Why this doesnt work?
command /testgui: trigger: set {_gui} to chest with 3 rows named "&2test" set slot 13 of {_gui} to chest named "&6Regular chest" with lore "&cJust a chest%nl%&4Nothing wierd about it!" open {_gui} to player
im using skbee

civic mortar
#

just open a chest inventory and set slots

manic parcel
#

3rd line is error

civic mortar
#

set x to chest inventory with y rows named "z"

manic parcel
#

command /testgui:
trigger:
set {_gui} to chest inventory with 3 rows named "ahsadha"
set slot 13 of {_gui} to chest named "&6Regular chest" with lore "&cJust a chest%nl%&4Nothing wierd about it!"
open {_gui} to player

#

should work?

civic mortar
#

should work

manic parcel
#

alr

#

yoooo it works

#

thank you so much

#

uh one more question

#

how do i make it so people cant take the items out

#

i just tested it and you can take the item out

civic mortar
#

inventory clicks and if player's current inventory name = "x" ?

manic parcel
#

whats the x

civic mortar
#

the name of the inventory

manic parcel
#

like the name of the item if you click?

civic mortar
#

nono

#

the inventory you clicked on

manic parcel
#

slot?

civic mortar
#

the chest inventory you clicked on

manic parcel
#

yes

civic mortar
#

no not slots

manic parcel
#

so its chest

#

?

civic mortar
#

the INVENTORY

#

THE NAME OF THE INVENTORY

#

that you want to cancel the event

manic parcel
#

so wait its "&cJust a chest"

#

?

civic mortar
#

🤦‍♂️

#

not the item

manic parcel
#

bro thats the name isnt it

civic mortar
#

the inventory

#

THE INVFENTORY

manic parcel
#

i dont get it

civic mortar
#

if name of player's current inventory = "&2test":

#

that

manic parcel
#

oh thy

#

ty

#

not sure if i did it correctly but doesnt work it showed errors

civic mortar
#

if inventory name of current inventory of player = "&2test":

#

also what errors did it even show

civic mortar
#

yes

manic parcel
#

where do i put

#

the

#

inventory click

#

under it?

civic mortar
#

why would it be under it

manic parcel
#

dont know

civic mortar
#
 if inventory name of current inventory of player = "x":
  cancel event```
manic parcel
#

oh ok

civic mortar
manic parcel
civic mortar
#

its literally in skript docs

#

oh ye

manic parcel
#

i dont understand script docs

civic mortar
#
if name of player's current inventory = "x"
manic parcel
#

same error

civic mortar
#

bruh what

manic parcel
#

on inventory click:
if name of player's current inventory = "ahsadha"
cancel event

#

on inventory click: if name of player's current inventory = "ahsadha" cancel event

civic mortar
#

it works of every skript i make with that

#

bruh

#

you forgot the :

#

every time there is a if u add a : at the end of the line

manic parcel
#

ok

#

dang

#

it works

#

thank you

civic mortar
#

btw this docs

#
civic mortar
#

did u see this when u clicked examples

#

the blue part

#

but not the same code

manic parcel
#

oh

#

not then

#

i didnt

#

i didnt even see the example button

civic mortar
#

always click view examples

manic parcel
#

yeah from now on i will

zinc prism
#

Skript hub is the best skript website

manic parcel
#

@civic mortar i just realized that i cant pick or get any blocks in my inventory, even tho the name is set to the gui's name it still works on every inventory aswell as mine any way to fix that?