Types

AWT Button

🔗

Type

Patterns:
  • set {button} to a new button in {panel}
Since: 3.0
A button widget component.

Examples:

Missing examples.

AWT Check Box

🔗

Type

Patterns:
  • set {check-box} to a new check box in {panel}
Since: 3.0
A check box widget component.

Examples:

Missing examples.

AWT Combo Box

🔗

Type

Patterns:
  • set {combo-box} to a new combo box in {panel}
Since: 3.0
A combo box widget component.

Examples:

Missing examples.

AWT Component

🔗

Type

Patterns:
  • Missing patterns.
Since: 3.0
Any widget component.

Examples:

Missing examples.

AWT Label

🔗

Type

Patterns:
  • set {label} to a new label in {panel}
Since: 3.0
A label widget component.

Examples:

Missing examples.

AWT List

🔗

Type

Patterns:
  • set {list} to a new list in {panel}
Since: 3.0
A list widget component.

Examples:

Missing examples.

AWT Panel

🔗

Type

Patterns:
  • Missing patterns.
Since: 3.0
A panel widget component.

Examples:

set {panel} to a new panel in {window}

AWT Progress Bar

🔗

Type

Patterns:
  • set {progress-bar} to a new progress bar in {panel}
Since: 3.0
A progress bar widget component.

Examples:

Missing examples.

AWT Radio Button

🔗

Type

Patterns:
  • set {radio-button} to a new radio button in {panel}
Since: 3.0
A radio button widget component.

Examples:

Missing examples.

AWT Scroll Pane

🔗

Type

Patterns:
  • set {scroll-pane} to a new scroll pane in {panel}
Since: 3.0
A scroll pane widget component.

Examples:

Missing examples.

AWT Slider

🔗

Type

Patterns:
  • set {slider} to a new slider in {panel}
Since: 3.0
A slider widget component.

Examples:

Missing examples.

AWT Spinner

🔗

Type

Patterns:
  • set {spinner} to a new spinner in {panel}
Since: 3.0
A spinner widget component.

Examples:

Missing examples.

AWT Tabbed Pane

🔗

Type

Patterns:
  • set {tabbed-pane} to a new tabbed pane in {panel}
Since: 3.0
A tabbed pane widget component.

Examples:

Missing examples.

AWT Table

🔗

Type

Patterns:
  • set {table} to a new table in {panel}
Since: 3.0
A table widget component.

Examples:

Missing examples.

AWT Text Area

🔗

Type

Patterns:
  • set {text-area} to a new text area in {panel}
Since: 3.0
A text area widget component.

Examples:

Missing examples.

AWT Text Field

🔗

Type

Patterns:
  • set {text-field} to a new text field in {panel}
Since: 3.0
A text field widget component.

Examples:

Missing examples.

Boolean

🔗

Type

Patterns:
  • true/yes/on or false/no/off
Since: 1.0
A boolean is a value that is either true or false. Other accepted names are 'on' and 'yes' for true, and 'off' and 'no' for false.

Examples:

set {config.%player%.use mod} to false

Color

🔗

Type

Patterns:
  • black, dark grey/dark gray, grey/light grey/gray/light gray/silver, white, blue/dark blue, cyan/aqua/dark cyan/dark aqua, light blue/light cyan/light aqua, green/dark green, light green/lime/lime green, yellow/light yellow, orange/gold/dark yellow, red/dark red, pink/light red, purple/dark purple, magenta/light purple, brown/indigo
Since: Unknown
Wool, dye and chat colors.

Examples:

color of the sheep is red or black
set the color of the block to green
message "You're holding a <%color of tool%>%color of tool%<reset> wool block"

Command Sender

🔗

Type

Patterns:
Since: 1.0
A player or the console.

Examples:

