#need help with a gui

1 messages · Page 1 of 1 (latest)

timber trellis
#

@sour loom

#

Are you there?

#

Send your current code

#

Then I can help you from there

#

This is not a spoonfeeding discord it is a help discord

nimble ether
#

@sour loom

timber trellis
#

Then go find a marketplace or comission someone to make it for u

#

then read the docs

#

the docs tell u everything u need to know

#

and you can also go online and do

#
skript: how do i change a thing in gui
#

yeah

#

i did

#

You want it so when you click the perk thing, it changes from that thing to green concrete and it stays like that whenever u reopen the gui

#

right?

#

@sour loom

function testInventory(player: player):
  set metadata tag "testInventory" of {_player} to a chest inventory with 1 rows named "&7Bleh"
  set {_inv} to metadata tag "testInventory" of {_player}

  if {perkvariable::%{_player}%} = true:
    set slot 1 of {_inv} to green concrete
  else:
    set slot 1 of {_inv} to red concrete

  open {_inv} to {_player}

on inventory click:
  if event-inventory = (metadata tag "testInventory" of player):
    cancel event
    if index of event-slot = 1:
      set {perkvariable::%player%} to true
#

now when the player that has the perk variable set to true it will be green concrete for them

#

and only them