Patterns: |
|
Since: | 3.0 |
A button widget component.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0 |
A check box widget component.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0 |
A combo box widget component.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0 |
Any widget component.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0 |
A label widget component.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0 |
A list widget component.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0 |
A panel widget component.
Examples:
set {panel} to a new panel in {window}
Patterns: |
|
Since: | 3.0 |
A progress bar widget component.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0 |
A radio button widget component.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0 |
A scroll pane widget component.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0 |
A slider widget component.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0 |
A spinner widget component.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0 |
A tabbed pane widget component.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0 |
A table widget component.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0 |
A text area widget component.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0 |
A text field widget component.
Examples:
Missing examples.
Patterns: |
|
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
Patterns: |
|
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"
set the color of the block to green
message "You're holding a <%color of tool%>%color of tool%<reset> wool block"
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
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
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
subtract a day from {_yesterday}
# now {_yesterday} represents the date 24 hours before now
Patterns: |
|
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
set {_temp} to 2*{_temp} - 2.5
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.
Patterns: |
|
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%."
message "Hello %player%"
message "The id of ""%type of tool%"" is %id of tool%."
Patterns: |
|
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
Patterns: |
|
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
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
Patterns: |
|
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
{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