command /push [<player>]:
    trigger:
        if arg-1 is not set:
            if command sender is console:
                send "You can't push yourself as a console :\" to sender
                stop
            push sender upwards with force 2
            send "Yay!"
        else:
            push arg-1 upwards with force 2
            send "Yay!" to sender and arg-1

Date

🔗

Type

Patterns:
  • Missing patterns.
Since: 1.4
A date is a certain point in the real world's time which can be obtained with now expression, unix date expression and date function. See time and timespan for the other time types of Skript.

Examples:

set {_yesterday} to now
subtract a day from {_yesterday}
# now {_yesterday} represents the date 24 hours before now

Number

🔗

Type

Patterns:
  • [-]###[.###] (any amount of digits; very large numbers will be truncated though)
Since: 1.0
A number, e.g. 2.5, 3, or -9812454. Please note that many expressions only need integers, i.e. will discard any fractional parts of any numbers without producing an error.

Examples:

set the player's health to 5.5
set {_temp} to 2*{_temp} - 2.5

Object

🔗

Type

Patterns:
  • Missing patterns.
Since: 1.0
The supertype of all types, meaning that if %object% is used in e.g. a condition it will accept all kinds of expressions.

Examples:

Missing examples.

Text

🔗

Type

Patterns:
  • simple: "..."
  • quotes: "...""..."
  • expressions: "...%expression%..."
  • percent signs: "...%%..."
Since: 1.0
Text is simply text, i.e. a sequence of characters, which can optionally contain expressions which will be replaced with a meaningful representation (e.g. %player% will be replaced with the player's name). Because scripts are also text, you have to put text into double quotes to tell Skript which part of the line is an effect/expression and which part is the text. Please read the article on Texts and Variable Names to learn more.

Examples:

broadcast "Hello World!"
message "Hello %player%"
message "The id of ""%type of tool%"" is %id of tool%."

Time

🔗

Type

Patterns:
  • ##:##
  • ##[:##][ ]am/pm
Since: 1.0
A time is a point in a minecraft day's time (i.e. ranges from 0:00 to 23:59), which can vary per world. See date and timespan for the other time types of Skript.

Examples:

at 20:00:
    time is 8 pm
    broadcast "It's %time%"

Timeperiod

🔗

Type

Patterns:
  • ##:## - ##:##
  • dusk/day/dawn/night
Since: 1.0
A period of time between two times. Mostly useful since you can use this to test for whether it's day, night, dusk or dawn in a specific world. This type might be removed in the future as you can use 'time of world is between x and y' as a replacement.

Examples:

time in world is night

Timespan

🔗

Type

Patterns:
  • <number> [minecraft/mc/real/rl/irl] ticks/seconds/minutes/hours/days/weeks/months/years [[,/and] <more...>]
  • [###:]##:##[.####] ([hours:]minutes:seconds[.milliseconds])
Since: 1.0, 2.6.1 (weeks, months, years)
A timespan is a difference of two different dates or times, e.g '10 minutes'. Timespans are always displayed as real life time, but can be defined as minecraft time, e.g. '5 minecraft days and 12 hours'. NOTE: Months always have the value of 30 days, and years of 365 days. See date and time for the other time types of Skript.

Examples:

every 5 minecraft days:
    wait a minecraft second and 5 ticks
every 10 mc days and 12 hours:
    halt for 12.7 irl minutes, 12 hours and 120.5 seconds

Type

🔗

Type

Patterns:
  • See the type name patterns of all types - including this one
Since: 2.0
Represents a type, e.g. number, object, item type, location, block, world, entity type, etc. This is mostly used for expressions like 'event-<type>', '<type>-argument', 'loop-<type>', etc., e.g. event-world, number-argument and loop-player.

Examples:

{variable} is a number # check whether the variable contains a number, e.g. -1 or 5.5
{variable} is a type # check whether the variable contains a type, e.g. number or player
{variable} is an object # will always succeed if the variable is set as everything is an object, even types.
disable PvP in the event-world
kill the loop-entity