At Time
🔗Patterns: | |
Since: | 1.3.4 |
Examples:
at 7am in "world"
On AoE Cloud Effect
🔗Patterns: |
|
Since: | 2.2-dev21 |
Examples:
On Arm Swing
🔗Patterns: |
|
Since: | 2.5.1 |
Examples:
send "You swung your arm!"
On Armor Change
🔗Patterns: |
|
Since: | 2.5 |
Examples:
send "You equipped %event-item%!"
On Bed Enter
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Bed Leave
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Block Damage
🔗Patterns: |
|
Since: | 1.0 |
Examples:
if block is log:
send "You can't break the holy log!"
On Block Fertilize
🔗Patterns: |
|
Since: | 2.5 |
Examples:
send "Fertilized %size of fertilized blocks% blocks got fertilized."
On Block Growth
🔗Patterns: |
|
Since: | 2.2-Fixes-V10 |
Examples:
On Book Edit
🔗Patterns: |
|
Since: | 2.2-dev31 |
Examples:
On Book Sign
🔗Patterns: |
|
Since: | 2.2-dev31 |
Examples:
On Break / Mine
🔗Patterns: |
|
Since: | 1.0 (break), unknown (mine), 2.6 (BlockData support) |
Examples:
on break of stone:
on mine of any ore:
on break of chest[facing=north]:
on break of potatoes[age=7]:
On Bucket Empty
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Bucket fill
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Burn
🔗Patterns: |
|
Since: | 1.0, 2.6 (BlockData support) |
Examples:
on burn of wood, fences, or chests:
on burn of oak_log[axis=y]:
On Can Build Check
🔗Patterns: |
|
Since: | 1.0 (basic), 2.0 ([un]cancellable) |
Examples:
cancel event
On Chat
🔗Patterns: |
|
Since: | 1.4.1 |
Examples:
if player has permission "owner":
set chat format to "<red>[player]<light gray>: <light red>[message]"
else if player has permission "admin":
set chat format to "<light red>[player]<light gray>: <orange>[message]"
else: #default message format
set chat format to "<orange>[player]<light gray>: <white>[message]"
On Chunk Generate
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Chunk Load
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Chunk Unload
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Click
🔗Patterns: |
|
Since: | 1.0 |
Examples:
on rightclick holding a fishing rod:
on leftclick on a stone or obsidian:
on rightclick on a creeper:
on click with a sword:
On Combust
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Command
🔗Patterns: |
|
Since: | 2.0 |
Examples:
on command "/stop":
on command "pm Njol ":
On Connect
🔗Patterns: |
|
Since: | 2.0 |
Examples:
player doesn't have permission "VIP"
number of players is greater than 15
kick the player due to "The last 5 slots are reserved for VIP players."
On Consume
🔗Patterns: |
|
Since: | 2.0 |
Examples:
On Craft
🔗Patterns: |
|
Since: | unknown (before 2.1) |
Examples:
On Creeper Power
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Damage
🔗Patterns: |
|
Since: | 1.0 |
Examples:
on damage of a player:
On Death
🔗Patterns: |
|
Since: | 1.0 |
Examples:
on death of player:
on death of a wither or ender dragon:
broadcast "A %entity% has been slain in %world%!"
On Dispense
🔗Patterns: |
|
Since: | unknown (before 2.1) |
Examples:
send "that'd be 19.99 please!"
On Drop
🔗Patterns: |
|
Since: | unknown (before 2.1) |
Examples:
On Enchant
🔗Patterns: |
|
Since: | 2.5 |
Examples:
if the clicked button is 1: # offer 1
set the applied enchantments to sharpness 10 and unbreaking 10
On Enchant Prepare
🔗Patterns: |
|
Since: | 2.5 |
Examples:
set enchant offer 1 to sharpness 1
set the cost of enchant offer 1 to 10 levels
On Enderman/Sheep/Silverfish/Falling Block
🔗Patterns: |
|
Since: | unknown, 2.5.2 (falling block) |
Examples:
kill entity
broadcast "A sheep stole some grass!"
on falling block land:
if event-entity is a falling dirt:
cancel event
On Entity Dismount
🔗Patterns: |
|
Since: | 2.2-dev13b |
Examples:
kill event-entity
On Entity Mount
🔗Patterns: |
|
Since: | 2.2-dev13b |
Examples:
cancel event
On Entity Portal
🔗Patterns: |
|
Since: | 2.5.3 |
Examples:
broadcast "A %type of event-entity% has entered a portal!
On Experience Spawn
🔗Patterns: |
|
Since: | 2.0 |
Examples:
world is "minigame_world"
cancel event
On Explode
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Explosion Prime
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Fade
🔗Patterns: |
|
Since: | 1.0, 2.6 (BlockData support) |
Examples:
on fade of snow[layers=2]
On Firework Explode
🔗Patterns: |
|
Since: | 2.4 |
Examples:
on firework exploding colored red, light green and black
on firework explosion coloured light green:
broadcast "A firework colored %colors% was exploded at %location%!"
On First Join
🔗Patterns: |
|
Since: | 1.3.7 |
Examples:
broadcast "Welcome %player% to the server!"
On Fishing
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Flight Toggle
🔗Patterns: |
|
Since: | 2.2-dev36 |
Examples:
if {game::%player%::playing} exists:
cancel event
On Flow
🔗Patterns: |
|
Since: | 1.0 |
Examples:
if event-block is water:
broadcast "Build more dams! It's starting to get wet in here"
On Form
🔗Patterns: |
|
Since: | 1.0, 2.6 (BlockData support) |
Examples:
on form of a mushroom:
On Fuel Burn
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Gamemode Change
🔗On Gliding State Change
🔗Patterns: |
|
Since: | 2.2-dev21 |
Examples:
cancel the event # bad idea, but you CAN do it!
On Grow
🔗On Hand Item Swap
🔗Patterns: |
|
Since: | 2.3 |
Examples:
event-player's tool is a diamond sword
cancel event
On Heal
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Horse Jump
🔗Patterns: |
|
Since: | 2.5.1 |
Examples:
push event-entity upwards at speed 2
On Hunger Meter Change
🔗Patterns: |
|
Since: | 1.4.4 |
Examples:
On Ignition
🔗Patterns: |
|
Since: | 1.0 |
Examples:
if event-block is a ladder:
cancel event
On Inventory Click
🔗Patterns: |
|
Since: | 2.2-Fixes-V10 |
Examples:
if event-item is stone:
give player 1 stone
remove 20$ from player's balance
On Inventory Close
🔗Patterns: |
|
Since: | 2.2-dev21 |
Examples:
if player's location is {location}:
send "You exited the shop!"
On Inventory Open
🔗Patterns: |
|
Since: | 2.2-dev21 |
Examples:
close player's inventory
On Inventory Pickup
🔗Patterns: |
|
Since: | 2.5.1 |
Examples:
On Item Break
🔗Patterns: |
|
Since: | 2.1.1 |
Examples:
On Item Damage
🔗Patterns: |
|
Since: | 2.5 |
Examples:
cancel event
On Item Despawn
🔗Patterns: |
|
Since: | 2.2-dev35 |
Examples:
send "Not my precious!"
cancel event
On Item Mend
🔗Patterns: |
|
Since: | 2.5.1 |
Examples:
chance of 50%:
cancel the event
send "Oops! Mending failed!" to player
On Item Merge
🔗Patterns: |
|
Since: | 2.2-dev35 |
Examples:
cancel event
On Item Spawn
🔗Patterns: |
|
Since: | unknown (before 2.1) |
Examples:
broadcast "Someone dropped an iron sword!"
On Join
🔗Patterns: |
|
Since: | 1.0 |
Examples:
message "Welcome on our awesome server!"
broadcast "%player% just joined the server!"
On Jump
🔗Patterns: |
|
Since: | 2.3 |
Examples:
event-player does not have permission "jump"
cancel event
On Kick
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Language Change
🔗Patterns: |
|
Since: | 2.3 |
Examples:
if player's language starts with "en":
send "Hello!"
On Leaves Decay
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Level Change
🔗Patterns: |
|
Since: | 1.0, 2.4 (level up/down) |
Examples:
On Lightning Strike
🔗Patterns: |
|
Since: | 1.0 |
Examples:
spawn a zombie at location of event-entity
On Move
🔗Patterns: |
|
Since: | 2.6 |
Examples:
if player does not have permission "player.can.move":
cancel event
on skeleton move:
if event-entity is not in world "world":
kill event-entity
On Move On
🔗Patterns: |
|
Since: | 2.0 |
Examples:
on stepping on stone:
On Physics
🔗Patterns: |
|
Since: | 1.4.6 |
Examples:
on block physics:
block is sand
cancel event
On Pick Up
🔗Patterns: |
|
Since: | unknown (before 2.1), 2.5 (entity) |
Examples:
on entity pickup of wheat:
On Pig Zap
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Piston Extend
🔗Patterns: |
|
Since: | 1.0 |
Examples:
broadcast "A piston is extending!"
On Piston Retract
🔗Patterns: |
|
Since: | 1.0 |
Examples:
broadcast "A piston is retracting!"
On Place
🔗Patterns: |
|
Since: | 1.0, 2.6 (BlockData support) |
Examples:
on place of a furnace, workbench or chest:
on break of chest[type=right] or chest[type=left]
On Player World Change
🔗Patterns: |
|
Since: | 2.2-dev28 |
Examples:
world is "city"
send "Welcome to the City!"
On Portal
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Portal Create
🔗Patterns: |
|
Since: | 1.0, 2.5.3 (event-entity support) |
Examples:
On Portal Enter
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Prepare Craft
🔗Patterns: |
|
Since: | 2.2-Fixes-V10 |
Examples:
On Pressure Plate / Trip
🔗Patterns: |
|
Since: | 1.0 (pressure plate), 1.4.4 (tripwire) |
Examples:
On Projectile Collide
🔗Patterns: |
|
Since: | 2.5 |
Examples:
teleport shooter of event-projectile to event-entity
On Projectile Hit
🔗Patterns: |
|
Since: | 1.0 |
Examples:
event-projectile is arrow
delete event-projectile
On Quit
🔗Patterns: |
|
Since: | 1.0 (simple disconnection) |
Examples:
on disconnect:
On Redstone
🔗Patterns: |
|
Since: | 1.0 |
Examples:
send "someone is using redstone" to console
On Region Enter/Leave
🔗Patterns: |
|
Since: | 2.1 |
Examples:
message "Leaving %region%."
On Resource Pack Request Response
🔗Patterns: |
|
Since: | 2.4 |
This event will be triggered once when the player accepts or declines the resource pack request, and once when the resource pack is successfully installed or failed to download.
Examples:
if the resource pack was declined or failed to download:
on resource pack deny:
kick the player due to "You have to install the resource pack to play in this server!"
On Respawn
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Resurrect Attempt
🔗Patterns: |
|
Since: | 2.2-dev28 |
Examples:
entity is player
entity has permission "admin.undying"
uncancel the event
On Riptide
🔗Patterns: |
|
Since: | 2.5 |
Examples:
send "You are riptiding!"
On Script Load/Unload
🔗Patterns: |
|
Since: | 2.0 |
Examples:
set {running::%script%} to true
on unload:
set {running::%script%} to false
On Server List Ping
🔗Patterns: |
|
Since: | 2.3 |
Also you can use MOTD, Max Players, Online Players Count, Protocol Version, Version String, Hover List and Server Icon expressions, and Player Info Visibility and Hide Player from Server List effects to modify the server list.
Examples:
set the motd to "Welcome %{player-by-IP::%ip%}%! Join now!" if {player-by-IP::%ip%} is set, else "Join now!"
set the fake max players count to (online players count + 1)
set the shown icon to a random server icon out of {server-icons::*}
On Server Start/Stop
🔗Patterns: |
|
Since: | 2.0 |
Examples:
on server stop:
On Sheep Regrow Wool
🔗Patterns: |
|
Since: | 2.2-dev21 |
Examples:
cancel event
On Shoot
🔗Patterns: |
|
Since: | 1.0 |
Examples:
if projectile is an arrow:
send "you shot an arrow!" to shooter
On Sign Change
🔗Patterns: |
|
Since: | 1.0 |
Examples:
line 2 is empty
set line 1 to "<red>%line 1%"
On Slime Split
🔗Patterns: |
|
Since: | 2.2-dev26 |
Examples:
On Smelt
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Sneak Toggle
🔗Patterns: |
|
Since: | 1.0 |
Examples:
on sneak toggle:
player is sneaking
push the player upwards at speed 0.5
On Spawn
🔗Patterns: |
|
Since: | 1.0, 2.5.1 (non-living entities) |
Examples:
on spawn of an ender dragon:
broadcast "A dragon has been sighted in %world%!"
On Spawn Change
🔗Patterns: |
|
Since: | 1.0 |
Examples:
broadcast "someone changed the spawn!"
On Sponge Absorb
🔗Patterns: |
|
Since: | 2.5 |
Examples:
loop absorbed blocks:
broadcast "%loop-block% was absorbed by a sponge"!
On Spread
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Sprint Toggle
🔗Patterns: |
|
Since: | 1.0 |
Examples:
player is not sprinting
send "Run!"
On Swim Toggle
🔗Patterns: |
|
Since: | 2.3 |
Examples:
event-entity does not have permission "swim"
cancel event
On Tame
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Target
🔗Patterns: |
|
Since: | 1.0 |
Examples:
target is a player
On Teleport
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Throwing of an Egg
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Tool Change
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Vehicle Create
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Vehicle Damage
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On Vehicle Destroy
🔗Patterns: |
|
Since: | 1.0 |
Examples:
cancel event
On Vehicle Enter
🔗Patterns: |
|
Since: | 1.0 |
Examples:
entity is a player
cancel event
On Vehicle Exit
🔗Patterns: |
|
Since: | 1.0 |
Examples:
if event-entity is a spider:
kill event-entity
On Weather Change
🔗Patterns: |
|
Since: | 1.0 |
Examples:
on weather change to sunny:
On World Init
🔗Patterns: |
|
Since: | 1.0 |
Examples:
On World Load
🔗Patterns: |
|
Since: | 1.0 |
Examples:
send "World is loading..." to console
On World Save
🔗Patterns: |
|
Since: | 1.0 |
Examples:
broadcast "World has been saved!"
On World Unload
🔗Patterns: |
|
Since: | 1.0 |
Examples:
cancel event
On Zombie Break Door
🔗Patterns: |
|
Since: | 1.0 |
Examples: