Called when a player empties a bucket. You can also use the place event with a check for water or lava.
Cancellable
Yes
In Skript since
1.0
ID
EvtBucketEmpty
View example
on bucket empty:
View event values
event-player
event-world
past event-block
event-block
Bucket fill
events
Skript 1.0
bucket fill[ing][player] fill[ing][a] bucket
Called when a player fills a bucket.
Cancellable
Yes
In Skript since
1.0
ID
EvtBucketFill
View example
on player filling a bucket:
View event values
event-player
event-world
event-block
future event-block
Burn
events
Skript 1.0, 2.6
[block] burn[ing][[of]%item types/block datas%]
Called when a block is destroyed by fire.
Cancellable
Yes
In Skript since
1.0, 2.6 (BlockData support)
ID
EvtBlockBurn
View 3 examples
on burn:
on burn of oak wood, oak fences,or chests:
on burn of oak_log[axis=y]:
View event values
event-block
event-world
event-location
Can Build Check
events
Skript 1.0
[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.
on chat:if the player has permission "owner":set the chat format to"<red>[player]<light gray>: <light red>[message]"elseif the player has permission "admin":set the chat format to"<light red>[player]<light gray>: <orange>[message]"else:# default message formatset the chat format to"<orange>[player]<light gray>: <white>[message]"
View event values
event-player
event-world
Chunk Generate
events
Skript 1.0
chunk (generat|populat)(e|ing)
Called after a new chunk was generated.
Cancellable
No
In Skript since
1.0
ID
EvtChunkGenerate
View example
on chunk generate:
View event values
event-world
event-chunk
Chunk Load
events
Skript 1.0
chunk load[ing]
Called when a chunk loads. The chunk might or might not contain mobs when it's loaded.
Cancellable
No
In Skript since
1.0
ID
EvtChunkLoad
View example
on chunk load:
View event values
event-world
event-chunk
Chunk Unload
events
Skript 1.0
chunk unload[ing]
Called when a chunk is unloaded due to not being near any player.
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.
Also note that a leftclick on an entity is an attack and thus not covered by the 'click' event, but the 'damage' event.
Cancellable
Yes
In Skript since
1.0, 2.10 (blockdata)
ID
EvtClick
View 7 examples
on click:
on rightclick holding a fishing rod:
on leftclick on a stone or obsidian:
on rightclick on a creeper:
on click with a sword:
on click on chest[facing=north]:
on click on campfire[lit=true]:
View event values
event-player
event-world
event-entity
event-item
event-block
event-direction
Combust
events
Skript 1.0
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).
Cancellable
Yes
In Skript since
1.0
ID
EvtCombust
View example
on combust:
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
Command
events
Skript 2.0
command [%texts%]
Called when a player enters a command. You can check whether the command is a script command using the 'Is a Script Command' condition.
Cancellable
Yes
In Skript since
2.0
ID
EvtCommand
View example
on command:
the player is in water
cancel the event
send"<red>Commands cannot be executed in water!"to the player
View event values
event-player
event-world
event-command sender
Connect
events
Skript 2.0
[player] connect[ing]
Called when the 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.
Cancellable
No
In Skript since
2.0
ID
EvtConnect
View example
on connect:
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."
Called when a player is done eating/drinking something, e.g. an apple, bread, meat, milk or a potion.
Cancellable
Yes
In Skript since
2.0
ID
EvtConsume
View example
on consume:
View event values
event-player
event-world
event-item
Craft
events
[player] craft[ing][[of]%item types%]
Called when a player crafts an item.
Cancellable
Yes
In Skript since
unknown (before 2.1)
ID
EvtCraft
View example
on craft:
View event values
event-player
event-inventory
event-slot
event-item
event-world
event-inventory action
event-click type
event-text
Creeper Power
events
Skript 1.0
creeper power
Called when a creeper is struck by lighting and gets powered. Cancel the event to prevent the creeper from being powered.
Cancellable
Yes
In Skript since
1.0
ID
EvtCreeperPower
View example
on creeper power:
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
Damage
events
Skript 1.0, 2.7
damag(e|ing)[of %entity type%][by %entity type%]
Called when an entity receives damage, e.g. by an attack from another entity, lava, fire, drowning, fall, suffocation, etc.
Cancellable
Yes
In Skript since
1.0, 2.7 (by entity)
ID
EvtDamage
View 3 examples
on damage:
on damage of a player:
on damage of player by zombie:
View event values
event-damage source
event-world
event-location
event-damage cause
Death
events
Skript 1.0
death [of %entity types%]
Called when a living entity (including players) dies.
Cancellable
Yes
In Skript since
1.0
ID
EvtEntity
View 3 examples
on death:
on death of player:
on death of a wither or ender dragon:broadcast"A %entity% has been slain in %world%!"
View event values
event-damage source
event-world
event-location
event-item
event-damage cause
Dispense
events
dispens(e|ing)[[of]%item types%]
Called when a dispenser dispenses an item.
Cancellable
Yes
In Skript since
unknown (before 2.1)
ID
EvtItem
View example
on dispense of iron block:send"that'd be 19.99 please!"
View event values
event-block
event-world
event-location
event-item
Drop
events
[player|entity] drop[ping][[of]%item types%]
Called when a player drops an item from their inventory, or an entity drops an item, such as a chicken laying an egg.
Cancellable
Yes
In Skript since
unknown (before 2.1), 2.7 (entity)
ID
EvtItemDrop
View 2 examples
on drop:if event-item is compass:
cancel event
on entity drop of an egg:if event-entity is a chicken:set item of event-dropped item to a diamond
View event values
event-player
event-world
event-entity
event-command sender
event-location
event-entity type
event-item
Egg Throw
events
Skript 1.0
throw[ing][of][an] egg[player] egg throw
Called when a player throws an egg and it lands. You can just use the shoot event in most cases. However, this event allows modification of properties like the hatched entity type and the number of entities to hatch.
Cancellable
No
In Skript since
1.0
ID
EvtEggThrow
View example
on throw of an egg:
View event values
event-player
event-world
event-entity
Elytra Boost
events
Skript 2.10
elytra boost
Called when a player uses a firework to boost their fly speed when flying with an elytra.
Cancellable
Yes
In Skript since
2.10
ID
EvtElytraBoost
View example
on elytra boost:if the used firework will be consumed:
prevent the used firework from being consume
View event values
event-player
event-world
event-item
event-entity
Enchant
events
Skript 2.5
[item] enchant
Called when a player successfully enchants an item.
To get the enchanted item, see the enchant item expression
Cancellable
Yes
In Skript since
2.5
ID
EvtEnchant
View example
on enchant:if the clicked button is 1:# offer 1set the applied enchantments to sharpness 10 and unbreaking 10
View event values
event-player
event-inventory
event-item
event-enchantment type
event-block
Enchant Prepare
events
Skript 2.5
[item] enchant prepare
Called when a player puts an item into enchantment table. This event may be called multiple times.
To get the enchant item, see the enchant item expression
Cancellable
Yes
In Skript since
2.5
ID
EvtEnchantPrepare
View example
on enchant prepare:set enchant offer 1 to sharpness 1
set the cost of enchant offer 1 to 10 levels
View event values
event-player
event-inventory
event-item
event-block
Enderman Enrage
events
Skript 2.9.0
enderman (enrage|anger)
Called when an enderman gets mad because a player looked at them.
Note: This does not stop enderman from targeting the player as a result of getting damaged.
Cancellable
Yes
In Skript since
2.9.0
ID
EvtEndermanEnrage
View 2 examples
# Stops endermen from getting angry players with the permission "safeFrom.enderman"
on enderman enrage:if player has permission "safeFrom.enderman":
cancel event
Called when an enderman places or picks up a block, a sheep eats grass, a silverfish boops into/out of a block or a falling block lands and turns into a block respectively.
event-block represents the old block and event-blockdata represents the new replacement that'll be applied to the block.
Called when an entity's potion effect is modified.
Cancellable
Yes
In Skript since
2.10, 2.14 (action support)
ID
EvtEntityPotion
View 3 examples
on entity potion effect modification:broadcast"A potion effect was added to %event-entity%!"
on entity potion effect of night vision added:
message "You can now see in the dark!"
on entity potion effect of strength removed:
message "You're now weaker!"
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
past event-potion effect
event-potion effect
event-potion effect type
event-potion effect cause
event-potion effect action
Entity Shoot Bow
events
Skript 2.11
%entity types% shoot[ing](bow|projectile)
Called when an entity shoots a bow.
event-entity refers to the shot projectile/entity.
Cancellable
Yes
In Skript since
2.11
ID
EvtEntityShootBow
View example
on player shoot bow:
chance of 30%:
damage event-slot by 10
send"Your bow has taken increased damage!"to shooter
on stray shooting bow:set {_e} to event-entity
spawn a cow at {_e}:set velocity of entity to velocity of {_e}
set event-entity to last spawned entity
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
event-item
event-slot
Entity Transform
events
Skript 2.8.0
(entit(y|ies)|%entity types%) transform[ing][due to %transform reasons%]
Called when an entity is about to be replaced by another entity.
Examples when it's called include; when a zombie gets cured and a villager spawns, an entity drowns in water like a zombie that turns to a drown, an entity that gets frozen in powder snow, a mooshroom that when sheared, spawns a new cow.
on level progress change:set {_xp} to event-experience
broadcast"%{_xp}%"
View event values
event-player
event-world
event-experience
Experience Cooldown Change
events
Skript 2.10
player (experience|[e]xp) cooldown change
Called when a player's experience cooldown changes.
Experience cooldown is how long until a player can pick up another orb of experience.
Cancellable
No
In Skript since
2.10
ID
EvtExperienceCooldownChange
View example
on player experience cooldown change:broadcast event-player
broadcast event-timespan
broadcast past event-timespan
broadcast xp cooldown change reason
View event values
event-player
event-world
event-experience cooldown change reason
event-time span
past event-time span
Experience Spawn
events
Skript 2.0
[e]xp[erience][orb] spawnspawn of [a[n]][e]xp[erience][orb]
Called whenever experience is about to spawn.
Please note that this event will not fire for xp orbs spawned by plugins (including Skript) with Bukkit.
Cancellable
Yes
In Skript since
2.0
ID
EvtExperienceSpawn
View example
on xp spawn:
world is"minigame_world"
cancel event
View event values
event-location
event-experience
Explode
events
Skript 1.0
explo(d(e|ing)|sion)
Called when an entity (a primed TNT or a creeper) explodes. When the mob griefing gamerule is false, this is not called for entities.
Cancellable
Yes
In Skript since
1.0
ID
EvtExplode
View example
on explosion:
View event values
event-entity
event-location
event-world
event-command sender
event-entity type
Explosion Prime
events
Skript 1.0
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.
Cancellable
Yes
In Skript since
1.0
ID
EvtExplosionPrime
View example
on explosion prime:
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
Fade
events
Skript 1.0, 2.6
[block] fad(e|ing)[[of]%item types/block datas%]
Called when a block 'fades away', e.g. ice or snow melts.
on flight toggle:if {game::%player%::playing} exists:
cancel event
View event values
event-player
event-world
Flow
events
Skript 1.0
[block] flow[ing]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.
Cancellable
Yes
In Skript since
1.0
ID
EvtFlow
View example
on block flow:if event-block is water:broadcast"Build more dams! It's starting to get wet in here"
View event values
event-block
event-world
event-location
future event-block
Form
events
Skript 1.0, 2.6
[block] form[ing][[of]%item types/block datas%]
Called when a block is created, but not by a player, e.g. snow forms due to snowfall, water freezes in cold biomes. This isn't called when block spreads (mushroom growth, water physics etc.), as it has its own event (see spread event).
Cancellable
Yes
In Skript since
1.0, 2.6 (BlockData support)
ID
EvtBlockForm
View example
on form of snow:
View event values
event-block
event-world
event-location
past event-block
Fuel Burn
events
Skript 1.0, 2.10
[furnace] fuel burn[ing][of %item types%]
Called when a furnace burns an item from its fuel slot.
Cancellable
Yes
In Skript since
1.0, 2.10 (specific item)
ID
EvtFurnaceBurn
View example
on fuel burning:broadcast fuel burned
if burned fuel is coal:add 20 seconds to burn time
View event values
event-block
event-world
event-location
Furnace Item Extract
events
Skript 2.10
furnace [item] extract[ion][of %item types%]
Called when a player takes any item out of the furnace.
Cancellable
No
In Skript since
2.10
ID
EvtFurnaceExtract
View example
on furnace extract:if event-items is an iron ingot:remove event-items from event-player's inventory
View event values
event-block
event-world
event-location
event-player
event-item
Gliding State Change
events
Skript 2.2-dev21
(gliding state change|toggl(e|ing) gliding)
Called when an entity toggles glider on or off, or when server toggles gliding state of an entity forcibly.
Cancellable
Yes
In Skript since
2.2-dev21
ID
EvtGlidingStateChange
View example
on toggling gliding:
cancel the event # bad idea, but you CAN do it!
Called when a tree, giant mushroom or plant grows to next stage.
"of" matches any grow event, "from" matches only the old state, "into" matches only the new state,and "from into" requires matching both the old and new states.
Using "and" lists in this event is equivalent to using "or" lists. The event will trigger if any one of the elements is what grew.
A block being harvested is when a block drops items and the state of the block is changed, but the block is not broken.
An example is harvesting berries from a berry bush.
Cancellable
Yes
In Skript since
2.12
ID
EvtHarvestBlock
View example
on player block harvest:send"You have harvested %event-block% that dropped %event-items% using your %item of event-slot% in your %event-equipment slot%"on crop harvesting of sweet berry bush:
chance 5%:set drops to a diamond
chance 1%
cancel the drops
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).
Cancellable
Yes
In Skript since
1.0, 2.9.0 (by reason)
ID
EvtHealing
View 3 examples
on heal:
on player healing from a regeneration potion:
on healing of a zombie, cow or a wither:
heal reason is healing potion
cancel event
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
event-heal reason
Horse Jump
events
Skript 2.5.1
horse jump
Called when a horse jumps.
Cancellable
Yes
In Skript since
2.5.1
ID
EvtHorseJump
View example
on horse jump:
push event-entity upwards at speed 2
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
Hunger Meter Change
events
Skript 1.4.4
(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.
Cancellable
Yes
In Skript since
1.4.4
ID
EvtHungerMeterChange
View example
on food bar change:
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
Ignition
events
Skript 1.0
[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.
Cancellable
Yes
In Skript since
1.0
ID
EvtIgnition
View example
on block ignite:if event-block is a ladder:
cancel event
Called when an entity or block (e.g. hopper) tries to move items directly from one inventory to another.
When this event is called, the initiator may have already removed the item from the source inventory and is ready to move it into the destination inventory.
If this event is cancelled, the items will be returned to the source inventory.
Cancellable
Yes
In Skript since
2.8.0
ID
EvtInventoryItemMove
View example
on inventory item move:broadcast"%holder of past event-inventory% is transporting %event-item% to %holder of event-inventory%!"
View event values
event-inventory
future event-inventory
event-block
future event-block
event-item
Inventory Open
events
Skript 2.2-dev21
inventory open[ed]
Called when an inventory is opened for player.
Cancellable
Yes
In Skript since
2.2-dev21
ID
EvtInventoryOpen
View example
on inventory open:
close player's inventory
View event values
event-player
event-inventory
Inventory Pickup
events
Skript 2.5.1
inventory pick[]up
Called when an inventory (a hopper, a hopper minecart, etc.) picks up an item
Cancellable
Yes
In Skript since
2.5.1
ID
EvtInventoryPickup
View example
on inventory pickup:
View event values
event-inventory
event-entity
event-item
Inventory Slot Change
events
Skript 2.7
[player] inventory slot chang(e|ing)
Called when a slot in a player's inventory is changed.
Warning: setting the event-slot to a new item can result in an infinite loop.
Cancellable
No
In Skript since
2.7
ID
EvtInventorySlotChange
View example
on inventory slot change:if event-item is a diamond:send"You obtained a diamond!"to player
Called when dropped items merge into a single stack. event-entity will be the entity which is trying to merge, and future event-entity will be the entity which is being merged into.
Cancellable
Yes
In Skript since
2.2-dev35
ID
EvtItemMerge
View example
on item merge of gold blocks:
cancel event
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
future event-entity
event-item
Item Spawn
events
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 their inventory, or a dispenser dispensing an item (not shooting it).
Cancellable
Yes
In Skript since
unknown (before 2.1)
ID
EvtItemSpawn
View example
on item spawn of iron sword:broadcast"Someone dropped an iron sword!"
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
event-item
Join
events
Skript 1.0
[player](login|logging in|join[ing])
Called when the 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.
Cancellable
No
In Skript since
1.0
ID
EvtJoin
View example
on join:
message "Welcome on our awesome server!"broadcast"%player% just joined the server!"
View event values
event-player
event-world
Jump
events
Skript 2.3
[player] jump[ing]
Called whenever a player jumps.
This event requires PaperSpigot.
Cancellable
Yes
In Skript since
2.3
ID
EvtJump
View example
on jump:
event-player does not have permission "jump"
cancel event
View event values
event-player
event-world
Kick
events
Skript 1.0
[player](kick|being kicked)
Called when a player is kicked from the server. You can change the kick message or cancel the event entirely.
Called after a player changed their language in the game settings. You can use the language expression to get the current language of the player.
Cancellable
No
In Skript since
2.3
ID
EvtLanguageChange
View example
on language change:if player's language starts with"en":send"Hello!"
View event values
event-player
event-world
Leash / Unleash
events
Skript 2.10
[player][un]leash[ing][of %entity types%]
Called when an entity is leashed or unleashed. Cancelling these events will prevent the leashing or unleashing from occurring.
Cancellable
Yes
In Skript since
2.10
ID
EvtLeash
View 4 examples
on player leash of a sheep:send"Baaaaa--"to player
on player leash:send"<%event-entity%> Let me go!"to player
on unleash:broadcast"<%event-entity%> I'm free"
on player unleash:send"<%event-entity%> Thanks for freeing me!"to player
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
event-player
event-unleash reason
Leaves Decay
events
Skript 1.0
leaves decay[ing]
Called when a leaf block decays due to not being connected to a tree.
Cancellable
Yes
In Skript since
1.0
ID
EvtLeavesDecay
View example
on leaves decay:
View event values
event-block
event-world
event-location
Level Change
events
Skript 1.0, 2.4
[player] level (change|up|down)
Called when a player's level changes, e.g. by gathering experience or by enchanting something.
Cancellable
No
In Skript since
1.0, 2.4 (level up/down)
ID
EvtLevel
View example
on level change:
View event values
event-player
event-world
Lightning Strike
events
Skript 1.0
lightning [strike]
Called when lightning strikes.
Cancellable
Yes
In Skript since
1.0
ID
EvtLightningStrike
View example
on lightning:
spawn a zombie at location of event-entity
View event values
event-entity
event-world
Loot Generate
events
Skript 2.7
loot generat(e|ing)
Called when a loot table of an inventory is generated in the world.
For example, when opening a shipwreck chest.
Cancellable
Yes
In Skript since
2.7
ID
EvtLootGenerate
View example
on loot generate:
chance of 10%
add 64 diamonds to the loot
send"You hit the jackpot at %event-location%!"
View event values
event-entity
event-location
event-loot table
event-loot context
event-world
Love Mode Enter
events
Skript 2.10
[entity] enter[s] love mode[entity] love mode [enter]
Called whenever an entity enters a state of being in love.
Cancellable
Yes
In Skript since
2.10
ID
EvtLoveModeEnter
View example
on love mode enter:
cancel event # No one is allowed love here
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
event-living entity
event-player
Move / Rotate
events
Skript 2.6, 2.8.0
%entity type%(move|walk|step|(turn[ing] around|rotate))%entity type%(move|walk|step) or (turn[ing] around|rotate)%entity type%(turn[ing] around|rotate) or (move|walk|step)
Called when a player or entity moves or rotates their head.
NOTE: Move event will only be called when the entity/player moves position, keyword 'turn around' is for orientation (ie: looking around), and the combined syntax listens for both.
NOTE: These events can be performance heavy as they are called quite often.
Cancellable
Yes
In Skript since
2.6, 2.8.0 (turn around)
ID
EvtMove
View 3 examples
on player move:if player does not have permission "player.can.move":
cancel event
on skeleton move:if event-entity isnot in world "world":
kill event-entity
on player turning around:send action bar "You are currently turning your head around!"to player
View event values
event-player
event-world
event-entity
event-command sender
event-location
event-entity type
future event-location
event-block
past event-location
past event-chunk
event-chunk
Move On
events
Skript 2.0
(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.
Cancellable
Yes
In Skript since
2.0
ID
EvtMoveOn
View 2 examples
on walking on dirt or grass:
on stepping on stone:
View event values
event-player
event-world
event-block
past event-location
event-location
past event-chunk
event-chunk
Pathfind
events
Skript 2.16
[entity][start[s]] pathfind[ing]
Called whenever an entity tries to pathfind to a location or another entity.
Cancellable
Yes
In Skript since
2.16
ID
EvtPathfind
View example
on pathfind:broadcast"%event-entity% is about to move to %event-location%!"
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
Periodical
events
Skript 1.0
every %time span%every %time span% in [world[s]]%worlds%
An event that is called periodically.
Cancellable
No
In Skript since
1.0
ID
EvtPeriodical
View 4 examples
every 2 seconds:
every minecraft hour:
every tick:# can cause lag depending on the code inside the event
every minecraft days:
Physics
events
Skript 1.4.6
[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.
on portal:broadcast"%player% has entered a portal!"
on player portal:
player's world is world("wilderness")set world of event-location to player's world
add 9000 to x-pos of event-location
on entity portal:broadcast"A %type of event-entity% has entered a portal!
View event values
event-player
event-world
event-entity
event-command sender
event-location
event-entity type
event-block
past event-location
past event-chunk
event-chunk
event-teleport cause
Portal Create
events
Skript 1.0, 2.5.3
portal creat(e|ion)
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.
In Minecraft 1.14+, you can use the player in this event.
Please note that there may not always be a player (or other entity) in this event.
Cancellable
Yes
Requires
Minecraft 1.14+ (event-entity support)
In Skript since
1.0, 2.5.3 (event-entity support)
ID
EvtPortalCreate
View example
on portal create:
View event values
event-world
event-block
event-entity
Portal Enter
events
Skript 1.0
portal enter[ing]entering [a] portal
Called when an entity enters a nether portal or an end portal. Please note that this event will be fired many times for a nether portal.
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.
Cancellable
No
In Skript since
2.4
ID
EvtResourcePackResponse
View 2 examples
on resource pack request response: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!"
View event values
event-player
event-world
Respawn
events
Skript 1.0
[player] respawn[ing]
Called when a player respawns via death or entering the end portal in the end. You should prefer this event over the death event as the player is technically alive when this event is called.
Cancellable
No
In Skript since
1.0
ID
EvtRespawn
View example
on respawn:
View event values
event-player
event-world
event-respawn reason
Resurrect Attempt
events
Skript 2.2-dev28
[entity] resurrect[ion][attempt]
Called when an entity dies, always. If they are not holding a totem, this is cancelled - you can, however, uncancel it.
Cancellable
Yes
In Skript since
2.2-dev28
ID
EvtResurrectAttempt
View example
on resurrect attempt:
entity is player
entity has permission "admin.undying"
uncancel the event
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
event-slot
Riptide
events
Skript 2.5
[use of] riptide [enchant[ment]]
Called when the player activates the riptide enchantment, using their trident to propel them through the air.
Note: the riptide action is performed client side, so manipulating the player in this event may have undesired effects.
Cancellable
Yes
In Skript since
2.5
ID
EvtRiptide
View example
on riptide:send"You are riptiding!"
View event values
event-player
event-world
event-item
Script Load/Unload
events
Skript 2.0
[async][script](unload|stop|disable)
Called directly after the trigger is loaded, or directly before the whole script is unloaded.
The keyword 'async' indicates the trigger can be ran asynchronously,
Cancellable
No
In Skript since
2.0
ID
EvtScript
View 2 examples
on load:set {running::%script%} to true
on unload:set {running::%script%} to false
Script Load/Unload
events
Skript 2.0
[async][script](load|init|enable)
Called directly after the trigger is loaded, or directly before the whole script is unloaded.
The keyword 'async' indicates the trigger can be ran asynchronously,
Cancellable
No
In Skript since
2.0
ID
ScriptLoad
View 2 examples
on load:set {running::%script%} to true
on unload:set {running::%script%} to false
Send Command List
events
Skript 2.8.0
send[ing][of [the]][server] command[s] list[server] command list send
Called when the server sends a list of commands to the player. This usually happens on join. The sent commands can be modified via the sent commands expression.
Modifications will affect what commands show up for the player to tab complete. They will not affect what commands the player can actually run.
Adding new commands to the list is illegal behavior and will be ignored.
Cancellable
No
In Skript since
2.8.0
ID
EvtPlayerCommandSend
View example
onsend command list:set command list to command list where [input does not contain ":"]
remove"help" from command list
View event values
event-player
event-world
Server List Ping
events
Skript 2.3
server [list] ping
Called when a server list ping is coming in, generally when a Minecraft client pings the server to show its information in the server list.
The IP expression can be used to get the IP adress of the pinger.
This event can be cancelled on PaperSpigot 1.12.2+ only and this means the player will see the server as offline (but still can join).
on server list ping:set the motd to"Welcome %{player-by-IP::%ip%}%! Join now!"if {player-by-IP::%ip%} isset,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 swim toggle:
event-entity does not have permission "swim"
cancel event
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
System Time
events
Skript 2.11
at %times%[in] real time
Called when the local time of the system the server is running on reaches the provided real-life time.
Cancellable
No
In Skript since
2.11
ID
EvtRealTime
View 5 examples
at 14:20 in real time:
at 2:30am real time:
at 6:10 pm in real time:
at 5:00 am and 5:00 pm in real time:
at 5:00 and 17:00 in real time:
Tame
events
Skript 1.0
[entity] tam(e|ing)
Called when a player tames a wolf or ocelot. Can be cancelled to prevent the entity from being tamed.
Cancellable
Yes
In Skript since
1.0
ID
EvtTame
View example
on tame:
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
Target
events
Skript 1.0
[entity] target[entity] un[-]target
Called when a mob starts/stops following/attacking another entity, usually a player.
Cancellable
Yes
In Skript since
1.0
ID
EvtEntityTarget
View example
on entity target:
target is a player
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
Teleport
events
Skript 1.0, 2.9.0
[%entity types%] teleport[ing]
This event can be used to listen to teleports from non-players or player entities respectively.
When teleporting entities, the event may also be called due to a result of natural causes, such as an enderman or shulker teleporting, or wolves teleporting to players.
When teleporting players, the event can be called by teleporting through a nether/end portal, or by other means (e.g. plugins).
Called whenever a player changes their held item by selecting a different slot (e.g. the keys 1-9 or the mouse wheel), not by dropping or replacing the item in the current slot.
Cancellable
Yes
In Skript since
1.0
ID
EvtToolChange
View example
on player's held item change:
View event values
event-player
event-world
event-slot
past event-slot
Unknown Command Execution
events
Skript 2.17
(unknown|non-existent) command [execution]
Called when a player executes an unknown command.
Cancellable
No
In Skript since
2.17
ID
EvtUnknownCommand
View example
on unknown command execution:add 1 to {-command_fails::%player%}
wait 30 seconds:remove 1 from {-command_fails::%player%}
if {-command_fails::%player%} is greater than or equal to 5:
push the player upwards
set the unknown command message to"<red>You are executing too many unknown commands too fast!"
View event values
event-command sender
event-block
event-location
event-world
Vault Display Item
events
Skript 2.12
vault display[ing] item
Called when a vault in a trial chamber is about to display an item.
Cancellable
Yes
Requires
Minecraft 1.21.1+
In Skript since
2.12
ID
EvtVaultDisplayItem
View example
on vault display item:set event-item to a netherite ingot
Called when a vehicle is destroyed. Any passenger will be ejected and the vehicle might drop some item(s).
Cancellable
Yes
In Skript since
1.0
ID
EvtVehicleDestroy
View example
on vehicle destroy:
cancel event
View event values
event-vehicle
event-world
event-entity
Vehicle Enter
events
Skript 1.0
vehicle enterenter[ing][a] vehicle
Called when an entity enters a vehicle, either deliberately (players) or by falling into them (mobs).
Cancellable
Yes
In Skript since
1.0
ID
EvtVehicleEnter
View example
on vehicle enter:
entity is a player
cancel event
View event values
event-vehicle
event-world
event-entity
Vehicle Exit
events
Skript 1.0
vehicle exitexit[ing][a] vehicle
Called when an entity exits a vehicle.
Cancellable
Yes
In Skript since
1.0
ID
EvtVehicleExit
View example
on vehicle exit:if event-entity is a spider:
kill event-entity
View event values
event-vehicle
event-world
event-living entity
event-entity
Vehicle Move
events
Skript 2.10
vehicle move
Called when a vehicle moves.
Please note that using this event can cause lag if there are multiple vehicle entities, i.e. Horse, Pig, Boat, Minecart
Cancellable
No
In Skript since
2.10
ID
EvtVehicleMove
View example
on vehicle move:broadcast past event-location
broadcast event-location
View event values
event-vehicle
event-world
event-entity
event-location
past event-location
Villager Career Change
events
Skript 2.12
villager career chang(e[d]|ing)
Called when a villager changes its career. Can be caused by being employed or losing their job.
Cancellable
Yes
In Skript since
2.12
ID
EvtVillagerCareerChange
View example
on villager career change:if all:
event-career change reason is employment
event-villager profession is armorer profession
then:
cancel event
View event values
event-entity
event-command sender
event-world
event-location
event-entity type
event-villager career change reason
event-villager profession
past event-villager profession
Weather Change
events
Skript 1.0
weather change [to %weather types%]
Called when a world's weather changes.
Cancellable
Yes
In Skript since
1.0
ID
EvtWeatherChange
View 2 examples
on weather change:
on weather change to sunny:
View event values
event-world
World Border Bounds Change
events
Skript 2.11
world[]border [bounds] chang(e|ing)
Called when a world border changes its bounds, either over time, or instantly.
This event does not get called for virtual borders.
Cancellable
Yes
In Skript since
2.11
ID
EvtWorldBorderBoundsChange
View example
on worldborder bounds change:broadcast"The diameter of %event-worldborder% is changing from %past event-number% to %event-number% over the next %event-timespan%
View event values
event-world
event-world border
event-number
past event-number
event-time span
World Border Bounds Finish Change
events
Skript 2.11
world[]border [bounds] finish chang(e|ing)
Called when a moving world border has finished its move.
This event does not get called for virtual borders.
Cancellable
No
In Skript since
2.11
ID
EvtWorldBorderBoundsFinishChange
View example
on worldborder bounds finish change:broadcast"Over the past %event-timespan%, the diameter of %event-worldborder% went from %past event-number% to %event-number%"
View event values
event-world
event-world border
event-number
past event-number
event-time span
World Border Center Change
events
Skript 2.11
world[]border center chang(e|ing)
Called when a world border's center has changed.
This event does not get called for virtual borders.
Cancellable
Yes
In Skript since
2.11
ID
EvtWorldBorderCenterChange
View example
on worldborder center change:broadcast"The center of %event-worldborder% has moved from %past event-location% to %event-location%
View event values
event-world
event-world border
event-location
past event-location
World Init
events
Skript 1.0, 2.8.0
world init[ialization][of %worlds%]
Called when a world is initialized. As all default worlds are initialized 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.
Cancellable
No
In Skript since
1.0, 2.8.0 (defining worlds)
ID
EvtWorldInit
View example
on world init of"world_the_end":
View event values
event-world
World Load
events
Skript 1.0, 2.8.0
world load[ing][of %worlds%]
Called when a world is loaded. As with the world init event, this event will not be called for the server's default world(s).
Cancellable
No
In Skript since
1.0, 2.8.0 (defining worlds)
ID
EvtWorldLoad
View example
on world load of"world_nether":broadcast"The world %event-world% has been loaded!"
View event values
event-world
World Save
events
Skript 1.0, 2.8.0
world sav(e|ing)[of %worlds%]
Called when a world is saved to disk. Usually all worlds are saved simultaneously, but world management plugins could change this.
Cancellable
No
In Skript since
1.0, 2.8.0 (defining worlds)
ID
EvtWorld
View example
on world save of"world":broadcast"The world %event-world% has been saved"
View event values
event-world
World Unload
events
Skript 1.0, 2.8.0
world unload[ing][of %worlds%]
Called when a world is unloaded. This event will never be called if you don't have a world management plugin.
Cancellable
Yes
In Skript since
1.0, 2.8.0 (defining worlds)
ID
EvtWorldUnload
View example
on world unload:broadcast"the %event-world% has been unloaded!"
View event values
event-world
Zombie Break Door
events
Skript 1.0
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.
Generated from NeoSkript 0.1.0-SNAPSHOT's registry on Paper 26.3. Descriptions and examples from Skript's documentation (Skript 2.17.0), GPL-3.0. 1172 of 1205 entries matched one of its entries by id, event name or pattern; the rest show only their patterns.