#Can't seem to debug this... Player head rightclick

1 messages · Page 1 of 1 (latest)

cosmic girder
#
on right click:
  if player is holding a compass named "&a&lMain Menu":
    if event-world is "Lobby" parsed as world:
      make player execute command "menu"
  else if player's tool = player skull named "&a&lPlayer Stats":
    if event-world is "Lobby" parsed as world:
      make player execute command "stats"
command /stats:
  permission: lobby.stats
  executable by: console and players
  description: "Shows your player stats."
  trigger:
    open hopper inventory named "&a&lPlayer Stats" for player
    format slot 0 of player with clock named "&aTime Played:" with lore "%player's time played%" to close
frosty marsh
#

you need to use actual skript-gui syntax

#

or use vanilla guis

#

rn you're trying to use some weird tuske syntax?

#

idk

cosmic girder
#

I don't use tuske. I use skript-gui and this works fine.

command /menu:
  permission: lobby.menu
  executable by: console and players
  description: "Opens a menu for you to pick what you want to do."
  trigger:
    open chest inventory with 1 row named "&a&lMain Menu" for player
    format slot 0 of player with diamond pickaxe named "&aSurvival Mode" with lore "Click to Join" to close then run "mvtp %player% Survival"
    format slot 1 of player with oak door named "&aCreative Mode" with lore "Click to Join" to close then run "mvtp %player% Creative"
    format slot 2 of player with grass block named "&aOne Block" with lore "Click to Join" to close then run [make player execute command "oneblock"]
    format slot 3 of player with diamond sword named "&aDuels" with lore "Click to Join" to close then run [make console execute command "/mvtp %player% Duels"]->[send "&aUse /duel <player> to send a duel request." to player]
    format slot 4 of player with red bed named "&aBedwars" with lore "Click to Join" to close then run "mvtp %player% Bedwars"
    format slot 5 of player with tnt named "&aTnT RuN" with lore "Click to Join" to close then run "mvtp %player% tntrun"
    format slot 6 of player with carved pumpkin named "&aProp Hunt" with lore "Click to Join" to close then run "mvtp %player% HideAndSeek"
    format slot 7 of player with red glass pane named "&aConnect Four" with lore "Click to see the command." to close then run [make player execute command "/connectfour"]
    format slot 8 of player with firework rocket named "&aParty" with lore "Click to see the command." to close then run [make player execute command "/party help"]

so why wouldnt the other stuff work?

frosty marsh
#

that is not skript-gui code

#

it's skquery gui code

cosmic girder
cosmic girder
#

Ok

#

Then why isn't it working?

#

the command works

#

and the clock works

#

but when the clock works, the on click event doesnt

frosty marsh
#

i don't use skquery guis
you shouldn't either

cosmic girder
#

please dont tell me to use vanilla guis

frosty marsh
#

you can use those or skript-gui

#

but skquery guis are not exactly great
you can keep using them if you want

#

i just don't know enough about them to help debug

cosmic girder
#

How would I change them to vanilla or skript-gui?

frosty marsh
#

look up the syntax

#

use the syntax

cosmic girder
#

format should be skript-gui

frosty marsh
#

read past the first word

cosmic girder
#

(make|format) gui [slot[s]] %strings/numbers% (with|to) [removable:([re]mov[e]able|stealable)] %itemtype%

#

format slot 0 to clock