Gamerule

Patternsgamerule %string% at %world%
Since1.0
Returns the gamerule of the world.

Examples

set gamerule "keepInventory" at player's world to "false"set gamerule "randomTickSpeed" at player's world to "30"if gamerule "keepInventory" at player's world is "true":

Time

Patternstime %string%
Since1.1
Returns the time of real life.

Examples

set {_t} to time "yyyy-MM-dd HH:mm:ss"send "%{_t}%" # 2020-04-24 05:28:10

File list (Path)

Patternsfile list %string%
Since1.1
Returns a list of files in the directory.

Examples

set {_f::*} to file list "plugins\Skript\scripts"loop {_f::*}: send "%loop-value%"

File list (Name)

Patternsfile list name %string%
Since1.1
Returns a list of files in the directory.

Examples

set {_f::*} to file list name "plugins\Skript\scripts"loop {_f::*}: send "%loop-value%"

Crop age

Patternscrops age %block%
Since1.1
Returns the age of the crop.

Examples

send "%crops age taget block%"set crops age event-block to "7"

Keep inventory

Patternskeep inventory
Since2.3
Keeps the inventory when the player dies. (Only use in death event.)

Examples

on death: set keep inventory to false

Cooldown

Patterns%player%'s cooldown of %itemtype%
Since2.3
Returns the cooldown of the item.

Examples

set player's cooldown of player's tool to 20delete player's cooldown of player's toolif player's cooldown of player's tool > 0:

Inventory name

Patterns[%player%['s]][ ]inv[entory][ ]name
Since2.3.1
Returns the name of the inventory.

Examples

if inv name is "test":if player inv name is "test":

Fish

Patternsevent-fish
Since2.3.1.1
Returns the fishing result.

Examples

set event-fish to 10 of stone

Dropped item

Patternsevent-drop[s]
Since2.4
Returns the item that was dropped. (Only use in block break event.)

Examples

set event-drops to 10 of stone

Combine string

Patternscombine %string%[ ]+[ ]%string%
Since2.6
Combines the strings.

Examples

set {_s} to combine "Hello" + "World"

MagicSpells Spell Damage

Patternsm[agic][-]damage
Since2.5
Returns the damage of the Spell.

Examples

set mdamage to 10

MagicSpells Spell ID

Patternsm[agic][-]id
Since2.5
Returns the ID of the spell.

Examples

if mid is "test":

MagicSpells Spell Victim

Patternsm[agic][-]victim
Since2.5
Returns the victim of the skill.

Examples

send "Damage: %mdamage%" to mattackersend "Damage: %mdamage%" to mvictim

MagicSpells Spell Caster

Patternsm[agic][-]caster
Since2.6
Returns who used the spell.

Examples

send "Spell ID: %mid%" to mcaster

MagicSpells Spell Cooldown

Patterns%player%['s] m[agic[ ]]cooldown of %string%
Since2.6
Returns the cooldown of the spell.

Examples

send "Cooldown: %player's mcooldown of mid% second"

Number with Comma

Patterns%number% apply comma
Since2.6
Returns the number with comma.

Examples

send "%20200818 apply comma%"

Organize Array

Patternsclean array %objects%
Since2.6
Returns organized array.

Examples

set {_array::*} to clean array {array::*}

Enchatment

Patternsenchant of %number% in %itemstack%
Since2.6.1
Returns the enchatment of the item.

Examples

set enchant of 0 in player's tool to 5

New Line

Patternsn
Since2.7.1
Returns the new line.

Examples

send "Test%n%1234"

Invisiblity of Player

Patterns%player%'s swing
Since2.9
Returns the invisiblity of the player.

Examples

set player's swing to true

MythicMobs Mob Damage

Patternsdamage of %mythicmob%|%mythicmob%'s damage
Since3.1
Returns the damage of the mob. (read-only)

Examples

send "Damage: %damage of event-mythicmob%"

MythicMobs Mob Level

Patternslevel of %mythicmob%|%mythicmob%'s level
Since3.1
Returns the level of the mob.

Examples

send "Level: %level of event-mythicmob%"add 1 to event-mythicmob's levelset event-mythicmob's level to 10remove 1 from event-mythicmob's level

Item Durability

Patterns%itemstack%'s durability%itemstack%'s max[ ]durability
Since3.2
Returns the durability of the item.

Examples

set player's tool's durability to player's tool's max durability

Database Key

Patternsdatabase key %string% at %string%
Since3.2
Returns the key of the database.

Examples

database key player's uuid values 1 at "Level"