Patterns: |
|
Since: | 2.5 |
Represents an attribute.
Note that this type does not contain any numerical values.
See attributes for more info.
These are auto-generated and may differ between MC versions.
NOTE: Minecraft namespaces and underscores are supported, ex: 'minecraft:attack_damage'.
Note that this type does not contain any numerical values.
See attributes for more info.
These are auto-generated and may differ between MC versions.
NOTE: Minecraft namespaces and underscores are supported, ex: 'minecraft:attack_damage'.
Examples:
Missing examples.
Patterns: |
|
Since: | 1.4.4 |
All possible biomes Minecraft uses to generate a world.
NOTE: Minecraft namespaces are supported, ex: 'minecraft:basalt_deltas'.
As of Paper 1.21.3, custom biomes are also supported.
NOTE: Minecraft namespaces are supported, ex: 'minecraft:basalt_deltas'.
As of Paper 1.21.3, custom biomes are also supported.
Examples:
biome at the player is desert
set biome of block at player to my_pack:super_swamp
set biome of block at player to my_pack:super_swamp
Patterns: |
|
Since: | 2.5 |
Block data is the detailed information about a block, referred to in Minecraft as BlockStates, allowing for the manipulation of different aspects of the block, including shape, waterlogging, direction the block is facing, and so much more. Information regarding each block's optional data can be found on Minecraft's Wiki. Find the block you're looking for and scroll down to 'Block States'. Different states must be separated by a semicolon (see examples). The 'minecraft:' namespace is optional, as well as are underscores.
Examples:
set block at player to campfire[lit=false]
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]
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 |
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: | 2.4 |
Requirements: | Minecraft 1.14 or newer |
Represents the race/type of a cat entity.
NOTE: Minecraft namespaces are supported, ex: 'minecraft:british_shorthair'.
NOTE: Minecraft namespaces are supported, ex: 'minecraft:british_shorthair'.
Examples:
Missing examples.
Patterns: |
|
Since: | 2.0 |
A chunk is a cuboid of 16×16×(world height) (x×z×y) blocks.
Chunks are spread on a fixed rectangular grid in their world.
Chunks are spread on a fixed rectangular grid in their world.
Examples:
set {_c} to chunk at player
Patterns: |
|
Since: | 2.2-dev16b, 2.2-dev35 (renamed to click type) |
Click type, mostly for inventory events. Tells exactly which keys/buttons player pressed, assuming that default keybindings are used in client side.
Examples:
Missing examples.
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: | 2.0 |
The cause/type of a damage event, e.g. lava, fall, fire, drowning, explosion, poison, etc.
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.
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:
Missing examples.
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.
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: | 2.3 |
The difficulty of a world.
Examples:
Missing examples.
Patterns: | |
Since: | 2.0 |
A direction, e.g. north, east, behind, 5 south east, 1.3 meters to the right, etc.
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.
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:
set the block below the victim to a chest
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
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: | 1.4.6 |
Represents an enchantment, e.g. 'sharpness' or 'fortune'.
NOTE: Minecraft namespaces are supported, ex: 'minecraft:vanishing_curse'.
As of Minecraft 1.21 this will also support custom enchantments using namespaces, ex: 'myenchants:explosive'.
NOTE: Minecraft namespaces are supported, ex: 'minecraft:vanishing_curse'.
As of Minecraft 1.21 this will also support custom enchantments using namespaces, ex: 'myenchants:explosive'.
Examples:
enchant player's tool with sharpness 10
enchant player's tool with my_pack:flying 4
enchant player's tool with my_pack:flying 4
Patterns: |
|
Since: | 2.5 |
The enchantmentoffer in an enchant prepare event.
Examples:
on enchant prepare:
set enchant offer 1 to sharpness 1
set the cost of enchant offer 1 to 10 levels
set enchant offer 1 to sharpness 1
set the cost of enchant offer 1 to 10 levels
Patterns: |
|
Since: | 1.0 |
An entity is something in a world that's not a block, e.g. a player, a skeleton, or a zombie, but also projectiles like arrows, fireballs or thrown potions, or special entities like dropped items, falling blocks or paintings.
Examples:
entity is a zombie or creeper
player is an op
projectile is an arrow
shoot a fireball from the player
player is an op
projectile is an arrow
shoot a fireball from the player
Patterns: |
|
Since: | 3.0.0 |
Represents different categories of entities.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0.0 |
Represents different types of entities.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0.0 |
Represents the different slot types of an entity.
Examples:
Missing examples.
Patterns: |
|
Since: | 2.4 |
A configuration of effects that defines the firework when exploded
which can be used in the launch firework effect.
See the firework effect expression for detailed patterns.
which can be used in the launch firework effect.
See the firework effect expression for detailed patterns.
Examples:
launch flickering trailing burst firework colored blue and green at player
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
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 |
The type of a fireworkeffect.
Examples:
Missing examples.
Patterns: |
|
Since: | 1.0 |
The game modes survival, creative, adventure and spectator.
Examples:
player's gamemode is survival
set the player argument's game mode to creative
set the player argument's game mode to creative
Patterns: |
|
Since: | 2.5 |
Represents a GameRule for a world.
Examples:
Missing examples.
Patterns: |
|
Since: | 2.4 |
Requirements: | Minecraft 1.14 or newer |
Represents a Panda's main or hidden gene. See genetics for more info.
Examples:
Missing examples.
Patterns: |
|
Since: | 2.5 |
The health regain reason in a heal event.
Examples:
Missing examples.
Patterns: |
|
Since: | 1.0 |
An inventory of a player or block. Inventories have many effects and conditions regarding the items contained.
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).
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:
set {_inv} to inventory of player
add itemstack of diamond to inventory of target player
add itemstack of diamond to inventory of target player
Patterns: |
|
Since: | 2.2-dev16 |
What player just did in inventory event. Note that when in creative game mode, most actions do not work correctly.
Examples:
Missing examples.
Patterns: |
|
Since: | 2.8.0 |
Requirements: | Paper |
The inventory close reason in an inventory close event.
Examples:
Missing examples.
Patterns: |
|
Since: | 2.2-dev32 |
Minecraft has several different inventory types with their own use cases.
Examples:
Missing examples.
Patterns: |
|
Since: | 1.0 |
Represents a stack of items in an inventory. May be a single item.
Examples:
set {_item} to itemstack of diamond sword
Patterns: |
|
Since: | 1.0 |
Examples:
spawn 5 powered creepers
shoot a zombie from the creeper
shoot a zombie from the creeper
Patterns: |
|
Since: | 3.0.0 |
Represents the different types of items and blocks.
Materials are auto-generated based on Minecraft keys and may change between MC versions.
NOTE: Minecraft namespaces and underscores are supported, ex: 'minecraft:oak_log'.
Materials are auto-generated based on Minecraft keys and may change between MC versions.
NOTE: Minecraft namespaces and underscores are supported, ex: 'minecraft:oak_log'.
Examples:
if material of player's tool = diamond:
if material of target block = oak stairs:
set material of target block to diamond ore
set {_item} to itemstack of diamond axe
set {_item} to itemstack of diamond_axe
set {_item} to itemstack of minecraft:diamond_axe
if material of target block = oak stairs:
set material of target block to diamond ore
set {_item} to itemstack of diamond axe
set {_item} to itemstack of diamond_axe
set {_item} to itemstack of minecraft:diamond_axe
Patterns: |
|
Since: | 2.2-dev36 |
Something that can hold metadata (e.g. an entity or block)
Examples:
set metadata value "super cool" of player to true
Patterns: |
|
Since: | 2.7 |
Requirements: | Paper 1.16+ |
Represents the phase of a moon.
Examples:
Missing examples.
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.
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: | 2.0 beta 8 |
A player that is possibly offline. See player for more information. Please note that while all effects and conditions that require a player can be used with an offline player as well, they will not work if the player is not actually online.
Examples:
set {_p} to "Notch" parsed as an offlineplayer # returns Notch even if they're offline
Patterns: |
|
Since: | INSERT VERSION |
Represents a particle which can be used in the 'Particle Spawn' effect.
Some particles require extra data, these are distinguished by their data type within the square brackets.
DustOption, DustTransition and Vibration each have their own functions to build the appropriate data for these particles.
NOTE: These are auto-generated and may differ between server versions.
Some particles require extra data, these are distinguished by their data type within the square brackets.
DustOption, DustTransition and Vibration each have their own functions to build the appropriate data for these particles.
NOTE: These are auto-generated and may differ between server versions.
Examples:
Missing examples.
Patterns: |
|
Since: | 1.0 |
A player. Depending on whether a player is online or offline several actions can be performed with them, though you won't get any errors when using effects that only work if the player is online (e.g. changing their inventory) on an offline player.
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.
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 "Notch" parsed as a player # returns &amp;amp;lt;none&amp;amp;gt; unless Notch is actually online or starts with Notch like Notchan
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.
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 |
A potion effect, including the potion effect type, tier and duration.
Examples:
Missing examples.
Patterns: |
|
Since: | Unknown |
A potion effect type, e.g. 'strength' or 'swiftness'.
Examples:
apply swiftness 5 to the player
apply potion of speed 2 to the player for 60 seconds
remove invisibility from the victim
apply potion of speed 2 to the player for 60 seconds
remove invisibility from the victim
Patterns: |
|
Since: | 1.0 |
A projectile, e.g. an arrow, snowball or thrown potion.
Examples:
projectile is a snowball
shoot an arrow at speed 5 from the player
shoot an arrow at speed 5 from the player
Patterns: |
|
Since: | 2.8.0 |
Requirements: | Paper 1.16.5+ |
Represents a quit reason from a player quit server event.
Examples:
Missing examples.
Patterns: |
|
Since: | 2.1 |
Requirements: | Supported regions plugin |
A region of a regions plugin. Skript currently supports WorldGuard, Factions, GriefPrevention and PreciousStones.
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.
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:
Missing examples.
Patterns: |
|
Since: | INSERT VERSION |
Represents the different types of registries in Minecraft.
The names in the square brackets represent the Skript Type the registry represents.
Some registries might not be fully supported by Skript yet.
The names are auto generated based on the key for the registry and may change anytime.
The names in the square brackets represent the Skript Type the registry represents.
Some registries might not be fully supported by Skript yet.
The names are auto generated based on the key for the registry and may change anytime.
Examples:
Missing examples.
Patterns: |
|
Since: | 2.4 |
The state in a resource pack request response event.
Examples:
Missing examples.
Patterns: |
|
Since: | 2.3 |
A server icon that was loaded using the load server icon effect.
Examples:
Missing examples.
Patterns: |
|
Since: | 2.4 |
The category of a sound, they are used for sound options of Minecraft. See the play sound and stop sound effects.
Examples:
Missing examples.
Patterns: |
|
Since: | 2.3 |
The spawn reason in a spawn event.
Examples:
Missing examples.
Patterns: |
|
Since: | INSERT VERSION |
Requirements: | Minecraft 1.21+ |
Represents a Minecraft tag.
See McWiki Tag for more information on tags.
See McWiki Tag for more information on tags.
Examples:
Missing examples.
Patterns: |
|
Since: | 2.2-dev35 |
The teleport cause in a teleport event.
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.
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.
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.
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.8.0 |
Represents a transform reason of an entity transform event.
Examples:
Missing examples.
Patterns: |
|
Since: | 3.0.0 |
Represents different types of trees that can be grown.
Examples:
Missing examples.
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.
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
Patterns: |
|
Since: | INSERT VERSION |
Represents the UUID (universally unique identifier) of an object.
Examples:
set {_uuid} to uuid of player
Patterns: |
|
Since: | 2.2-dev23 |
Vector is a collection of numbers. In Minecraft, 3D vectors are used to express velocities of entities.
Examples:
Missing examples.
Patterns: |
|
Since: | 1.0 |
The weather types sunny, rainy, and thundering.
Examples:
is raining
is sunny in the player's world
message "It is %weather in the argument's world% in %world of the argument%"
is sunny in the player's world
message "It is %weather in the argument's world% in %world of the argument%"
Patterns: |
|
Since: | 1.0, 2.2 (alternate syntax) |
One of the server's worlds. Worlds can be put into scripts by surrounding their name with double quotes, e.g. "world_nether", but this might not work reliably as text uses the same syntax.
Examples:
broadcast "Hello!" to the world "world_nether"
Patterns: |
|
Since: | 2.7 |
Represents the environment of a world.
Examples:
Missing examples.