Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 2.10 |
Examples:
the amount of {thing}
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 2.5 |
NOTE: Minecraft namespaces are supported, ex: 'minecraft:generic.attack_damage'.
Examples:
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 1.4.4 |
NOTE: Minecraft namespaces are supported, ex: 'minecraft:basalt_deltas'.
Examples:
Patterns: |
|
Since: | 2.5 |
Examples:
set target block of player to oak stairs[facing=north;waterlogged=true]
set block at player to grass_block[snowy=true]
set loop-block to minecraft:chest[facing=north]
set block above player to oak_log[axis=y]
set target block of player to minecraft:oak_leaves[distance=2;persistent=false]
Patterns: |
|
Since: | 1.0 |
Examples:
Patterns: |
|
Since: | 2.4 |
Requirements: | Minecraft 1.14 or newer |
NOTE: Minecraft namespaces are supported, ex: 'minecraft:british_shorthair'.
Examples:
Patterns: |
|
Since: | 2.0 |
Examples:
Patterns: |
|
Since: | 2.2-dev16b, 2.2-dev35 (renamed to click type) |
Examples:
Patterns: |
|
Since: | Unknown |
Examples:
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 |
Examples:
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: | 2.10 |
Configs can be reloaded or navigated to find options.
Examples:
Patterns: |
|
Since: | 2.0 |
Please note that support for this type is very rudimentary, e.g. lava, fire and burning, as well as projectile and attack are considered different types.
Examples:
Patterns: |
|
Since: | 1.4 |
See time and timespan for the other time types of Skript.
Examples:
subtract a day from {_yesterday}
# now {_yesterday} represents the date 24 hours before now
Patterns: |
|
Since: | 2.3 |
Examples:
Patterns: | |
Since: | 2.0 |
Locations and some blocks also have a direction, but without a length.
Please note that directions have changed extensively in the betas and might not work perfectly. They can also not be used as command arguments.
Examples:
loop blocks from the block infront of the player to the block 10 below the player:
set the block behind the loop-block to water
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 1.4.6 |
NOTE: Minecraft namespaces are supported, ex: 'minecraft:basalt_deltas'.
As of Minecraft 1.21 this will also support custom enchantments using namespaces, ex: 'myenchants:explosive'.
Examples:
Patterns: |
|
Since: | 2.5 |
Examples:
set enchant offer 1 to sharpness 1
set the cost of enchant offer 1 to 10 levels
Patterns: |
|
Since: | 1.4.6 |
Examples:
helmet is enchanted with waterbreathing
Patterns: |
|
Since: | 1.0 |
Examples:
player is an op
projectile is an arrow
shoot a fireball from the player
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 2.10 |
Requirements: | Minecraft 1.20.2+ |
This includes all of the data associated with an entity (its name, health, attributes, etc.), at the time this expression is used. Essentially, these are a way to create templates for entities.
Individual attributes of a snapshot cannot be modified or retrieved.
Examples:
Patterns: |
|
Since: | 1.3 |
Examples:
spawn a creeper
Patterns: |
|
Since: | 1.3 |
Examples:
Patterns: |
|
Since: | 2.10 |
This may also return a result.
Examples:
Patterns: |
|
Since: | 2.0 |
Examples:
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 2.4 |
which can be used in the launch firework effect.
See the firework effect expression for detailed patterns.
Examples:
launch trailing flickering star colored purple, yellow, blue, green and red fading to pink at target entity
launch ball large colored red, purple and white fading to light green and black at player's location with duration 1
Patterns: |
|
Since: | 2.4 |
Examples:
Patterns: |
|
Since: | 2.10 |
This can be executed (with arguments) and may return a result.
Examples:
set {_result} to the result of {_function}
Patterns: |
|
Since: | 1.0 |
Examples:
set the player argument's game mode to creative
Patterns: |
|
Since: | 2.5 |
Requirements: | Minecraft 1.13 or newer |
Examples:
Patterns: |
|
Since: | 2.5 |
Examples:
Patterns: |
|
Since: | 2.4 |
Requirements: | Minecraft 1.14 or newer |
Examples:
Patterns: |
|
Since: | 2.5 |
Examples:
Patterns: |
|
Since: | 2.10 |
Requirements: | Minecraft 1.21.3+ |
Examples:
Patterns: |
|
Since: | 1.0 |
An inventory has a fixed amount of slots which represent a specific place in the inventory, e.g. the helmet slot for players (Please note that slot support is still very limited but will be improved eventually).
Examples:
Patterns: |
|
Since: | 2.2-dev16 |
Examples:
Patterns: |
|
Since: | 2.8.0 |
Requirements: | Paper |
Examples:
Patterns: |
|
Since: | 2.2-dev32 |
Examples:
Patterns: |
|
Since: | 1.0 |
You don't usually need this type except when you want to make a command that only accepts an exact item.
Please note that currently 'material' is exactly the same as 'item', i.e. can have an amount & enchantments.
Examples:
{_item} is a torch
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 1.0 |
An item type can also have one or more enchantments with or without a specific level defined, and can optionally start with 'all' or 'every' to make this item type represent all types that the alias represents, including data ranges.
Examples:
add all slabs to the inventory of the block
player's tool is a diamond sword of sharpness
remove a pickaxes of fortune 4 from {stored items::*}
set {_item} to 10 of every upside-down stair
block is dirt or farmland
Patterns: |
|
Since: | 1.0 |
Examples:
shoot a zombie from the creeper
Patterns: |
|
Since: | 2.10 |
Some loot tables will require some values (i.e. looter, location, looted entity) in a loot context when generating loot whereas others may not.
For example, the loot table of a simple dungeon chest will only require a location, whereas the loot table of a cow will require a looting player, looted entity, and location.
You can find more information about this in https://minecraft.wiki/w/Loot_context
Examples:
Patterns: |
|
Since: | 2.10 |
You can find more information about this in https://minecraft.wiki/w/Loot_table
Examples:
Patterns: |
|
Since: | 2.2-dev36 |
Examples:
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 2.0 |
Requirements: | Vault, an economy plugin that supports Vault |
add 100$ to the player's balance
and add 100 to the player's balance
. Examples:
remove Fr. 9.95 from the player's money
set the victim's money to 0
increase the attacker's balance by the level of the victim * 100
Patterns: |
|
Since: | 2.7 |
Requirements: | Paper 1.16+ |
Examples:
Patterns: |
|
Since: | 2.10 |
This may have navigable children.
Examples:
Patterns: |
|
Since: | 1.0 |
Please note that many expressions only need integers, i.e. will discard any fractional parts of any numbers without producing an error.
Radians will be converted to degrees.
Examples:
set {_temp} to 2*{_temp} - 2.5
set {_angle} to 3.14 in radians # will be converted to degrees
Patterns: |
|
Since: | 1.0 |
Examples:
Patterns: |
|
Since: | 2.0 beta 8 |
Examples:
Patterns: |
|
Since: | 1.0 |
You have two possibilities to use players as command arguments: <player> and <offline player>. The first requires that the player is online and also accepts only part of the name, while the latter doesn't require that the player is online, but the player's name has to be entered exactly.
Examples:
set {_p} to "N" parsed as a player # returns Notch if Notch is online because their name starts with 'N' (case insensitive) however, it would return nothing if no player whose name starts with 'N' is online.
Patterns: |
|
Since: | 2.5.2 |
Examples:
Patterns: |
|
Since: | Unknown |
Examples:
apply potion of speed 2 to the player for 60 seconds
remove invisibility from the victim
Patterns: |
|
Since: | 1.0 |
Examples:
shoot an arrow at speed 5 from the player
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 2.10 |
Examples:
add "hello" to {queue}
broadcast the 1st element of {queue}
Patterns: |
|
Since: | 2.8.0 |
Requirements: | Paper 1.16.5+ |
Examples:
Patterns: |
|
Since: | 2.1 |
Requirements: | Supported regions plugin |
Please note that some regions plugins do not have named regions, some use numerical ids to identify regions, and some may have regions with the same name in different worlds, thus using regions like "region name" in scripts may or may not work.
Examples:
Patterns: |
|
Since: | 2.4 |
Examples:
Patterns: |
|
Since: | 2.10 |
Disabled scripts will report as being empty since their content has not been loaded.
Examples:
Patterns: |
|
Since: | 2.3 |
Examples:
Patterns: |
|
Since: | Unknown |
The most important property that distinguishes a slot from an item is its ability to be changed, e.g. it can be set, deleted, enchanted, etc. (Some item expressions can be changed as well, e.g. items stored in variables. For that matter: slots are never saved to variables, only the items they represent at the time when the variable is set).
Please note that tool can be regarded a slot, but it can actually change it's position, i.e. doesn't represent always the same slot.
Examples:
delete helmet of the victim
set the color of the player's tool to green
enchant the player's chestplate with projectile protection 5
Patterns: |
|
Since: | 2.4 |
Examples:
Patterns: |
|
Since: | 2.3 |
Examples:
Patterns: |
|
Since: | 2.2-dev35 |
Examples:
Patterns: |
|
Since: | 2.10 |
Requirements: | Paper 1.19+ |
Examples:
Patterns: |
|
Since: | 1.0 |
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:
message "Hello %player%"
message "The id of ""%type of tool%"" is %id of tool%."
Patterns: |
|
Since: | 1.0 |
This type might be removed in the future as you can use 'time of world is between x and y' as a replacement.
Examples:
Patterns: |
|
Since: | 1.0, 2.6.1 (weeks, months, years) |
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:
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.8.0 |
Examples:
Patterns: |
|
Since: | Unknown |
Examples:
grow a huge red mushroom above the block
Patterns: |
|
Since: | 2.0 |
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 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
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 2.2-dev23 |
Examples:
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 2.10 |
Examples:
Patterns: |
|
Since: | 2.1 |
Examples:
play mob spawner flames at the targeted block to the player
Patterns: |
|
Since: | 1.0 |
Examples:
is sunny in the player's world
message "It is %weather in the argument's world% in %world of the argument%"
Patterns: |
|
Since: | @VERSION |
Requirements: | Minecraft 1.21+ |
NOTE: Minecraft namespaces are supported, ex: 'minecraft:ashen'.
Examples:
Patterns: |
|
Since: | 1.0, 2.2 (alternate syntax) |
Examples:
Patterns: |
|
Since: | 2.7 |
Examples: