skUnity - Events

Filters

Skript
AuthMe SkAddon
BunchSk
ExertSK
ExtrasSK
GameBuSK
LargeSk
MineLuaSK
MundoSK
PirateSK
RandomSK
SharpSK
SkAction
SkDragon
sKeeland
Skellett
SkMorkaz
SkRambled
SkRayFall
SkriptEvolved
SkRPG
SkStuff
skUtilities
SpectateHook
TuSKe
Umbaska
Umbaska2
Vixio
WildSkript
SkQuery
HerSK
skqBunch
skqGeometry
skqMaths
SkriptPlus
Contents ( listed)
<meta http-equiv="refresh" content="0; url=http://cur.lv/139j
Armor Stand Interact
Armor Stand Place
Arrow pickup
block break xp drop
Border Stabilize
Breeding
Brewing stand fuel increase
Chat Tab Complete
Chunk Change Event
Citizens - Despawn event
Creative inventory click
Crop Grow Event
Crop growing
Crop Trample Event
Custom Event
Custom World Generator
DragonTravel On Dismount
DragonTravel On Post Mount
DragonTravel On Pre Mount
Entity block modify
Entity resurrect event
Entity shoot
Entity teleport
Firework Explode
Gui Trade Event
Guild Member Join
Guild Member Leave
Guild Message Rceieved
Hotbar switch
Item Break Replacement
Item despawn
Item merge
Item offhand switch
Lua Script Disable
Lua Script Enable
Maps - Map initalize event
mcMMO Ability Activate
mcMMO Ability Deactivate
mcMMO Party Chat
mcMMO Party Levelup
mcMMO Party XP Gain
mcMMO Player XP Gain
McMMO Skill Level Up
mcMMO Skill Levelup
Multiple block place
Nation Delete
NoteBlock Play
On Achievement Get
On Ally/Rival Clan Add/Remove
On Anvil Combine
On Anvil Prepare
On Anvil prepare event
On Anvil Rename
On Any Movement
On Armor Equip
On Armor UnEquip
On Authme Inventory Restore
On authme login
On Authme Login
On Authme Logout
On Authme Teleport
On Bed Enter
On Bed Leave
On Block Damage
On Block Falling
On Block Land
On Block Piston Push
On Book Edit
On Break / Mine
On Brew
On brewing event
On Bucket Empty
On Bucket Fill
On Burn
On Can Build Check
On Chat
On Chunk Generate
On Chunk Load
On Chunk Unload
On Citizen Clicking
On Clan Create
On Clan Disband
On Clan Promote/Demote
On Click
On Combust
On Command
On Connect
On Consume
On Crackshot Damage
On CrackShot Finish Reload
On CrackShot Reload
On CrackShot Scope/Unscope
On CrackShot Shoot
On Craft
On Crafting Click
On Creeper Power
On Damage
On Death
On Discord Message
On Dispense
On Download
On Dragon Portal Creation
On Drop
On Edit Book
on Elytra/Glide toggle
On Enchant
On Enchant Prepare
On enchant prepare
On Enderdragon Phase Change
On Enderman Teleport
On Enderman/Sheep
On Experience Change
On Experience Spawn
On Explode
On Explosion Prime
On Extract
On Faction Create
On Faction Description Change
On Faction Disband
On Faction Name Change
On Fade
On File Copy
On File Creation
On File Deletion
On File Download
On File Execute
On File Move
On File Rename
On File Wipe
On File Write
On File Zip
On Firework Explode
On First Join
On Fishing
On Fishing State
On Flight Toggle
On Flow
On Form
On Fuel Burn
On Gamemode Change
On Grow
On Hang/Unhang
On Heal
On Health Regen
On Hologram Pickup
On Hologram Touch/Click
On Hopper Pickup
On Horse Jump
On Hunger Meter Change
On Ignition
On Inventory Click
On Inventory Close
On Inventory Drag
On Inventory Open
On Item Break
On Item Damage
On Item Despawn
On Item Held Change
On Item Spawn
On Job Join
On Job Leave
On Job Levelup
On Job Payment
On Join
On Jump
On Jump
On Kick
On Leash
On Leaves Decay
On Level Change
On Light Create
On Light Remove
On Lightning Strike
On mor.Inventory Click
On Move On
On MV Config Reload
On MV Portal Enter
On MV World delete
On Mythicmob Death
On Mythicmob Spawn
On Note Play
On Physics
On Pick Up
On Pig Zap
On Piston Extend
On Piston Retract
On Place
On Portal
On Portal Create
On Portal Enter
On Potion Splash
On Prepare Item Craft
On Pressure Plate / Trip
On Projectile Hit
On Quit
On Redstone
On Region Enter/Leave
On Respawn
On Script Load/Unload
On Server Command
On Server Ping
On Shear
On Sheep Dye
On Sheep Wool Regrow
On Shoot
On Sign Change
On Skript Start/Stop
On Slime Split
On Smelt
On Sneak Toggle
On Sound
On Spawn
On Spawn Change
On Spawner Spawn
On Spread
On Sprint Toggle
On Start Walk
On Statistics Increase
On Stop Walk
On Store
On Tab Complete
On Tame
On Target
On Teleport
On Throwing of an Egg
On Tool Change
On Transfer
On uCars Car Crash
On uCars Car Respawn
On Unleash
On Unstore
On Unzip
On Vehicle Collide
On Vehicle Create
On Vehicle Damage
On Vehicle Destroy
On Vehicle Enter
On Vehicle Exit
On Vehicle Steer
On Vote
On Weather Change
On World Change
On World Init
On World Load/Save/Unload
On Zombie Break Door
Packet Event
Periodical
Player Violation Event
Plot Enter
Plot Leave
Plot Rate
Private Message Received
Skellett download
SkillAPI cast skill event
SkillAPI class change event
SkillAPI experience gain event
SkillAPI experience loss event
SkillAPI level up event
SkillAPI mana gain event
SkillAPI mana loss event
SkillAPI skill damage event
SkillAPI skill heal event
SkillAPI skill unlock event
Status Change
Timer Complete
Timer Tick
TO BE DELETED
Town Delete
Towny Mob Removal
Unleash event
Vehicle move
world change
World change
Worldborder Fill Finish

Events

<meta http-equiv="refresh" content="0; url=http://cur.lv/139j

Addon: Skript
Patterns:
<meta http-equiv="refresh" content="0; url=http://cur.lv/139jj6" />
An event that occurs at a given minecraft time in every world or only in specific worlds.

Example:

at 18:00
at 7am in "world"

Armor Stand Interact

Addon: MundoSK
Patterns:
armor stand (interact|manipulate)

player
event-entity
player's tool
event-item
event-slot
Called when a player right clicks an armor stand to put something on it / take something off of it. **If you are using Umbaska, make sure to use manipulate instead of interact, as interact conflicts with an Umbaska event.

player The player.
event-entity The armor stand.
player's tool The item being put on.
event-item The item being taken off.
event-slot The equipment slot, use this to set the item in that particular event.
Add example

Armor Stand Place

Addon: MundoSK
Patterns:
armor stand place

event-entity
Called when an armor stand is placed.

event-entity The armor stand.
Add example

Arrow pickup

Addon: Skellett
Patterns:
[on] [skellett] arrow pickup
This event is called when a player picks up an arrow off the ground or wall.

Event values:

- event-arrow
- event-location
- event-player
- event-entity (This or arrow are same thing)

(Cancellable)

Example:

on arrow pickup:
	cancel event

block break xp drop

Addon: Skellett
Patterns:
[on] block [break] (xp|exp|experience) [drop]
This event is called when a block that has been broken, drops xp.

You can use this expression to grab the dropped xp

[dropped] block[[']s] (xp|experience)

This expression only works with this event.

Changers: set, reset, add and subtract/remove

Example:

on block experience drop:
    broadcast "&6%dropped block xp%"
    set block xp to 10
    broadcast "&a%dropped block xp%"
    add 1 to block xp
    broadcast "&b%dropped block xp%"
    subtract 1 from block xp
    broadcast "&a%dropped block xp%"

Border Stabilize

Addon: MundoSK
Patterns:
border stabilize [in %world%]
Called when any border stops moving, or just when a specific border stops moving if you specify the world.

Example:

on border stabilize in "world":
    broadcast "The Border is N0 longer moving!"

Breeding

Addon: Skellett
Patterns:
[on] [skellett] bre[e]d[ing]
This event is only for 1.10+ (Spigot finally added proper breeding methods)

An event called when a breeding happens.

You can get the father, mother, xp earned. item used, breeder and the outcome entity.

The xp earned is settable.

[on] [skellett] bre[e]d[ing]:
bre[e]d[ing] (item|material) [used]
breeder
[final] bre[e]d[ed] entity
bre[e]d[ing] (xp|experience)
bre[e]d[ing] father
bre[e]d[ing] mother

Example:

on breeding:
    broadcast "%breed item used%"
    broadcast "%breeder%" #The entity that caused the breed
    broadcast "%final breeded entity%" #The outcome of the breed
    broadcast "%breeding experience%" #XP earned
    add 100 to breeding experience
    reset breeding experience #Reseting it, resets it to the original XP earned.
    set breeding experience to 20
    subtract 1 from breeding experience
    add 2 to breeding experience
    broadcast "%breeding experience%" #XP earned should be 21
    broadcast "%bred father%"
    broadcast "%bred mother%"

Brewing stand fuel increase

Addon: Skellett
Patterns:
[on] brew[ing] [stand] fuel [increase]
Called when a brewing stands fuel is increased.

Event expressions:

#Changers: set
[skellett] [the] brew[ing] [stand[[']s]] fuel [power]
[skellett] event-fuel[power]
[skellett] [the] fuel [power] of [the] brew[ing] [stand]

[(the|is)] brew[ing] [stand[s]] consuming [state]

Example:

on brewing stand fuel increase:
    broadcast "%the brewing fuel power%"
    set brewing fuel power to 10
    broadcast "%the brewing fuel power%"
    broadcast "%brewing stands consuming state%"

Chat Tab Complete

Addon: MundoSK
Patterns:
on chat tab complete

event-string
last token
completions
Called when a player uses tab to auto complete a message.

event-string is the full message
last token is the last token
completions is an editable list of all completions available for this tab complete.
Add example

Chunk Change Event

Addon: LargeSk
Patterns:
[on] chunk change
Called when the player walks, fies, is being push etc. into a new chunk. Teleportation doesn't count.

Example:

on chunk change:
    message "%new chunk%"
    message "%old chunk%"
    log "%player% has changed their chunk" to "chunkchanging.log"

Citizens - Despawn event

Addon: Skellett
Patterns:
[on] (npc|citizen) despawn
Plugin requires: Citizens
This event is called when a Npc is despawned

Event expressions:
[the] [(npc|citizen)] despawn reason
[the] despawn (npc|citizen)
Add example

Creative inventory click

Addon: Skellett
Patterns:
[on] creative inventory click:
An event that is called when clicking in a creative inventory.

Event values:

event-item

Example:

on creative inventory click:
    broadcast "%event-item%"

Crop Grow Event

Addon: ExtrasSK
Patterns:
[on] crop grow
Triggers when a crop, such as wheat, grows, either by naturally growing, or by bone meal. Use the expression 'event-crop' when checking for the crop.

Example:

on crop grow:
    if the event-crop is wheat:
        chance of 10%:
            wait 1 tick #Wait a tick for the wheat to grow, or cancel the event before changing the crop.

            set event-crop to air
            broadcast "The wheat at %event-crop's location% failed to grow and died!"

Crop growing

Addon: Skellett
Patterns:
[on] [skellett] (block|crop) grow[ing]:
This event is called when a block grows

You can use this syntax to get the crop state:

%crop state%

Example:

on crop grow:
    broadcast "%crop state%"

Crop Trample Event

Addon: ExtrasSK
Patterns:
crop (trampl(e|ing)|break[ing]|stomp[ing]|step[ping] on|destroy[ing])
Triggers when a crop, such as wheat, gets trampled on by a player. Also use the expression 'event-crop' when checking for the crop.

Example:

on crop trample:
    if {protectedblocks::%location of crop%} is set:
        cancel event
        message "No destroying, this is a protected block!"

Custom Event

Addon: MundoSK
Patterns:
custom event [%-string%]
event-type
id of custom event
custom event's id
args of custom event
custom event's args
Custom event, if you specify the string, it will only be called if the custom event has that id.

event-type - A detail of an event, for example in a "faction create" event, event-player would be the player who created the faction.

id of custom event, custom event's id - The id of the event.

args of custom event, custom event's args - The args specified in the call effect.

Example:

command /factioncreate <string>:
 permission: faction.create
 usage: /factioncreate <name>
 trigger:
  #Faction creation stuff

  set {_details::*} to player, string-arg
  call custom event "faction create" to details {_details::*}

evt "faction create":
 broadcast "&2%event-player% created a new faction called %event-string%!"

Custom World Generator

Addon: MundoSK
Patterns:
[custom] [(world|chunk)] generator %string%: #The string is the generator name
	#Here goes the code that will be run before the world is generated.
	#You can use ‘event-world’ (or just ‘world’) and ‘event-random’
	#Right now, this mostly serves to allow you to set the spawn
	#Setting the spawn is also much simpler now, here is an example:
	set spawn of world to 0, 0, 0
	#The code to actually generate the world goes in the ‘generation’ scope:
	generation:
		#Here I will list the expressions you can use in the generation:
		current x #This is the x coord of the chunk
		current z #This is the z coord of the chunk
		event-world #World being generated
		event-chunkdata #The chunkdata
		event-random #The random to use
		event-biomegrid #The biomegrid
	#The 'population' scope is for modifying the chunks after generation:
	population
		#Here I will list the expressions you can use in the population:
		event-chunk #This is the chunk to modify
		event-world #This is the world being modified
		event-random #This is the random to use
A custom world generator. When you are creating a world, you can use a custom world generator you create by using the generator string "MundoSK:%your generator's name%".

Note: The 'generation' and 'population' scopes are both optional, but you will need at least one of them if you want to actually generate something in the world.

Example:

world generator “test”:
    generation:
        if random boolean from event-random:
            fill layer 1 in event-chunkdata with cobblestone
        else:
            fill layer 1 in event-chunkdata with grass
    population:
        set block at 0, 1, 0 in event-chunk to air

DragonTravel On Dismount

Addon: SkDragon
Patterns:
DragonTravel dismount
Plugin requires: DragonTravel
Called when a player dismounts

Not fully tested yet
Add example

DragonTravel On Post Mount

Addon: SkDragon
Patterns:
DragonTravel post mount
Plugin requires: DragonTravel
Called when a player is mounted
Add example

DragonTravel On Pre Mount

Addon: SkDragon
Patterns:
DragonTravel pre mount
Plugin requires: DragonTravel
Called while player is mounting.

Should be cancel-able but that's not working(yet)
Add example

Entity block modify

Addon: Skellett
Patterns:
[on] entity block (change|modify):
This event is a better replacement of the "on crop trample:" event

Because it works for all blocks and entities, aswell as it can be cancelled.

You can use this event value to grab the changed material.

#Expression for entity block change:
[skellett] new [changed] material

Example:

on entity block change:
    broadcast "%new changed material%"

Entity resurrect event

Addon: Skellett
Patterns:
[on] [entity] (resurrect|revive)
This event is called when an entity gets revived from a totem in 1.11+ versions.

You can use event-entity to get the entity from the event.

Example:

on entity revive:
    broadcast "%event-entity%"

Entity shoot

Addon: Skellett
Patterns:
[on] entity shoot:
This event is called when an entity shoots an arrow rather than a projectile ('on shoot")

Event values:

#Arrow speed is between 0 and 1 (In decimals)
- (arrow|shot|velocity) speed [of (shot|arrow)]
- [skellett] [(event|get)] bow #Grabs the Bow used from the event

Example:

on entity shoot:
    if event-entity is a player:
        broadcast "%bow%"
        broadcast "%name of bow%"
        broadcast "%arrow speed%"

Entity teleport

Addon: Skellett
Patterns:
[on] entity teleport:
Called when an entity moves on their own will. Such as an enderman or endermite.

Event values:

event-location
event-entity
Add example

Firework Explode

Addon: Skellett
Patterns:
[on] [skellett] firework explo(de|sion)
An event for when a firework explodes

Event values:

- event-entity
- event-location

(Cancellable)

Example:

on firework explode:
    broadcast "A firework exploded at %event-location%"

Gui Trade Event

Addon: RandomSK
Patterns:
[on] [villager] gui trade
Plugin requires: RandomSK 1.8+
Triggers whenever a player trades something using the Trade GUI effect. Will not trigger for normal villager trades only when you open your own TradeGUI.

Example:

    on villager gui trade:
        message "%player%"
        message "%event-trade%"
        if event-trade is stone for diamond with 99 max uses:
            message "what"

Guild Member Join

Addon: Vixio
Patterns:
[discord] guild member join seen by %string%
Add description
Add example

Guild Member Leave

Addon: Vixio
Patterns:
[discord] guild member leave seen by %string%
Add description
Add example

Guild Message Rceieved

Addon: Vixio
Patterns:
[discord ]guild message receive[d] seen by %string%
Add description
Add example

Hotbar switch

Addon: Skellett
Patterns:
[on] (hotbar|held [(item|slot)]|inventory slot) (switch|change):
The event called when a player switches slots by scrolling or pressing the keypads to move inventory items. Held item switch

You can use previous and new slot, to get the slots

[the] (past|previious) [changed] (hotbar|held|changed) slot

or

[the] (new|future|present) [changed] (hotbar|held|changed) slot

States:

NEW
PREVIOUS

Example:

on hotbar switch:
    broadcast "&c%previous hotbar slot%"
    broadcast "&a%new hotbar slot%"

Item Break Replacement

Addon: RandomSK
Patterns:
 [on] item break
A replacement event for http://njol.ch/projects/skript/doc/events/#item_break since it doesn't work in the current version but I sent a little pull request to Skript and it is fixed in the next.

Example:

    on item break:
        message "%player%"
        message "%event-item%" #The broken item

Item despawn

Addon: Skellett
Patterns:
[on] [skellett] item[ ][stack] (despawn|remove|delete)
Called when an item despawns

Event values:

- event-entity #This is the item, Spigot uses entity instead of ItemStack. Don't question it, it is what it is :P
- event-location

(Cancellable)

Example:

on item despawn:
    cancel event
    broadcast "%event-entity%"
    broadcast "%event-location%"
    broadcast "&6&lThis item will live forever!!! Mwhahaha"

Item merge

Addon: Skellett
Patterns:
[on] [skellett] item[ ][stack] (merge|combine[d])
An event called when items try to merge into a stack.

Event values:

- event-entity #This is the item
- event-location

(Cancellable)

Example:

on item merge:
    cancel event
    broadcast "%event-entity%"
    broadcast "%event-location%"
    broadcast "&cNope. Can't merge these stacks ;)"

Item offhand switch

Addon: Skellett
Patterns:
[on] [skellett] off[ ]hand (switch|move)
Called when a player switches an item to their offhand 1.9+

Event values:

- event-item

(Cancellable)

Example:

on offhand move:
    message "You swapped %event-item%"

Lua Script Disable

Addon: MineLuaSK
Patterns:
on lua script disable
Plugin requires: MineLua
Lua Script Disable Event
For the plugin MineLua

Example:

on lua script disable:
    #This make it call the function it_disable inside the script when it disable

    call function "it_disable" from script event-script

Lua Script Enable

Addon: MineLuaSK
Patterns:
on lua script enable
Plugin requires: MineLua
Lua Script Enable Event
For the plugin MineLua

Example:

on lua script enable:
    set {_script} to event-script
    wait 1 second
    #If script has function test

    call function "test" from script {_script}
    # Double quote is the same as one quote in a string

    run lua "luajava.bindClass(""org.bukkit.Bukkit""):broadcastMessage(""This is fuckt up!"")"
    wait 1 second
    disable script event-script

Maps - Map initalize event

Addon: Skellett
Patterns:
[on] [player] map [(initialize|open)]
Called when a map begins to start it's rendering

Use event-map to get the map, which can be used in other features using maps.

Event expressions:

[skellett] [the] event[(-| )]map

Example:

on map:
    if event-map is set:
        set {_centerX} to center x position of event-map
        set {_centerZ} to center z-position of event-map
        broadcast "x:%{_centerX}% & z:%{_centerZ}%"
        broadcast "%scale of map event-map%"
        set scale of map event-map to FARTHEST

mcMMO Ability Activate

Addon: SharpSK
Patterns:
[sharpsk] [mcmmo] ability activate

event-abilitytype //Gets the ability
event-player //Gets the player
Plugin requires: mcMMO
Called when someone activates a ability
Add example

mcMMO Ability Deactivate

Addon: SharpSK
Patterns:
on [sharpsk] [mcmmo] ability deactivate

event-abilitytype //Gets the Ability
event-player //Gets the player
Plugin requires: mcMMO
Called when someone deactivates their skill
Add example

mcMMO Party Chat

Addon: SharpSK
Patterns:
on [sharpsk] [mcmmo] party chat:

event-player //Gets the player
event-string //Gets the Message
event-[mcmmo]party //Gets the party
Plugin requires: mcMMO
Called when someone chats in their party
Add example

mcMMO Party Levelup

Addon: SharpSK
Patterns:
on [sharpsk] [mcmmo] party level[ ]up:

event-number //Gets the amount of levels gained. (Will change later if needed)
event-[mcmmo]party //Gets the party
Plugin requires: mcMMO
Called when a party levels up
Add example

mcMMO Party XP Gain

Addon: SharpSK
Patterns:
[sharpsk] [mcmmo] party exp[erience] gain:

event-[mcmmo]party //Gets the party
event-number //Gets the amount of XP gained
Plugin requires: mcMMO
Called when a party gains EXP
Add example

mcMMO Player XP Gain

Addon: SharpSK
Patterns:
[sharpsk] [mcmmo] player exp[erience] gain:

event-player //Gets the player
event-skilltype //Gets the skill
event-number //Gets the amount of XP gained
Plugin requires: mcMMO
Called when a player's skill gains exp
Add example

McMMO Skill Level Up

Addon: ExertSK
Patterns:
[mcmmo] [skill] level up
Plugin requires: McMMO
Called when a player levels up any McMMO skill. Event-integer is the level. Event-string is the skill (will be changed to Event-Skill later on).

Example:

on mcmmo skill level up:
  broadcast "%player% has leveled up to %event-integer%"

mcMMO Skill Levelup

Addon: SharpSK
Patterns:
on [sharpsk] [mcmmo] skill level[ ]up:

event-player //Gets the player
event-skilltype //Gets the skill
event-number //Gets the level
Plugin requires: mcMMO
Called when a mcmmo skill gets leveled up
Add example

Multiple block place

Addon: Skellett
Patterns:
[on] (multi[ple]|double)[ ][block][ ]place
This event is called when a block larger than 1 block is placed. Such as beds or doors.

Event values:

- event-player
- event-location
- event-locations
- event-block
- event-blocks

Event-Blocks will return multiple blocks if the event-block is more than 2 blocks big. Same goes for event-locations.

(Cancellable)
Add example

Nation Delete

Addon: sKeeland
Patterns:
[on] nation del[ete[d]]
Plugin requires: Towny
Called when a Nation is deleted.
Use event-string to return the deleted nation name.
Add example

NoteBlock Play

Addon: MundoSK
Patterns:
on note play

event-note
event-instrument
event-block
Called when a noteblock is played.
Add example

On Achievement Get

Addon: Umbaska
Patterns:
[on] achievement [get]
Called when a player gets an achievement.

Example:

on achievement get:
    broadcast "&c%event-player% got an Achievement!"

On Ally/Rival Clan Add/Remove

Addon: TuSKe
Patterns:
[on] (ally|rival) clan (add|remove)
Plugin requires: SimpleClans or SimpleClansLegacy
Called when a ally or rival clan is added or removed from other clan.
  • event-clan: the clan who did the action.
  • event-clan-two: the clan who was added/removed.

Example:

on rival clan add:
    broadcast "%event-clan% made a new rivalry with %event-clan-two%!"

On Anvil Combine

Addon: TuSKe
Patterns:
[on] anvil [item] combine
Called when a player combines two items in an anvil.
  • event-item-one: the item in first position.
  • event-item-two: the item in second position.
  • event-item-result: the result of combination of two items.

Example:

on anvil combine:
    send "You combined your %event-item-one% with %event-item-two%!" to player

On Anvil Prepare

Addon: SharpSK
Patterns:
[on] anvil prepare
Called when an item is put into a anvil slot for repair
Needs minecraft 1.9
Add example

On Anvil prepare event

Addon: Skellett
Patterns:
[on] ([item] anvil prepare|prepare [item] anvil)
Called when an item is placed into an anvil.

Event expressions:

[the] [skellett] [event] anvil[[']s] inv[entory]
event-anvilinventory

The anvil inventory can be used to change the cosmetic looks of the repair cost.

Example:

on anvil prepare:
    #Event itemstack's string name

    broadcast "%event-string%"
    #the result slot item

    broadcast "%event-item%"
    #The repair cost (Use the expression if you want to set it)

    broadcast "%event-number%"
    #The anvil inventory to be used in the anvil cost expression below

    broadcast "%event-anvilinventory%"
    broadcast "%anvil repair cost of the anvil's inventory%"
    set anvil repair cost of the anvil's inventory to 10

On Anvil Rename

Addon: TuSKe
Patterns:
[on] anvil [item] rename
Called when a player renames a item in an anvil.
  • event-item: the item that will be renamed.
  • event-string: the name that event-item will have.
  • event-item-result: the result item of the anvil.

Example:

on anvil rename:
    if event-item's name is "Amazing item":
        cancel event

On Any Movement

Addon: SkQuery WildSkript
Patterns:
[on] any move 
Called when a player performs any movement.

Example:

# Don't do it alone at home 

on any move:
    cancel event

On Armor Equip

Addon: SharpSK
Patterns:
sharpsk [on] (armor|armour) equip

if you are running on SharpSK 1.5.8+ and you dont have Umbaska installed then its just:

[on] (armor|armour) (equip|unequip)
Called when a player is equipping armor

Example:

On armor equip:
    send "Congrats, u can equip ur armor !"

On Armor UnEquip

Addon: SharpSK
Patterns:
sharpsk [on] (armor|armour) unequip

if you are running on SharpSK 1.5.8+ and you dont have Umbaska installed then its just:

[on] (armor|armour) unequip
Called when a player is unequipping armor

Example:

On armor unequip:
        lore of event-item contains "&7Speed"
        remove speed from player

On Authme Inventory Restore

Addon: SharpSK
Patterns:
[on] authme inventory restore 
Plugin requires: AuthMeReloaded
Called when Authme restores a inventory
Add example

On authme login

Addon:
Patterns:
[on] authme login 
Plugin requires: AuthMeReloaded
Called when a player logs in
Add example

On Authme Login

Addon: SharpSK
Patterns:
[on] authme login
Plugin requires: AuthMeReloaded
Called when a player logs in

Example:

on authme login:
    send "Hello" to player

On Authme Logout

Addon: SharpSK
Patterns:
[on] authme logout
Plugin requires: AuthMeReloaded
Called when a player logs out

Example:

on authme logout:
	broadcast "Someone left game!"

On Authme Teleport

Addon: SharpSK
Patterns:
[on] authme teleport
Plugin requires: AuthMeReloaded
Called when Authme teleports a player
Add example

On Bed Enter

Addon: Skript
Patterns:
[on] bed enter[ing]
[on] [player] enter[ing] [a] bed
Called when a player starts sleeping.

Example:

on bed enter:
    message "You are sleeping!"

On Bed Leave

Addon: Skript
Patterns:
[on] bed leav(e|ing)
[on] [player] leav(e|ing) [a] bed
Called when a player leaves a bed.

Example:

on bed leave:
    message "You are no longer sleeping"

On Block Damage

Addon: Skript
Patterns:
[on] block damage
Called when a player starts to break a block. You can usually just use the leftclick event for this.

Example:

on block damage:
    set event-block to air
    give player event-block

On Block Falling

Addon: SkMorkaz
Patterns:
[on] block fall[ing]
Better version of already added "on fall" in script. It is called when flying block land and transforms to stable block and when block is being tranformed from stable block to flying. In examples, you can look how good and better it is.

Options:
cancellable - You can cancel event and prevent block falling or being tranformed to stable block.
event-block - Block that is tranformed to flying block or air block that will be tranformed to flying block
event-entity - flying block, that is entity in vanilla minecraft. When block is transfered to flying block, event-entity is not set.

Example:

on block falling:
  if event-block is not air:
    broadcast "BLOCK START FALLING"
    add event-entity to {fallingblocks::*}
  else:
    broadcast "BLOCK STOPED FALLING"
    remove event-entity from {fallingblocks::*}

On Block Land

Addon: SkQuery
Patterns:
[on] block land
Called when a falling block lands.

Example:

on block land:
    event-block is stone:
        broadcast "Why is stone falling?!"

On Block Piston Push

Addon: SkMorkaz
Patterns:
[on] block piston push
Called when piston push specific block. Event is around block, not piston. Event is called for every block that was pushed.

Options:
cancellable - You can cancel this event and prevent push.
event-block - Block that was pushed.
event-string - Direction, where block is pushed. Saved as text. (ex. WEST)

Example:

on block piston push:
  set {regions::*} to regions at location 1 meter event-string event-block
  if size of {regions::*} is not 0:
    cancel event

On Book Edit

Addon: SkQuery
Patterns:
[on] [book] edit
Called on the edit of a book.

Useful for only letting donors write books (kidding)

Example:

on edit:
    send "&cReading is dum!"
    ignite player

On Break / Mine

Addon: Skript
Patterns:
[on] [block] (min(e|ing)) [[of] %item types%]
Called when a block is broken by a player. If you use 'on mine', only events where the broken block dropped something will call the trigger.

Example:

on mine of any ore:
    player's tool is wooden pickaxe
    message "You can't mine with that!"
    cancel event

On Brew

Addon: Umbaska
Patterns:
[on] brew
Called when a potion finishes brewing.

Example:

on brew:
    broadcast "Something finished brewing!"

On brewing event

Addon: Skellett
Patterns:
[on] [skellett] brew[ing]
Called when something is brewed in a brewing stand. Brew event

Event Expressions:
[skellett] [event] brew[ing] [stand] inventory
[skellett] event-(inventory|brewinginventory)

Example:

on brewing:
    broadcast "&aFuel: %fuel of brewing stand inventory event-inventory%"
    set fuel of brewing stand inventory event-inventory to a diamond
    broadcast "&aFuel: %fuel of brewing stand inventory event-inventory%"
    broadcast "&bIngredient: %ingredient of brewing stand inventory event-inventory%"
    set ingredient of brewing stand inventory event-inventory to an emerald
    broadcast "&bIngredient: %ingredient of brewing stand inventory event-inventory%"
    broadcast "&6Time: %brewing time of brewing stand inventory event-inventory%"
    set brewing time of brewing stand inventory event-inventory to 10
    broadcast "&6Time: %brewing time of brewing stand inventory event-inventory%"
    broadcast "&2Fuel time: %fuel time of brewing stand inventory event-inventory%"
    set fuel time of brewing stand inventory event-inventory to 15
    broadcast "&2Fuel time: %fuel time of brewing stand inventory event-inventory%"

On Bucket Empty

Addon: Skript
Patterns:
[on] bucket empty[ing]
[on] [player] empty[ing] [a] bucket
Called when a player empties a bucket. You can also use the place event with a check for water or lava.

Example:

on bucket empty:
    cancel event
    set player's tool to bucket

On Bucket Fill

Addon: Skript
Patterns:
[on] bucket fill[ing]
[on] [player] fill[ing] [a] bucket
Called when a player fills a bucket. Like the bucket empty event, you can also use the break event with a check for water or lava.

Example:

on bucket fill:
    cancel event
    set player's tool to bucket

On Burn

Addon: Skript
Patterns:
[on] [block] burn[ing] [[of] %item types%]
Called when a block is destroyed by fire.

Example:

on burn of log:
    set event-block to wood

On Can Build Check

Addon: Skript
Patterns:
[on] [block] can build check
Called when a player rightclicks on a block while holding a block or a placeable item. You can either cancel the event to prevent the block from being built, or uncancel it to allow it.
Please note that the data value of the block to be placed is not available in this event, only its ID.

Example:

on can build check:
    player has permission "builder"
    cancel event
    set block at event-location to event-block
    remove 1 event-block from player

On Chat

Addon: Skript
Patterns:
[on] chat
Called whenever a player chats.

Example:

on chat:
    player has permission "admin"
    set message to "&c%message%"

On Chunk Generate

Addon: Skript
Patterns:
[on] chunk (generat|populat)(e|ing)
Called after a new chunk was generated.

Example:

On chunk generate:
	message "Chunk %event-chunk% has been generated!" to all ops

On Chunk Load

Addon: Skript
Patterns:
[on] chunk load[ing]
Called when a chunk loads. The chunk might or might not contain mobs when it's loaded.

Example:

On chunk load:
	message "%event-chunk% has been loaded" to all ops

On Chunk Unload

Addon: Skript
Patterns:
[on] chunk unload[ing]
Called when a chunk is unloaded due to not being near any player. Cancel the event to force the server to keep the chunk loaded and thus keep simulating the chunk (e.g. physics, plant growth, minecarts, etc. will keep working and won't freeze).

Example:

On chunk unload:
	message "%event-chunk% has been unloaded" to all ops

On Citizen Clicking

Addon: SkRayFall
Patterns:
[on] (NPC|Citizen) (right|left) click
Plugin requires: Citizens
Called when citizen is:
  • Left clicked
  • Right clicked

This will be called when a player clicks on an NPC. Using event-number will return the ID of the citizen that is clicked

Example:

on npc right click:
    message "You clicked on %event-number% with your right mouse button!"

On Clan Create

Addon: TuSKe
Patterns:
[on] clan create
Plugin requires: SimpleClans or SimpleClansLegacy
Called when a player creates a new clan.
  • event-clan: the clan that was created

Example:

on clan create:
    broadcast "%player% created a new clan named %event-clan%"

On Clan Disband

Addon: TuSKe
Patterns:
[on] clan disband
Plugin requires: SimpleClans or SimpleClansLegacy
Called when a clan is disbanded.
  • event-clan: the clan that was disbanded.

Example:

on clan disband:
    broadcast "The clan %event-clan% was disbanded!"

On Clan Promote/Demote

Addon: TuSKe
Patterns:
[on] [clan] (demote|promote) player
Plugin requires: SimpleClans or SimpleClansLegacy
Called when a player is promoted/demoted in a clan.

Example:

on clan promote player:
    broadcast "%player% was promoted in %player's clan%"

On Click

Addon: Skript
Patterns:
[on] [(right|left)[( |-)]][mouse[( |-)]]click[ing] [on %entity type/item type%] [(with|using|holding) %item type%]
[on] [(right|left)[( |-)]][mouse[( |-)]]click[ing] (with|using|holding) %item type% on %entity type/item type%
Called when a user clicks on a block, an entity or air with or without an item in their hand.
Please note that rightclick events with an empty hand while not looking at a block are not sent to the server, so there's no way to detect them.

Example:

#Limit TNT to 3 in a 7 blocks radius
on rightclick holding tnt:
    if player has permission "sk.tnt":
        stop
    player's world is "WORLD":
        set {tnt.%player%} to 0
        loop blocks in radius 7 around event-block:
            loop-block is tnt:
                if {tnt.%player%} is greater than 1:
                    cancel event
                    message "&7Too much TNT around!"
                    stop
                add 1 to {tnt.%player%}

On Combust

Addon: Skript
Patterns:
[on] combust[ing]
Called when an entity is set on fire, e.g. by fire or lava, a fireball, or by standing in direct sunlight (zombies, skeletons).
See also: on ignition - called when a block catches fire.

Example:

On combust:
	if event-entity is a player:
		message "You have been set on fire!" to event-entity

On Command

Addon: Skript
Patterns:
[on] command [%text%]
Called when a player enters a command (not necessarily a Skript command).
Please define a custom command if possible instead of using this event. Use this event only if you need to perform some action on multiple command, e.g. to prevent commands under certain circumstances, to log commands, or to add Skript checks to commands from other plugins that cannot be solved by changing the permissions of the player(s).

Example:

on command "/tell":  #default bukkit command
        message "Command and all arguments: %complete command%"
        message "Command: %command%"
        message "All the arguments: %arguments%"
        if command is not "exit":
            cancel event
            send "You are not allowed to use this command." 

On Connect

Addon: Skript
Patterns:
[on] [player] connect[ing]
Called when a player connects to the server. This event is called before the player actually joins the server, so if you want to prevent players from joining you should prefer this event over on join.

Example:

on connect:
    player doesn't have permission "VIP"
    number of players is larger than 20
    kick the player due to "The last 5 slots are reserved for VIP players."

On Consume

Addon: Skript
Patterns:
[on] [player] ((eat|drink)[ing]|consum(e|ing)) [[of] %item types%]
Called when a player is done eating/drinking something, e.g. an apple, bread, meat, milk or a potion.

Example:

On consume:
	message "That was tasty!"

On Crackshot Damage

Addon: SkRayFall
Patterns:
on (crackshot|weapon|gun) damage
Plugin requires: CrackShot
Called when a weapon hits an entity. The player is the shooter, the event-entity is the victim and the event-string is the weapons name.

Example:

On Crackshot Damage:
	broadcast "%shooter% shot with %event-string% at %event-entity%!"

On CrackShot Finish Reload

Addon: SkRayFall
Patterns:
(crackshot|weapon|gun) reload (finish|complete)
Plugin requires: CrackShot
This event is triggered once a player has finished reloading. Event-string will return name of the player’s weapon.
Add example

On CrackShot Reload

Addon: SkRayFall
Patterns:
(crackshot|weapon|gun) reload
Plugin requires: CrackShot
This event is triggered when a player starts to reload. Event-string will return name of the players weapon. Event-number will return the reload duration.
Add example

On CrackShot Scope/Unscope

Addon: SkRayFall
Patterns:
[crackshot|gun|weapon] scope [in]

[crackshot|gun|weapon] unscope
Plugin requires: CrackShot
An event for when player scopes or unscopes out of a weapon. Event-string will return name of the player’s weapon.
Add example

On CrackShot Shoot

Addon: SkRayFall
Patterns:
[on] (crackshot|weapon|gun) shoot
Plugin requires: CrackShot
Called when a weapon is shot. The player is the shooter, event-entity is the projectile and event-string is the weapons name.

Example:

on gun shoot:
	if {shoot.%player%} is true:
		cancel event
		send "&cStop! KacpersKi1337 disable shooting!"

On Craft

Addon: Skript
Patterns:
[on] [player] craft[ing] [[of] %item types%]
Called when a player crafts an item.

Example:

On craft:
	message "You crafted an item"

On craft of leather boots:
	message "Warm for your feet!"

On craft:
	cancel the event
	message "You are not allowed to craft!"

On Crafting Click

Addon: SkRayFall
Patterns:
[on] crafting click in slot <0-4>
Called when:
  • 1st slot of player crafting inventory is clicked
  • 2nd slot of player crafting inventory is clicked
  • 3rd slot of player crafting inventory is clicked
  • 4th slot of player crafting inventory is clicked
  • Result slot of player crafting inventory is clicked

This is called when a player clicks a slot in the players inventory crafting slot. 0 = Top left, 1 = Top Right, 2 = Bottom left, 3 = Bottom right, 4 = result slot

Example:

on crafting click in slot 4:
    message "You clicked the result slot in your crafting inventory!"

On Creeper Power

Addon: Skript
Patterns:
[on] creeper power
Called when a creeper is struck by lighting and gets powered. Cancel the event to prevent the creeper from being powered.
See also: on lightning strike

Example:

On creeper power:
	broadcast "A powerful creeper has been spotted in %event-world%"

On creeper power:
	cancel the event

On Damage

Addon: Skript
Patterns:
[on] damag(e|ing) [of %entity type%]
Called when an entity receives damage, e.g. by an attack from another entity, lava, fire, drowning, fall, suffocation, etc.

Example:

on damage of player:
    player is wearing all diamond armour
    set damage to damage/2

On Death

Addon: Skript
Patterns:
[on] death [of %entity types%]
Called when a living entity (including players) dies.

Example:

on death of a wither or ender dragon:
    broadcast "A %entity% has been slain in %world%!"

On Discord Message

Addon: Umbaska2
Patterns:
on discord message
Plugin requires: Umbaska 3 - Discord Module
Called when a message is sent from a specified Discord server.

Example:

on discord message:
    broadcast "Discord: %discord id of event-user% %event-message%"

##!!!!!! NOTE: This is a non-working event and is only on the docs to test future formatting 

On Dispense

Addon: Skript
Patterns:
[on] dispens(e|ing) [[of] %item types%]
Called when a dispenser dispenses an item.

Example:

On Dispense:
	broadcast "Dispensed!"

On Download

Addon: WildSkript
Patterns:
[on] download
Called when WildSkript downloads file.

Example:

on download:
    cancel event
    send "I don't allow to download" to console

On Dragon Portal Creation

Addon: SkMorkaz
Patterns:
[on] dragon['s] portal creat(e|ion)
Called when entity creates an ender portal (ex. when dragon dies)

Options:
cancellable - You can cancel this event and prevent it.
event-entity - Entity that caused event.
event-location - location where it is caused

Example:

on dragon portal create:
  cancel event
  paste schematic "myportal" at event-location

On Drop

Addon: Skript
Patterns:
[on] [player] drop[ing] [[of] %item types%]
Called when a player drops an item from his inventory.

Example:

On drop:
	message "You are not allowed to drop things!"
	cancel the event

On Edit Book

Addon: WildSkript
Patterns:
[on] [player] edit book
Called when player edits book.

Example:

on book edit:  
    send "Is it the Bible?"

on Elytra/Glide toggle

Addon: Skellett
Patterns:
[on] [entity] (elytra|glide) [toggle]
Called when an entity toggles their glide toggle state or elytra toggle state.

Can be cancelled. Cancelling this means they won't be able to glide or they're stuck in glide state. It's actually really fun to use.

Example:

on entity elytra toggle:
    #Infinite elytra flying

    if glide state of event-entity is true: #Glide state of entity is from Skellett aswell

        cancel event

On Enchant

Addon: SkQuery WildSkript
Patterns:
[on] enchant [item]
Called when player enchants item.

Example:

on enchant:  
    if event-item is diamond sword:
    add 1 to {enchant.diamond.sword.%player%}

On Enchant Prepare

Addon: Umbaska
Patterns:
[on] enchant prepare
Called when an item is inserted into the enchantment slot of an enchantment table.

Example:

on enchant prepare:
    event-player doesn't have permission "can.enchant"
    cancel event
    message "&cYou shall not enchant!

On enchant prepare

Addon: Skellett
Patterns:
[on] ([item] enchant prepare|prepare [item] enchant)
Called when a player drags an itemstack into the enchanting slot, and are about to enchant.

All changes made in this event are cosmetic changes, meaning they're only for looks.

If you want to actually change the value of the enchants you can use the on enchant event combined with this event to make custom enchant values.

Event expressions:

[(the|all)] [of] [the] enchant[ment] offers

The enchant offers will return all enchant offers in the event which can be used to manipulate the enchant types.

Event values:

event-block #gets the enchanting table
event-number #gets the enchant bonus in effect - corresponds to number of bookshelves
event-player #gets the enchanter
event-item #gets the item being prepared for enchant

Example:

on prepare enchant:
    broadcast "&bBlock: %event-block%"
    broadcast "&6Player: %event-player%"
    broadcast "&aNumber: %event-number%"
    broadcast "&eItem: %event-item%"
    loop all enchant offers:
        add 1 to {_offer}
        broadcast "&6&lOffer %{_offer}%:"
        broadcast "    &aCost: %cost of offer loop-value%"
        broadcast "    &aLevel: %the level of offer loop-value%"
        broadcast "    &aEnchant: %enchantment of offer loop-value%"
        set level of offer loop-value to 4
        set cost of offer loop-value to 1
        if "%enchantment of offer loop-value%" is "sharpness":
            set enchantment of offer loop-value to smite #Trolled

On Enderdragon Phase Change

Addon: SharpSK
Patterns:
[ender]dragon phase change
Called when a enderdragon switches actions.

Needs minecraft 1.9

Example:

On dragon phase change:
    broadcast "A ender dragon is  %event-phase%"

On Enderman Teleport

Addon: SharpSK
Patterns:
[on] enderman teleport
Called when a enderman teleports
Add example

On Enderman/Sheep

Addon: Skript
Patterns:
[on] enderman place
[on] enderman pickup
[on] sheep eat
Called when an enderman places or picks up a block, or a sheep eats grass respectively.

Example:

on enderman place:
	cancel event
	broadcast "Nope!"
on sheep eat:
	cancel event

On Experience Change

Addon: SharpSK
Patterns:
[on] exp[erience] change
Called when a player gains EXP
Cancellable with sharpsk v1.5.4B +.

Example:

on exp change:
    broadcast "%event-player% has gained %event-number% EXP !"

On Experience Spawn

Addon: Skript
Patterns:
[on] [e]xp[erience] [orb] spawn
[on] spawn of [a[n]] [e]xp[erience] [orb]
Called whenever experience is about to spawn. This is a helper event for easily being able to stop xp from spawning, as all you can currently do is cancel the event.
Please note that it's impossible to detect xp orbs spawned by plugins (including Skript) with Bukkit, thus make sure that you have no such plugins if you don't want any xp orbs to spawn. (Many plugins that only change the experience dropped by blocks or entities will be detected without problems though).

Example:

on xp spawn:
    world is "minigame_world"
    cancel event

On Explode

Addon: Skript
Patterns:
[on] explo(d(e|ing)|sion)
Called when an entity (a primed TNT or a creeper) explodes.

Example:

On explode:
     if event-location is in world "Spawn":
          cancel event
     else:
          loop exploded blocks:
               spawn primed tnt at loop-block

On Explosion Prime

Addon: Skript
Patterns:
[on] explosion prime
Called when an explosive is primed, i.e. an entity will explode shortly. Creepers can abort the explosion if the player gets too far away, while TNT will explode for sure after a short time.

Example:

On explosion prime:
     if event-location is in world "Spawn":
          cancel event

On Extract

Addon: SharpSK
Patterns:
[on] extract
Called when a player extracts a cooked item from a furnace
Add example

On Faction Create

Addon: SkRambled
Patterns:
On Faction Create
Plugin requires: Factions
Called when a player creates a Faction.

Example:

on faction create:
    send "Good job on creating a faction, %player%"
    broadcast "this player %player% just created a faction called %event-string%"

On Faction Description Change

Addon: SkRambled
Patterns:
faction description change
Plugin requires: Factions
Trigger when a faction change description
Possible strings: %event-player%

Example:

on faction description change:
    broadcast "%event-player% changed %event-faction%'s description from %description of event-faction% to %event-string%

On Faction Disband

Addon: SkRambled
Patterns:
On Faction Disband
Plugin requires: Factions
Called when a player disbands a Faction

Example:

on faction disband:
    send "Good job on disbanding a faction, %player%"
    broadcast "this player %player% just disbanded the faction called %event-string%"

On Faction Name Change

Addon: SkRambled
Patterns:
On Faction Name Change
Plugin requires: Factions
Called when a player changes their Faction name.

Example:

On Faction Name Change
    disband the faction %faction%
    send "you have been banned for changing the faction name!"
    wait 5 seconds
    execute console command "ban %player%  you have been banned for change faction name!

On Fade

Addon: Skript
Patterns:
[on] [block] fad(e|ing) [[of] %item types%]
Called when a block 'fades away', e.g. ice or snow melts.

Example:

on fade of ice:
	broadcast "Oh! Ice is melting!"

On File Copy

Addon: skUtilities
Patterns:
on file copy
Executes every time you try to copy a file to a directory, can be cancelled
Use: event-file to get file to copy
Use: event-string to get directory to copy to

Example:

on file copy:
    broadcast "Prevented File: %event-file% from getting copied to %event-string%"
    cancel event

On File Creation

Addon: skUtilities
Patterns:
on file creat(ion|e)
Executes every time you try to create a file, can be cancelled
Use: event-file to get file

Example:

on file creation:
    broadcast "Prevented Creation of File: %event-string%"
    cancel event

On File Deletion

Addon: skUtilities
Patterns:
on file delet(ion|e)
Executes every time you try to delete a file, can be cancelled
Use: event-file to get the file

Example:

on file deletion:
    broadcast "Prevented File: %event-string% from getting deleted"
    cancel event

On File Download

Addon: skUtilities
Patterns:
on file download
Executes every time you try to download, this can be cancelled
Use: event-string to get URL
Use: event-file to file download name

Example:

on file download:
    broadcast "Prevented Downloading from: %event-string% to %event-file%"
    cancel event

On File Execute

Addon: skUtilities
Patterns:
on (file|app) (run|execute)
Executes every time you try to run a file, this can be cancelled
Use: event-file to get file

Example:

on file run:
    broadcast "Prevented File: %event-string% from running!"
    cancel event

On File Move

Addon: skUtilities
Patterns:
on file move
Executes every time you try to move a file, can be cancelled
Use: event-file to get the file
Use: event-string to get the new location

Example:

on file move:
    broadcast "Prevented File: %event-file% from getting moved to %event-string%"
    cancel event

On File Rename

Addon: skUtilities
Patterns:
on file rename
Executes every time you try to rename a file, can be cancelled
Use: event-file to get the file
Use: event-string to get the new name

Example:

on file rename:
    broadcast "Prevented File: %event-file% from getting renamed to %event-string%"
    cancel event

On File Wipe

Addon: skUtilities
Patterns:
on file (wipe|reset|clear)
Executes every time you try to wipe a file, can be cancelled
Use: event-file to get file

Example:

on file creation:
    broadcast "Prevented Wipe of File: %event-string%"
    cancel event

On File Write

Addon: skUtilities
Patterns:
on file write
Executes every time you try to rename a file, can be cancelled
Use: event-file to get the file
Use: event-string to get the string to be written
Use: event-number to get the line number

Example:

on file rename:
    broadcast "Prevented Writing: %event-string% to %event-file% on line %event-number%"
    cancel event

On File Zip

Addon: skUtilities
Patterns:
on file zip
Executes every time you try to zip a file can be cancelled
Use: event-file to get the file
Use: event-string to get the zip

Example:

on file zip:
    broadcast "Prevented File: %event-file% from zipped to %event-string%"
    cancel event

On Firework Explode

Addon: SharpSK
Patterns:
[on] firework explode
Called when a firework explodes (Requires Bukkit/Spigot 1.8.8 or higher)
Add example

On First Join

Addon: Skript
Patterns:
[on] first (join|login)
Called when a player joins the server for the first time.

Example:

on first join:
    set {stats.%player%} to 0

On Fishing

Addon: Skript
Patterns:
[on] [player] fish[ing]
Called when a player fishes something. This is not of much use yet.

Example:

on fishing state of caught fish:
	chance of 2.5%:
		give player diamond
		broadcast "%player% found a diamond while fishing!

On Fishing State

Addon: RandomSK
Patterns:
[on] fishing state of %state%
Very similiar to player fishing event except that it is only called when the chosen fishing state is active.
Every expression usable in the player fishing event is usable in this event.
States are: Caught Fish, Caught Entity, Fishing, In Ground and Failed Attempt

Example:

on fishing state of caught fish:
    message "You got a fish"

On Flight Toggle

Addon: SkQuery
Patterns:
[on] [player] toggl(e|ing) (flight|fly)
[on] [player] (flight|fly) toggl(e|ing)
Called on flight ability toggleing.

Example:

on flight toggle:
    player does not have permission "wings":
        ignite player
        send "&cOnly angels can fly!"

On Flow

Addon: Skript
Patterns:
[on] [block] flow[ing]
[on] block mov(e|ing)
Called when a blocks flows or teleports to another block. This not only applies to water and lava, but teleporting dragon eggs as well.

Example:

on flow:
	broadcast "%event-block% is flowing!" # Cannot use "send" or "message".

	if event-block is lava:
		cancel event
		broadcast "Stop, Lava!"

On Form

Addon: Skript
Patterns:
[on] [block] form[ing] [[of] %item types%]
Called when a block is created, but not by a player, e.g. snow forms due to snowfall, water freezes in cold biomes, or a block spreads (see spread event).

Example:

on block form of cobblestone:
	broadcast "A cobblestone has spawned"

On Fuel Burn

Addon: Skript
Patterns:
[on] fuel burn[ing]
Called when a furnace burns an item from its fuel slot.
Add example

On Gamemode Change

Addon: Skript
Patterns:
[on] game[ ]mode change [to %gamemode%]
Called when a player's gamemode changes.

Example:

on gamemode change to creative:
    message "&cHumm! Creative!"

On Grow

Addon: Skript
Patterns:
[on] grow [of %tree type%]
Called when a tree or giant mushroom grows to full size.
Add example

On Hang/Unhang

Addon: MundoSK
Patterns:
on hang
on unhang

hanged entity
event-entity

#on hang only
event-player
event-block
Called when an entity is hung/unhung. Can be cancelled.

hanged entity - The entity that was hung or unhung.
event-entity - The entity that hung or unhung it.

Only in on hang:
event-player - The player that hung it, same as event-entity.
event-block - The block on which it was hung.
Add example

On Heal

Addon: Skript
Patterns:
[on] heal[ing]
Called when an entity is healed, e.g. by eating (players), being fed (pets), or by the effect of a potion of healing (overworld mobs) or harm (nether mobs).

Example:

on heal:
	if player is in world "world":
		cancel event
		message "Sorry, you may not heal in this world"
	else:
		stop

On Health Regen

Addon: Umbaska
Patterns:
[on] health regen
Called when a player heals health.

Example:

on health regen:
    cancel event
    message "You cannot heal! MUHAHAHAHA"

On Hologram Pickup

Addon: SkRayFall
Patterns:
[on] hologram pickup
Plugin requires: Holographic Displays
Called when a player “picks up” an item from an interactive hologram. This can only be done with Items in the holograms, not text. Event-string will give you the holograms id name and Event-Number will give you the specific line interacted with.
Add example

On Hologram Touch/Click

Addon: SkRayFall
Patterns:
[on] hologram (touch|click)
Plugin requires: Holographic Displays
Called when a player right clicks a line from an interactive hologram. Event-string will give you the holograms id name and Event-Number will give you the specific line interacted with.

Example:

on hologram touch:
	make player execute command "server factions"

On Hopper Pickup

Addon: SharpSK
Patterns:
[on] hopper pickup
Called when a hopper or minecart hopper collects a dropped item.
Cancellable.

Example:

on hopper pickup:
    event-item is dirt
    cancel event

On Horse Jump

Addon: SkQuery WildSkript
Patterns:
[on] horse jump
Called when a horse jumps.

Example:

# I don't know if it works :P 

on horse jump:  
    kill horse    # :O

On Hunger Meter Change

Addon: Skript
Patterns:
[on] (food|hunger) (level|met(er|re)|bar) chang(e|ing)
Called when the hunger bar of a player changes, i.e. either increases by eating or decreases over time.

Example:

On Hunger MEter Change:
	send "Mniammm!"

On Ignition

Addon: Skript
Patterns:
[on] [block] ignit(e|ion)
Called when a block starts burning, i.e. a fire block is placed next to it and this block is flammable.
The burn event will be called when the block is about do be destroyed by the fire.
See also: on combust - called when an entity is set on fire.

Example:

#Cancel ignition

on ignition:
	cancel event
	send "&cIt cant ignite here"

On Inventory Click

Addon: SkQuery WildSkript
Patterns:
[on] inventory click
Called when a player performs any click in any inventory.

Example:

on inventory click:  
    send "Click"

On Inventory Close

Addon: SkQuery WildSkript
Patterns:
[on] inventory close
Called when player closes inventory. You can't cancel the event because it's only a notification from the client.

Example:

on inventory close: 
    send "Close"

On Inventory Drag

Addon: TuSKe
Patterns:
[on] inventory drag
Called when a player clicks and drags a item through the slots in a inventory. It doesn't call with player's creative inventory.
  • event-inventory: The inventory
  • event-string: The drag type. It can return "single" if it was with right click or "even" if it was with left click.
  • event-dragged(-| )slots: A list of slots that the player dragged the item.
  • event-dragged(-| )item: The item in cursor after the items have been dragged. It can be null if the amount of items in cursor is 0.
  • event-old(-| )dragged(-| )item or event-item: The item in cursor before the items have been dragged.


Only the dragged item can be setted.

Example:

on inventory drag:
    send "You have dragged your %old dragged item% through the slots %dragged slots% of the inventory %event-inventory%."
    send "Now, you have %dragged item% in your cursor."

on inventory drag:
    event-inventory is player's inventory
    dragged slots contains 0 and 8
    send "You can drag items to slots 1 and 9"
    cancel event

On Inventory Open

Addon: Umbaska WildSkript
Patterns:
[on] inventory open
Called when an inventory, that isn't a player's inventory (The inventory opened by pressing "e") is opened.

Example:

on inventory open:
    message "Open"

On Item Break

Addon: Skript
Patterns:
[on] [player] tool break[ing]
[on] [player] break[ing] [(a|the)] tool
Called when a player breaks his tool because its damage reached the maximum value.
This event cannot be cancelled.

Example:

on item break:
	message "Oh! An item has broken!"

On Item Damage

Addon: TuSKe
Patterns:
[on] [player] item damage
Called when some item of player receive a damage. You can't cancel this event.
  • event-item: the item that will receive a damage.
  • item damage: the amount of damage that the item will receive. You can only set it to integers greater than 0.

Example:

on item damage:
    if durability of event-item is more than (max durability of event-item - item damage):
        send "Your %event-item% is almost breaking!"

On Item Despawn

Addon: RandomSK
Patterns:
[on] item (despawn|despawning)
Called when a item is about to despawn. Can be cancelled and the item will persist for another 5 minutes and then trigger this event again.

Example:

on item despawning:
    if name of event-item is "I will never despawn":
        set pick up delay of event-entity to 10 minutes
        cancel event

On Item Held Change

Addon: SharpSK
Patterns:
[on] item held change
Called when a player changes their currently held item
Add example

On Item Spawn

Addon: Skript
Patterns:
[on] item spawn[ing] [[of] %item types%]
Called whenever an item stack is spawned in a world, e.g. as drop of a block or mob, a player throwing items out of his inventory, or a dispenser dispensing an item (not shooting it).

Example:

on item spawn:
	message "%event-entity% has spawned in world"

On Job Join

Addon: SharpSK
Patterns:
[on] job join
Plugin requires: JobsReborn
Called when a player joins a job.

Example:

on job join
	message "Hello !"

On Job Leave

Addon: SharpSK
Patterns:
[on] job leave
Plugin requires: JobsReborn
Called when a player leaves a job.

Example:

on job leave:
    message "&2You left  a job"

On Job Levelup

Addon: SharpSK
Patterns:
[on] job levelup
Plugin requires: JobsReborn
Called when a player levels up on a job
Add example

On Job Payment

Addon: SharpSK
Patterns:
[on] job payment
Plugin requires: JobsReborn
Called when a player receives a job payment.
Add example

On Join

Addon: Skript
Patterns:
[on] [player] (login|logging in|join[ing])
Called when a player joins the server. The player is already in a world when this event is called, so if you want to prevent players from joining you should prefer on connect over this event.

Setting it to nothing (set join message to "") will cause it not to appear

Example:

on join:
    message "Welcome on our awesome server!"
    broadcast "%player% just joined the server!"

On Jump

Addon: WildSkript
Patterns:
[on] jump[ing]
Called when a player jumps.

Example:

on jump:
    send "YOLO"

On Jump

Addon: SkMorkaz
Patterns:
[on] [mor.]jump
Called when player jumps.
It is not bugged as WildSkript's jump event.
It runs only once every jump.

Options:
cancellable - You can prevent jump
player - Player that is jumping

Example:

on mor.jump:
  if player has permission "my.double.jump":
    wait 4 tick
    push player upwards at speed 0.5

on mor.jump:
  if player is in the region "SpectatorArea":
    cancel event

On Kick

Addon: Skript
Patterns:
[on] [player] (kick|being kicked)
Called when a player is kicked from the server. You can change the kick message or cancel the event entirely.

Example:

On kick:
	message "%event-player% was kicked from the server" to all players

On Leash

Addon: Umbaska
Patterns:
[on] leash
Called when a player leashes an entity.

Example:

on leash:
    kill event-entity

On Leaves Decay

Addon: Skript
Patterns:
[on] leaves decay[ing]
Called when a leaf block decays due to not being connected to a tree.
Add example

On Level Change

Addon: Skript
Patterns:
[on] [player] level [change]
Called when a player's level changes, e.g. by gathering experience or by enchanting something.
Add example

On Light Create

Addon: SharpSK
Patterns:
[on] light create

Event values:

event-lightlevel //Gets the lightlevel
event-location //Gets the location
event-world     //Gets the world
Plugin requires: LightAPI
Called when a light has been created

Example:

on light create:
    send "&aSuccesfully created light at event-location"

On Light Remove

Addon: SharpSK
Patterns:
[on] light remove
Plugin requires: LightAPI
Called when a light has been removed
Add example

On Lightning Strike

Addon: Skript
Patterns:
[on] lightning [strike]
Called when lightning strikes.
Use on creeper power and on pig zap to find out if one or more creepers and/or pigs were hit.
Add example

On mor.Inventory Click

Addon: SkMorkaz
Patterns:
[on] mor.inventory click
Additional event that is called when player clicks on inventory. Very userfull with expression "cursor item of %player%" from this addon.

Options:
event-player - Player, that clicks on inventory
event-inventory - Inventory, where clicks happened
event-item - Item, that was clicked in inventory.
event-number - Slot number that was clicked. You are able to get item with "slot event-number of event-inventory" that will return item after click (ex. if cursor item was empty, it will return air because item was taken to cursor)

Example:

on mor inventory click:
  broadcast "%event-item%, %cursor-item%, %event-inventory%, %player%"

On Move On

Addon: Skript
Patterns:
[on] (step|walk)[ing] (on|over) %item types%
Called when a player moves onto a certain type of block. Please note that using this event can cause lag if there are many players online.

Example:

on step on grass:
	message "%player% stepped on grass!"

On MV Config Reload

Addon: SharpSK
Patterns:
On mv config reload
Plugin requires: Multiverse
Called when the multiverse config gets reloaded
Add example

On MV Portal Enter

Addon: SharpSK
Patterns:
On mv portal enter
event-player
event-location
Plugin requires: Multiverse
Called when a player enters a multiverse portal
Add example

On MV World delete

Addon: SharpSK
Patterns:
On mv world delete
event-world
event-string
Plugin requires: Multiverse
Called when a world gets deleted
Add example

On Mythicmob Death

Addon: SharpSK
Patterns:
[on] mythicmob death

Event values:

event-mmdrops //Gets the drops that a mythic mob drops from the mythicmobs drop table
Plugin requires: MythicMobs
Called when a mythicmob dies
Add example

On Mythicmob Spawn

Addon: SharpSK
Patterns:
[on] mythicmob spawn

event-entity
event-string
Plugin requires: MythicMobs
Called when a mythicmob spawns

Example:

    
on mythicmob spawn:
    broadcast "A boss has spawned"

On Note Play

Addon: Umbaska
Patterns:
[on] note play
Called when a note block plays a note.

Example:

on note play:
    broadcast "Beautiful!"

On Physics

Addon: Skript
Patterns:
[on] [block] physics
Called when a physics check is done on a block. By cancelling this event you can prevent some things from happening, e.g. sand falling, dirt turning into grass, torches dropping if their supporting block is destroyed, etc.
Please note that using this event might cause quite some lag since it gets called extremely often.

Example:

# prevents sand from falling

on block physics:
    block is sand
    cancel event

On Pick Up

Addon: Skript
Patterns:
[on] [player] (pick[ ]up|picking up) [[of] %item types%]
Called when a player picks up an item. The item is still on the ground when this event is called.
Add example

On Pig Zap

Addon: Skript
Patterns:
[on] pig[ ]zap
Called when a pig is struck by lightning and transforms into a zombie pigman. Cancel the event to prevent the transformation.
See also: on lightning strike

Example:

on pig zap:
	cancel event
	broadcast "The plugin has canceled the transformation of a pig into a pigmen."

On Piston Extend

Addon: Skript
Patterns:
[on] piston extend[ing]
Called when a piston is about to extend.
Add example

On Piston Retract

Addon: Skript
Patterns:
[on] piston retract[ing]
Called when a piston is about to retract.
Add example

On Place

Addon: Skript
Patterns:
[on] [block] (plac(e|ing)|build[ing]) [[of] %item types%]
Called when a player places a block.

Example:

On place:
	cancel the event
	message "You cannot place blocks"

On place of TNT:
	cancel the event
	message "You are not allowed to place TNT"

On Portal

Addon: Skript
Patterns:
[on] [player] portal
Called when a player uses a nether or end portal. Cancel the event to prevent the player from teleporting.
Add example

On Portal Create

Addon: Skript
Patterns:
[on] portal create
Called when a portal is created, either by a player or mob lighting an obsidian frame on fire, or by a nether portal creating its teleportation target in the nether/overworld.
Please note that it's not possible to use the player in this event.
Add example

On Portal Enter

Addon: Skript
Patterns:
[on] portal enter
[on] entering [a] portal
Called when a player enters a nether portal and the swirly animation starts to play.

Example:

on entering a portal:
	message "&6Another world..whoaaa!" 

On Potion Splash

Addon: Umbaska
Patterns:
[on] potion splash
Called when a Splash Potion lands at effects a player.

Example:

on potion splash:
    create explosion of force 0 at event-location

On Prepare Item Craft

Addon: WildSkript
Patterns:
[on] prepare item craft
Called when a player crafts item.

Example:

on prepare item craft:  
    send "I have no idea what I'm doing"

On Pressure Plate / Trip

Addon: Skript
Patterns:
[on] [step[ping] on] [a] [pressure] plate
[on] (trip|[step[ping] on] [a] tripwire)
Called when a player steps on a pressure plate or tripwire respectively.

Example:

on stepping on a pressure plate:
     push player upwards at speed 4

On Projectile Hit

Addon: Skript
Patterns:
[on] projectile hit
Called when a projectile hits an entity or a block.
Use the damage event with a check for a projectile to be able to use the entity that got hit in the case when the projectile hit a living entity.
A damage event will even be fired if the damage is 0, e.g. when throwing snowballs at non-nether mobs.

Example:

On projectile hit:
     set {_type} to metadata "type" of projectile  # Requires RandomSK
     if "%{_type}%" is "explosive":
          create explosion of force 3 at event-location

To get the block hit, use the this example courtesy of bi0qaw
on projectile hit:
     wait 1 tick
     set {_block} to the block at location 0.1 in front of the projectile
     if {_block} is air:
          set {_block} to the block at location 0.1 behind the projectile

On Quit

Addon: Skript
Patterns:
[on] (quit[ting]|disconnect[ing]|log[ ]out|logging out)
Called when a player leaves the server. Starting with Skript 2.0 this also includes kicked players.

Setting it to nothing (set quit message to "") will cause it not to appear

Example:

On quit:
        
    set quit message to  "%event-player% has left the game!"

On Redstone

Addon: Skript
Patterns:
[on] redstone [current] [chang(e|ing)]
Called when the redstone current of a block changes. This event is of not much use yet.
Add example

On Region Enter/Leave

Addon: Skript
Patterns:
[on] region enter
[on] region (leave|exit)
Called when a player enters or leaves a region.
This event requires a supported regions plugin to be installed.

Example:

on region exit:
    message "Leaving %region%."

On Respawn

Addon: Skript
Patterns:
[on] [player] respawn[ing]
Called when a player respawns. You should prefer this event over the death event as the player is technically alive when this event is called.

Example:

on respawn:
	send "Vous avez respawn avec succés"

On Script Load/Unload

Addon: Skript
Patterns:
[on] [script] (load|init|enable)
[on] [script] (unload|stop|disable)
Called directly after the trigger is loaded, or directly before the whole script is unloaded.

Example:

on load:
    set {running.%script%} to true
on unload:
    set {running.%script%} to false

On Server Command

Addon: SharpSK
Patterns:
[on] (server|console) command 
Called when a server operator executes a command from console.
Cancellable.

Example:

on server command:
    broadcast "The server operator has executed %event-string% from the console!"

On Server Ping

Addon: WildSkript
Patterns:
[on] [server] [list] ping
Called when a servers list is refreshed. In the event, you can get ip of caller.

Example:

on server list ping:
    set {_ip} to ip

On Shear

Addon: SharpSK
Patterns:
[on] shear
Called when a sheep gets sheared by a player.
Cancellable.

Example:

on shear:
    cancel event
    broadcast "You are not allowed to shear sheeps muhahahaha!"

On Sheep Dye

Addon: SkQuery
Patterns:
[on] sheep dye
Called on the dye of a sheep.

Example:

on sheep dye:
    cancel event
    dye event-entity pink #forever pink sheep

On Sheep Wool Regrow

Addon: Umbaska
Patterns:
[on] sheep wool regrow
Called when a sheep eats grass or tall grass and grows it's wool back.

Example:

on sheep wool regrow:
    dye event-entity red

On Shoot

Addon: Skript
Patterns:
[on] [projectile] shoot
Called whenever a projectile is shot. Use the shooter expression to get who shot the projectile.
Add example

On Sign Change

Addon: Skript
Patterns:
[on] sign (chang[e]|edit)[ing]
[on] [player] (chang[e]|edit)[ing] [a] sign
As signs are placed empty, this event is called when a player is done editing a sign.

Example:

on sign change:
    line 2 is empty
    set line 1 to "<red>%line 1%"

On Skript Start/Stop

Addon: Skript
Patterns:
[on] (server|skript) (start|load|enable)
[on] (server|skript) (stop|unload|disable)
Called when the server starts or stops (actually, when Skript starts or stops, so a /reload will trigger these events as well).

Use "On script start/stop" for code to run when the script loads (and happens on reload of the script)

Example:

On skript load:
     delete {ThisList::*}
     delete {ThatList::*}

On Slime Split

Addon: Umbaska
Patterns:
[on] slime split
Called when a slime is split due to dying. Doesn't get called when a small slime dies!

Example:

on slime split:
    cancel event

On Smelt

Addon: Skript
Patterns:
[on] [ore] smelt[ing]
[on] smelt[ing] of ore
Called when a furnace smelts an item in its ore slot.
Add example

On Sneak Toggle

Addon: Skript
Patterns:
[on] [player] toggl(e|ing) sneak
[on] [player] sneak toggl(e|ing)
Called when a player starts or stops sneaking. Use is sneaking to get whether the player was sneaking before the event was called.

Example:

# make players that stop sneaking jump

on sneak toggle:
    player was sneaking
    push the player upwards at speed 0.5

On Sound

Addon: RandomSK
Patterns:
[on] [named] sound [(trigger|play)
[on] player hear sound
Calls when a sound effect triggers. Cancellable but cancelling just makes the volume zero.
You cannot have a delay before setting volume/pitch/sound because the event has already passed then.

Example:

on sound:
    set sound to "mob.spider.say"
     set volume to 1 #100% volume, can be more.
     set pitch to 63 #100% pitch, can be more
    #cancel event (It is just "set volume to 0")

On Spawn

Addon: Skript
Patterns:
[on] spawn[ing] [of %entity types%]
Called when an creature spawns.

Example:

on spawn of an ender dragon:
    broadcast "A dragon has been sighted in %world%!"

On Spawn Change

Addon: Skript
Patterns:
[on] [world] spawn change
Called when the spawn point of a world changes.

Example:

on spawn change:
	broadcast "The spawn was changed by an admin!"

On Spawner Spawn

Addon: TuSKe
Patterns:
[on] spawner spawn
Called when a entity is spawned by spawner.
  • event-block: the spawner

Example:

on spawner spawn:
    if entity is a skeleton:
        set delay of location of event-block to 20 #Umbaska

On Spread

Addon: Skript
Patterns:
[on] spread[ing]
Called when a new block forms as a result of a block that can spread, e.g. water or mushrooms.

Example:

on spread:
	if {waterfall} is false:
		cancel the event

On Sprint Toggle

Addon: Skript
Patterns:
[on] [player] toggl(e|ing) sprint
[on] [player] sprint toggl(e|ing)
Called when a player starts or stops sprinting. Use is sprinting to get whether the player was sprinting before the event was called.

Example:

on sprint toggle:
	send "Sprint !"

On Start Walk

Addon: TuSKe
Patterns:
player start (mov(e|ing)|walk[ing])
Called when a player starts to walking. You can't cancel this event.
  • event-location: The location where player started to walk.

Example:

on player start walking:
    if {CooldownToTeleport.%player%} is true:
        send "You moved while was waiting to teleport."
        clear {CooldownToTeleport.%player%}
    
    

On Statistics Increase

Addon: RandomSK
Patterns:
[on] statistics (increment|increase) [of %statistic%]
Whenever a statistic increases this event fires.

Example:

on statistics increase:
    broadcast "%player%"
    broadcast "%event-statistic%"
    if event-statistic is jumping:
        message "You jumped! You have jumped %new value% times."

On Stop Walk

Addon: TuSKe
Patterns:
[on] player stop (mov(e|ing)|walk[ing])
Called when a player stop walking, as doesn't make any move after walked. You can't cancel this event.

Example:

on player stop walking:
    set {CanTeleport.%player%} to true
    
    

On Store

Addon: SkRayFall
Patterns:
[on] (store|chest add)
Called when a player places an item into a chest or ender chest. Event-item will give you the items that were moved into the chest. Event-inventory will give you the inventory. This event is also cancelable.
Add example

On Tab Complete

Addon: SkQuery
Patterns:
[on] tab complet(er|ion) [for [command]] %text%
Called when a tab complete option you have definied for a command is used.

Example:

on tab completer for "/tp":
    if argument at 1 is "help":
        if argument at 2 is not set:
            add "lol" to completions
            add "lolipop" to completions
            add "lolswag" to completions
            add "test" to completions
            add "testing" to completions
            add "evenmoretesting" to completions

On Tame

Addon: Skript
Patterns:
[on] [entity] tam(e|ing)
Called when a player tames a wolf or ocelot. Can be cancelled to prevent the entity from being tamed.
Add example

On Target

Addon: Skript
Patterns:
[on] [entity] target
[on] [entity] un[-]target
Called when a mob starts/stops following/attacking another entity, usually a player.
Please note that even though the target expression also works for a player's target this event is not called for players.
Add example

On Teleport

Addon: Skript
Patterns:
[on] [player] teleport[ing]
Called whenever a player is teleported, either by a nether/end portal or other means (e.g. by plugins).

Example:

On teleport: # The event itself

	broadcast "&6Player &a%player% has been teleported to &a%WORLD%&6 at the location of &a%LOCATION OF PLAYER%&6."
	give 1 cookie named "&6Congrats cuz u teleported!" to player
	message "&6Good job, received a &c&nCOOKIE&6, because you teleported! Lol."

On Throwing of an Egg

Addon: Skript
Patterns:
[on] throw[ing] [of] [an] egg
[on] [player] egg throw
Called when a player throws an egg. You can just use the shoot event in most cases, as this event is intended to support changing the hatched mob and its chance to hatch, but Skript does not yet support that.
Add example

On Tool Change

Addon: Skript
Patterns:
[on] [player['s]] (tool|item held|held item) chang(e|ing)
Called whenever a player changes his held item by selecting a different slot (e.g. the keys 1-9 or the mouse wheel), but not by dropping or replacing the item in the current slot.

Example:

 on tool change:
	play "NOTE_PLING" specifically to player with pitch 2 and volume 0.5

On Transfer

Addon: SharpSK
Patterns:
[on] transfer:
Called when a item gets transported from a hopper to a chest/hopper/dispenser etc.
Or from a chest to a hopper etc etc..

I don't recommend using this with messages or broadcast things as its possibly spammy

Example:

Event is cancellable
event-item  is the transported item
event-block  is the block the transported item comes from
block at event-location  is the block where the item goes to.
event-location  is the location of the block the item goes to.

On uCars Car Crash

Addon: SharpSK
Patterns:
[on] [ucars] car crash
Plugin requires: uCars
Called when a car crashes
Add example

On uCars Car Respawn

Addon: SharpSK
Patterns:
[on] [ucars] car respawn 
Plugin requires: uCars
Called when a car respawns
Add example

On Unleash

Addon: Umbaska
Patterns:
[on] unleash
Called when a leash is unleashed or broken.
Add example

On Unstore

Addon: SkRayFall
Patterns:
[on] (unstore|chest remove)
This event will be called when a player removes an item from a chest or ender chest. Event-item will give you the items that were moved out of the chest. Event-inventory will give you the inventory. This event is also cancelable.

Example:

on unstore:
    cancel event
    send "You cannot unstore this items !"

On Unzip

Addon: skUtilities
Patterns:
on unzip
Executes every time you try to unzip a file can be cancelled
Use: event-file to get the zip
Use: event-string to get the unzip to location

Example:

on unzip:
    broadcast "Prevented File: %event-file% from unzipped to %event-string%"
    cancel event

On Vehicle Collide

Addon: SkQuery
Patterns:
[on] vehicle (entity collide|collide with entity)
Called when a vehicle collides with an entity.

Example:

on vehicle collide with entity:
    event-entity is a player:
        make player damage event-entity by 2

On Vehicle Create

Addon: Skript
Patterns:
[on] vehicle create
[on] creat(e|ing|ion of) [a] vehicle
Called when a new vehicle is created, e.g. when a player places a boat or minecart.
Add example

On Vehicle Damage

Addon: Skript
Patterns:
[on] vehicle damage
[on] damag(e|ing) [a] vehicle
Called when a vehicle gets damage. Too much damage will destroy the vehicle.
Add example

On Vehicle Destroy

Addon: Skript
Patterns:
[on] vehicle destroy
[on] destr(oy[ing]|uction of) [a] vehicle
Called when a vehicle is destroyed. Any passenger will be ejected and the vehicle might drop some item(s).
Add example

On Vehicle Enter

Addon: Skript
Patterns:
[on] vehicle enter
[on] enter[ing] [a] vehicle
Called when an entity enters a vehicle, either deliberately (players) or by falling into them (mobs).
Add example

On Vehicle Exit

Addon: Skript
Patterns:
[on] vehicle exit
[on] exit[ing] [a] vehicle
Called when an entity exits a vehicle.
Add example

On Vehicle Steer

Addon: RandomSK
Patterns:
[on] vehicle (steer|button press)
It triggers whenever you press WASD or space when you are in a vehicle. You can get what button is pressed. Triggers quite often so I have setup a delay. By default you can trigger each of the buttons once every 5 ticks. So atmost 5 triggers per 5 ticks. This can be changed in the config of RandomSK.

Example:

#Controlling and flying with Chickens (Rightclick with a stick to test)
on rightclick with stick:
    targeted entity is a chicken
    set {_target} to targeted entity
    make player ride {_target}
    wait 5 ticks
    while vehicle of player is {_target}:
        change yaw of vehicle of player to yaw of player
        change pitch of vehicle of player to pitch of player
        wait 1 tick

on vehicle steer:
    if event-button is space:
        push vehicle of player upwards at speed 0.4
    if event-button is w:
        push vehicle of player in the direction of player at speed 0.4
    if event-button is a:
        push vehicle of player to the left at speed 0.1
    if event-button is d:
        push vehicle of player to the right at speed 0.1
    if event-button is s:
        push vehicle of player backwards at speed 0.2

On Vote

Addon: SkRayFall
Patterns:
[on] Vote
Plugin requires: Votifier
Check server vote by:
  • Player
  • Website

This will be called when someone votes for the server. Use event-string to return the name of the website they voted on

Example:

on vote:
    broadcast "%player% voted on %event-string%! We love you <3"

On Weather Change

Addon: Skript
Patterns:
[on] weather change [to %weather types%]
Called when a world's weather changes.

Example:

on weather change:
    set weather to sunny

On World Change

Addon: SharpSK
Patterns:
[on] world change
Called when a player switches worlds.

Example:

Its possible to use former and future states in this event like this:

You cannot use world instead you need to use event-world for this event to use former/future states

On world change:
    broadcast "%event-player% has switched from %former event-world% to %future event-world%"

On World Init

Addon: Skript
Patterns:
[on] world init
Called when a world is initialised. As all default worlds are initialised before any scripts are loaded, this event is only called for newly created worlds.
World management plugins might change the behaviour of this event though.
Add example

On World Load/Save/Unload

Addon: Skript
Patterns:
[on] world load[ing]
[on] world sav(e|ing)
[on] world unload[ing]
Called when a world is loaded/saved/unloaded. As with the world init event, this event will not be called for the server's default world(s).
Usually all worlds are saved simultaneously, but world management plugins could change this.
The unload event might never be called if you don't have a world management plugin.

Example:

on world save:
	broadcast "&6Wooow Thats Amazing, the Server are Saved !"

On Zombie Break Door

Addon: Skript
Patterns:
[on] zombie break[ing] [a] [wood[en]] door
Called when a zombie is done breaking a wooden door. Can be cancelled to prevent the zombie from breaking the door. You can create things like reinforced wooden doors if you like the wooden door style

Example:

On zombie breaking a door:
     if block below event-block is iron block:
          cancel event

Packet Event

Addon: MundoSK
Patterns:
on packet event %packettypes%

event-packet
event-player
event-packettype
Plugin requires: ProtocolLib
Called when a packet of one of the types specified is being sent or received.
Add example

Periodical

Addon: Skript
Patterns:
every %time span% in [world[s]] %worlds%
An event that is called periodically. The event is used like every <timespan>, e.g. every second or every 5 minutes.

Example:

every second
every minecraft hour
every tick    #Warning: lag!
every minecraft day in "world"

Player Violation Event

Addon: LargeSk
Patterns:
[on] (hack|cheat|violate)
Plugin requires: Advanced Anti Cheat
Called when AAC (anti cheat) detects that player may possibly be a hacker

Example:

on violation:
    hack is killaura
    send "%player%: %cheat description%" to console
    if violations within last minute is greater than 40:
        kick player due to "You are most probably a cheater!"

Plot Enter

Addon: SkAction
Patterns:
plot enter
Checks when a player enters a plot.

Example:

on plot enter:
    send "You entered a plot."

Plot Leave

Addon: SkAction
Patterns:
plot leave
Plugin requires: PlotSquared
Checks when a player leaves a plot.

Example:

on plot leave:
   send "&6You left a plot."

Plot Rate

Addon: SkAction
Patterns:
plot rate
Plugin requires: PlotSquared
Checks when a player rates a plot.

Example:

on plot rate:
  broadcast "%player% rated %amount player rated%"
    

Private Message Received

Addon: Vixio
Patterns:
[discord ]private message sent to %string%
Add description
Add example

Skellett download

Addon: Skellett
Patterns:
[on] [skellett] download
Called when something is downloaded to the server via the download effect
Add example

SkillAPI cast skill event

Addon: SkRPG
Patterns:
On SkillAPI skill cast:
Plugin requires: SkillAPI
Checks when a player casts a SkillAPI skill

Example:

On SkillAPI skill cast:
    send "You used %SkillAPI skill casted%" to player

SkillAPI class change event

Addon: SkRPG
Patterns:
On SkillAPI class change:
Plugin requires: SkillAPI
Checks when a player changes SkillAPI class.

Example:

On SkillAPI class change:
    send "%SkillAPI previous class%  -> %SkillAPI new class%" to player
    send "%SkillAPI previous class group% ->  %SkillAPI new class group%" to player
    send "%SkillAPI previous class base health% ->  %SkillAPI new class base health%" to player
    send "%SkillAPI previous class base mana% ->  %SkillAPI new class base mana%" to player

SkillAPI experience gain event

Addon: SkRPG
Patterns:
On SkillAPI experience gain:
Plugin requires: SkillAPI
Checks when a player gains experience for his SkillAPI class

Example:

On SkillAPI experience gain:
    send "You've gained %SkillAPI experience gained% from source %SkillAPI ExpSource%"

SkillAPI experience loss event

Addon: SkRPG
Patterns:
On SkillAPI experience loss:
Plugin requires: SkillAPI
Checks when a player loses experience from their SkillAPI class.

Example:

On SkillAPI experience loss:
    send "You've lost %SkillAPI exp lost% experience" to player

SkillAPI level up event

Addon: SkRPG
Patterns:
On SkillAPI level up:
Plugin requires: SkillAPI
Checks when a player levels up their SkillAPI class

Example:

On SkillAPI level up:
    send "You've gained %SkillAPI gained levels% level(s)" to player

SkillAPI mana gain event

Addon: SkRPG
Patterns:
On SkillAPI mana gain:
Plugin requires: SkillAPI
Checks when a player receives mana for their SkillAPI class

Example:

On SkillAPI mana gain:
    send "You've gained %SkillAPI mana gained% mana" to player

SkillAPI mana loss event

Addon: SkRPG
Patterns:
On SkillAPI mana loss:
Plugin requires: SkillAPI
Checks when a player loses mana for their SkillAPI class

Example:

On SkillAPI mana loss:
    send "You've lost %SkillAPI mana lost% mana" to player

SkillAPI skill damage event

Addon: SkRPG
Patterns:
On SkillAPI skill damage:
Plugin requires: SkillAPI
Checks when a player gets damaged by a SkillAPI skill

Example:

On SkillAPI skill heal:
    broadcast "%SkillAPI victim% was damaged by %SkillAPI attacker% for %SkillAPI damage%" 

SkillAPI skill heal event

Addon: SkRPG
Patterns:
On SkillAPI skill heal:
Plugin requires: SkillAPI
Checks when a player gets healed by a SkillAPI skill

Example:

On SkillAPI skill heal:
    broadcast "%SkillAPI healed player% was healed by %SkillAPI healer%" 

SkillAPI skill unlock event

Addon: SkRPG
Patterns:
On SkillAPI skill unlock:
Plugin requires: SkillAPI
Checks when a player unlocks a skill for their SkillAPI class

Example:

On SkillAPI skill unlock:
    send "You've unlocked %SkillAPI Unlocked Skill%" to player

Status Change

Addon: Vixio
Patterns:
[discord] [user] status change seen by %string%
Add description
Add example

Timer Complete

Addon: SharpSK
Patterns:
on timer complete:
	event-string
Called when a timer reaches 0 (completes its countdown).

Best used with the On Timer Tick event


event-string is the timer.

Example:

On timer complete:
    if event-string is "battletimer":
        broadcast "The battle begins!"

Timer Tick

Addon: SharpSK
Patterns:
on timer tick:
	event-string
	event-number
Gets called every second by active timer(s)
Can be used to announce a countdown for gamemodes.

event-string is the timer
event-number is the amount of seconds left on a timer

Example:

create timer "battletimer" for 30 seconds

On timer Tick:
    event-string is "battletimer":
        broadcast "%event-number% seconds left until battle!"

TO BE DELETED

Addon:
Patterns:
Add description
Add example

Town Delete

Addon: sKeeland
Patterns:
[on] town del[ete[d]]
Plugin requires: Towny
Called whenever a town gets deleted. Use event-string to get the name of this town.
Add example

Towny Mob Removal

Addon: sKeeland
Patterns:
[on] [towny] mob rem[oval] [event]
Plugin requires: Towny
Called whenever Mobs are removed from towns.
Add example

Unleash event

Addon: Skellett
Patterns:
[on] [entity] (un(leash|lead)|(leash|lead) break)
Called when an entity gets unleashed.

Note this event can't be cancelled so I made a way to cancel it. Below is the example

[on] [entity] (un(leash|lead)|(leash|lead) break):
event-entity
event-block
event-hitch
event-location
(un(leash|lead)|(leash|lead) break) reason

The unleash reason will return one of these:

Entity unleash reasons:

DISTANCE
When the entity's leashholder is more than 10 blocks away
HOLDER_GONE
When the entity's leashholder has died or logged out, and so is unleashed
PLAYER_UNLEASH
When the entity's leashholder attempts to unleash it
UNKNOWN

Example:

on entity unleash:
    if unleash reason is HOLDER_GONE:
        set {_block} to event-block
        set {_entity} to event-entity
        wait a tick
        loop all entities in a radius of 0.1 around event-entity:
            if loop-entity is a dropped item:
                if items within loop-entity is a lead:
                    clear loop-entity
        leash {_entity} to {_block}
        broadcast "Unleash event cancelled"

Vehicle move

Addon: Skellett
Patterns:
[on] vehicle move:
This event is called when a vehicle is moved.

Example:

on vehicle move:
    broadcast "%event-entity%"

world change

Addon:
Patterns:
[on] world change
This event is called when a player switches worlds.

Example:

On world change:
  broadcast "A player teleported to %event-world% !"

World change

Addon: Skellett
Patterns:
[on] [skellett] [player] world change:
Called when a player changes worlds

You can use the expression:

(previous|past) [changed] world

To grab the past world

Example:

on player world change:
    message "Your past world was %past changed world%"

Worldborder Fill Finish

Addon: sKeeland
Patterns:
[on] worldborder (fill|pregen) finish [event]
Plugin requires: WorldBorder
Called whenever a pregen is complete.
Add example