Gamerule
| Patterns | gamerule %string% at %world% |
|---|
| Since | 1.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
| Patterns | time %string% |
|---|
| Since | 1.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)
| Patterns | file list %string% |
|---|
| Since | 1.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)
| Patterns | file list name %string% |
|---|
| Since | 1.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
| Patterns | crops age %block% |
|---|
| Since | 1.1 |
|---|
Returns the age of the crop.
Examples
send "%crops age taget block%"set crops age event-block to "7"
Keep inventory
| Patterns | keep inventory |
|---|
| Since | 2.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% |
|---|
| Since | 2.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 |
|---|
| Since | 2.3.1 |
|---|
Returns the name of the inventory.
Examples
if inv name is "test":if player inv name is "test":
Fish
| Patterns | event-fish |
|---|
| Since | 2.3.1.1 |
|---|
Returns the fishing result.
Examples
set event-fish to 10 of stone
Dropped item
| Patterns | event-drop[s] |
|---|
| Since | 2.4 |
|---|
Returns the item that was dropped. (Only use in block break event.)
Examples
set event-drops to 10 of stone
Combine string
| Patterns | combine %string%[ ]+[ ]%string% |
|---|
| Since | 2.6 |
|---|
Combines the strings.
Examples
set {_s} to combine "Hello" + "World"
MagicSpells Spell Damage
| Patterns | m[agic][-]damage |
|---|
| Since | 2.5 |
|---|
Returns the damage of the Spell.
Examples
set mdamage to 10
MagicSpells Spell ID
| Patterns | m[agic][-]id |
|---|
| Since | 2.5 |
|---|
Returns the ID of the spell.
Examples
if mid is "test":
MagicSpells Spell Victim
| Patterns | m[agic][-]victim |
|---|
| Since | 2.5 |
|---|
Returns the victim of the skill.
Examples
send "Damage: %mdamage%" to mattackersend "Damage: %mdamage%" to mvictim
MagicSpells Spell Caster
| Patterns | m[agic][-]caster |
|---|
| Since | 2.6 |
|---|
Returns who used the spell.
Examples
send "Spell ID: %mid%" to mcaster
MagicSpells Spell Cooldown
| Patterns | %player%['s] m[agic[ ]]cooldown of %string% |
|---|
| Since | 2.6 |
|---|
Returns the cooldown of the spell.
Examples
send "Cooldown: %player's mcooldown of mid% second"
Number with Comma
| Patterns | %number% apply comma |
|---|
| Since | 2.6 |
|---|
Returns the number with comma.
Examples
send "%20200818 apply comma%"
Organize Array
| Patterns | clean array %objects% |
|---|
| Since | 2.6 |
|---|
Returns organized array.
Examples
set {_array::*} to clean array {array::*}
Enchatment
| Patterns | enchant of %number% in %itemstack% |
|---|
| Since | 2.6.1 |
|---|
Returns the enchatment of the item.
Examples
set enchant of 0 in player's tool to 5
Invisiblity of Player
| Patterns | %player%'s swing |
|---|
| Since | 2.9 |
|---|
Returns the invisiblity of the player.
Examples
set player's swing to true
MythicMobs Mob Damage
| Patterns | damage of %mythicmob%|%mythicmob%'s damage |
|---|
| Since | 3.1 |
|---|
Returns the damage of the mob. (read-only)
Examples
send "Damage: %damage of event-mythicmob%"
MythicMobs Mob Level
| Patterns | level of %mythicmob%|%mythicmob%'s level |
|---|
| Since | 3.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 |
|---|
| Since | 3.2 |
|---|
Returns the durability of the item.
Examples
set player's tool's durability to player's tool's max durability
Database Key
| Patterns | database key %string% at %string% |
|---|
| Since | 3.2 |
|---|
Returns the key of the database.
Examples
database key player's uuid values 1 at "Level"