#[SOLVED] skript-gui not working (SkQuery either!)

1 messages · Page 1 of 1 (latest)

warm wren
#

that dont look like skript-gui to me

frail karma
#

@warm wren

warm wren
#
command /opengui:
  trigger:
    create a gui with virtual chest inventory with 3 rows named "My EPIC GUI!" and shape "xxxxxxxxx", "x-------x", and "xxxxxxxxx":
      make gui slot "x" with dirt named "! BORDER !":
        send "Hey %player%! You just clicked a border slot!" to player
    open the last gui for the player``` skript-gui wiki
frail karma
#

yep

#

works perfectly now

#

ty

#

[SOLVED] skript-gui not working (SkQuery either!)

fickle marshBOT
#

Indentation in Skript

In skript, you need to maintain consistent indentation, meaning you cannot indent 1 line 5 spaces, and the next 7 spaces. Usually it’s recommended you use tabs, however.

A good rule of thumb is to always indent the subsequent line whenever the previous statement ends with a :, an exception to this is in command statements with items before the trigger such as permission: or aliases:

With conditional statements and loops, any code that is indented within the statement will be run as a part of the statement, other code will not be run within the statement. Here is an example of proper indentation: