The system recognizes 50 events!
Search:

delta time secondly (Common)

scripts reloaded (Common)

system loaded (Common)


entity collides with block (Entity)

entity collides with entity (Entity)

entity damaged (Entity)

entity dies (Entity)

entity enters area (Entity)

entity killed (Entity)

entity leaves area (Entity)

entity moves (Entity)

entity spawns (Entity)

projectile impacts block (Entity)

projectile impacts entity (Entity)

projectile launched (Entity)


experience changes (Player)

item cooldown ends (Player)

item cooldown starts (Player)

level changes (Player)

player breaks block (Player)

player changes gamemode (Player)

player chats (Player)

player disconnects (Player)

player finishes using item (Player)

player joins (Player)

player keeps using item (Player)

player left clicks (Player)

player left clicks block (Player)

player left clicks entity (Player)

player places block (Player)

player right clicks (Player)

player right clicks block (Player)

player right clicks entity (Player)

player starts using item (Player)

player stops using item (Player)

statistic changes (Player)


client pings server (Server)

command sent (Server)

internal event (Server)

server stops (Server)


http get request (Webizen2)

http head request (Webizen2)

http post request (Webizen2)


block changes (World)

block fades (World)

explosion occurs (World)

portal formed (World)

weather changes (World)

world loads (World)

world unloads (World)
delta time secondly
Common Event delta time secondly
delta time minutely
SourceDenizen2Core at: Denizen2Core-master/src/main/java/com/denizenscript/denizen2core/events/commonevents/DeltaTimeEvent.java on line 7
Required Addon(s)None
Last Updated2017/01/19
Triggersevery second or minute of game calculation time.
Context Definitionssecond (IntegerTag) returns the exact second of delta time since system startup.
Determination OptionsNone.
Is Cancellable?False
scripts reloaded
Common Event scripts reloaded
SourceDenizen2Core at: Denizen2Core-master/src/main/java/com/denizenscript/denizen2core/events/commonevents/ScriptReloadEvent.java on line 7
Required Addon(s)None
Last Updated2016/08/26
Triggerswhen the Denizen engine reloads all scripts. See <@link command reload>the reload command<@/link>.
Context DefinitionsNone.
Determination OptionsNone.
Is Cancellable?False
system loaded
Common Event system loaded
SourceDenizen2Core at: Denizen2Core-master/src/main/java/com/denizenscript/denizen2core/events/commonevents/SystemLoadEvent.java on line 7
Required Addon(s)None
Last Updated2016/08/26
Triggerswhen the Denizen engine loads for the first time.
Context DefinitionsNone.
Determination OptionsNone.
Is Cancellable?False
entity collides with block
Entity Event entity collides with block
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/entity/EntityCollidesWithBlockScriptEvent.java on line 22
Required Addon(s)None
Last Updated2017/10/27
Triggerswhen an entity collides with a block. Note: this event may fire very rapidly.
Context Definitionsentity (EntityTag) returns the entity that collided with the block.
location (LocationTag) returns the location of the colliding block.
impact_normal (LocationTag) returns the impact normal of the collision.
Determination OptionsNone.
Is Cancellable?True
switchentity_type (EntityTypeTag) checks the entity type.
switchblock_type (BlockTypeTag) checks the block type.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
entity collides with entity
Entity Event entity collides with entity
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/entity/EntityCollidesWithEntityScriptEvent.java on line 22
Required Addon(s)None
Last Updated2017/11/03
Triggerswhen an entity collides with another entity. Note: this event may fire very rapidly.
Context Definitionsentities (EntityTag) returns the entities that collided.
Determination OptionsNone.
Is Cancellable?True
switchtype (EntityTypeTag) checks the first entity type.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
entity damaged
Entity Event entity damaged
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/entity/EntityDamagedScriptEvent.java on line 22
Required Addon(s)None
Last Updated2017/10/14
Triggerswhen an entity is damaged.
Context Definitionsentity (EntityTag) returns the entity that was damaged.
damage (NumberTag) returns the (final) amount of damage applied.
Determination Optionsdamage (NumberTag) to set the (final) amount of damage applied. (This will override any damage modifiers!)
Is Cancellable?True
switchtype (EntityTypeTag) checks the entity type.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
entity dies
Entity Event entity dies
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/entity/EntityDiesScriptEvent.java on line 23
Required Addon(s)None
Last Updated2017/10/14
Triggerswhen an entity dies.
Context Definitionsentity (EntityTag) returns the entity that died.
message (FormattedTextTag) returns the message that will be broadcast to the server.
Determination Optionsmessage (FormattedTextTag) to set the message displayed when the entity dies.
cancel_message (BooleanTag) to set whether the death message is cancelled.
Is Cancellable?False
switchtype (EntityTypeTag) checks the entity type.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
entity enters area
Entity Event entity enters area
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/entity/EntityEntersAreaScriptEvent.java on line 20
Required Addon(s)None
Last Updated2017/10/06
Triggerswhen an entity enters an area.
Context Definitionsentity (EntityTag) returns the entity that entered the area.
to_position (LocationTag) returns the position the entity moved to.
from_position (LocationTag) returns the position the entity moved from.
Determination OptionsNone.
Is Cancellable?True
switchtype (EntityTypeTag) checks the entity type.
switchcuboid (CuboidTag) checks the cuboid that was entered.
switchweather (TextTag) checks the weather.
entity killed
Entity Event entity killed
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/entity/EntityKilledScriptEvent.java on line 22
Required Addon(s)None
Last Updated2017/10/14
Triggerswhen an entity is killed.
Context Definitionsentity (EntityTag) returns the entity that was killed.
damage (NumberTag) returns the amount of damage applied.
Determination OptionsNone.
Is Cancellable?True
switchtype (EntityTypeTag) checks the entity type.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
entity leaves area
Entity Event entity leaves area
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/entity/EntityLeavesAreaScriptEvent.java on line 20
Required Addon(s)None
Last Updated2017/10/06
Triggerswhen an entity leaves an area.
Context Definitionsentity (EntityTag) returns the entity that left the area.
to_position (LocationTag) returns the position the entity moved to.
from_position (LocationTag) returns the position the entity moved from.
Determination OptionsNone.
Is Cancellable?True
switchtype (EntityTypeTag) checks the entity type.
switchcuboid (CuboidTag) checks the cuboid that was left.
switchweather (TextTag) checks the weather.
entity moves
Entity Event entity moves
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/entity/EntityMovesScriptEvent.java on line 21
Required Addon(s)None
Last Updated2016/10/25
Triggerswhen an entity moves.
Context Definitionsentity (EntityTag) returns the entity that moved.
to_position (LocationTag) returns the position the entity moved to.
to_rotation (LocationTag) returns the rotation the entity moved to.
from_position (LocationTag) returns the position the entity moved from.
from_rotation (LocationTag) returns the rotation the entity moved from.
Determination OptionsNone.
Is Cancellable?True
switchtype (EntityTypeTag) checks the entity type.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
entity spawns
Entity Event entity spawns
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/entity/EntitySpawnsScriptEvent.java on line 24
Required Addon(s)None
Last Updated2018/06/03
Triggerswhen an entity spawns in the world (non players). Possible spawn causes can be found at <@link explanation Spawn Causes>spawn causes<@/link>.
Context Definitionsentity (EntityTag) returns the entity that is attempting to spawn.
cause (TextTag) returns the type of spawn that fired this event.
Determination OptionsNone.
Is Cancellable?True
switchtype (EntityTypeTag) checks the entity type.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
switchcause (TextTag) checks the spawn cause.
projectile impacts block
Entity Event projectile impacts block
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/entity/ProjectileImpactsBlockScriptEvent.java on line 22
Required Addon(s)None
Last Updated2017/10/27
Triggerswhen a projectile impacts a block.
Context Definitionsentity (EntityTag) returns the projectile entity that impacted the block.
location (LocationTag) returns the location of the block impacted.
impact_point (LocationTag) returns the precise impact location.
impact_normal (LocationTag) returns the impact normal of the collision.
Determination OptionsNone.
Is Cancellable?True
switchentity_type (EntityTypeTag) checks the entity type.
switchblock_type (BlockTypeTag) checks the block type.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
projectile impacts entity
Entity Event projectile impacts entity
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/entity/ProjectileImpactsEntityScriptEvent.java on line 19
Required Addon(s)None
Last Updated2017/10/27
Triggerswhen a projectile impacts an entity.
Context Definitionsentity (EntityTag) returns the projectile entity that impacted the other entity.
other_entity (EntityTag) returns the entity that was impacted.
impact_point (LocationTag) returns the precise impact location.
Determination OptionsNone.
Is Cancellable?True
switchtype (EntityTypeTag) checks the projectile type.
switchother_type (EntityTypeTag) checks the other entity type.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
projectile launched
Entity Event projectile launched
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/entity/ProjectileLaunchedScriptEvent.java on line 20
Required Addon(s)None
Last Updated2018/02/12
Triggerswhen a projectile is launched.
Context Definitionsentity (EntityTag) returns the projectile entity that was launched.
shooter (EntityTag) returns the shooter entity that launched the projectile.
Determination OptionsNone.
Is Cancellable?True
switchentity_type (EntityTypeTag) checks the projectile entity type.
switchshooter_type (EntityTypeTag) checks the shooter entity type.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
WarningThis event does not trigger in Sponge during last testing.
experience changes
Player Event experience changes
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/ExperienceChangesScriptEvent.java on line 21
Required Addon(s)None
Last Updated2017/10/16
Triggerswhen a player's experience changes.
Context Definitionsplayer (PlayerTag) returns the player that changed experience.
old_xp (IntegerTag) returns the old experience value.
new_xp (IntegerTag) returns the new experience value.
Determination Optionsxp (IntegerTag) sets the new experience value.
Is Cancellable?True
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
WarningThis event does not trigger in Sponge during last testing.
item cooldown ends
Player Event item cooldown ends
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/ItemCooldownEndsScriptEvent.java on line 21
Required Addon(s)None
Last Updated2018/01/07
Triggerswhen a item type's cooldown ends for a player.
Context Definitionsplayer (PlayerTag) returns the player that has the cooldown.
item_type (ItemTypeTag) returns the item type that went off cooldown.
Determination OptionsNone.
Is Cancellable?False
switchtype (ItemTypeTag) checks the item type.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
item cooldown starts
Player Event item cooldown starts
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/ItemCooldownStartsScriptEvent.java on line 22
Required Addon(s)None
Last Updated2018/01/07
Triggerswhen a item type's cooldown starts for a player.
Context Definitionsplayer (PlayerTag) returns the player that has the cooldown.
item_type (ItemTypeTag) returns the item type that went on cooldown.
new_cooldown (DurationTag) returns the new cooldown duration.
old_cooldown (DurationTag) returns the cooldown before the event.
Determination Optionscooldown (DurationTag) sets the new cooldown duration.
Is Cancellable?True
switchtype (ItemTypeTag) checks the item type.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
level changes
Player Event level changes
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/LevelChangesScriptEvent.java on line 21
Required Addon(s)None
Last Updated2017/10/16
Triggerswhen a player's level changes.
Context Definitionsplayer (PlayerTag) returns the player that changed level.
old_level (IntegerTag) returns the old level value.
new_level (IntegerTag) returns the new level value.
Determination Optionslevel (IntegerTag) sets the new level value.
Is Cancellable?True
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
WarningThis event does not trigger in Sponge during last testing.
player breaks block
Player Event player breaks block
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerBreaksBlockScriptEvent.java on line 26
Required Addon(s)None
Last Updated2017/10/14
Triggerswhen a player breaks a block.
Context Definitionsplayer (PlayerTag) returns the player that broke the block.
material (BlockTypeTag) returns the broken material.
location (LocationTag) returns the location of the broken block.
Determination OptionsNone.
Is Cancellable?True
switchtype (BlockTypeTag) checks the block type.
switchwith_item (ItemTag) checks the item in hand.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
player changes gamemode
Player Event player changes gamemode
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerChangesGamemodeScriptEvent.java on line 23
Required Addon(s)None
Last Updated2018/02/12
Triggerswhen a player changes gamemode.
Context Definitionsplayer (PlayerTag) returns the player that changed gamemode.
old_gamemode (TextTag) returns the old gamemode.
new_gamemode (TextTag) returns the new gamemode.
Determination Optionsgamemode (TextTag) sets the new gamemode.
Is Cancellable?True
switchold_gamemode (TextTag) checks the old gamemode.
switchnew_gamemode (TextTag) checks the new gamemode.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
player chats
Player Event player chats
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerChatsScriptEvent.java on line 20
Required Addon(s)None
Last Updated2017/10/14
Triggerswhen a player sends a chat message.
Context Definitionsplayer (PlayerTag) returns the player that sent the message.
message (FormattedTextTag) returns the chat message.
Determination Optionsmessage (FormattedTextTag) to set the message that will be displayed instead.
Is Cancellable?True
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
player disconnects
Player Event player disconnects
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerDisconnectsScriptEvent.java on line 19
Required Addon(s)None
Last Updated2017/03/22
Triggerswhen a player disconnects from the server.
Context Definitionsplayer (PlayerTag) returns the player that disconnected.
message (FormattedTextTag) returns the message that will be broadcast to the server.
Determination Optionsmessage (FormattedTextTag) to set the message displayed when a player disconnects.
cancel_message (BooleanTag) to set whether the disconnect message is cancelled.
Is Cancellable?False
player finishes using item
Player Event player finishes using item
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerFinishesUsingItemScriptEvent.java on line 20
Required Addon(s)None
Last Updated2017/10/14
Triggerswhen a player finishes using an item and it's consumed.
Context Definitionsplayer (PlayerTag) returns the player that finished using the item.
item (ItemTag) returns the used item.
duration (DurationTag) returns the maximum duration the item will be used for.
Determination Optionsduration (DurationTag) sets the maximum duration the item will be used for.
Is Cancellable?True
switchitem (ItemTag) checks the item used.
player joins
Player Event player joins
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerJoinsScriptEvent.java on line 19
Required Addon(s)None
Last Updated2016/10/18
Triggerswhen a player successfully joins the server.
Context Definitionsplayer (PlayerTag) returns the player that joined.
message (FormattedTextTag) returns the message that will be broadcast to the server.
Determination Optionsmessage (FormattedTextTag) to set the message displayed when a player joins.
cancel_message (BooleanTag) to set whether the join message is cancelled.
Is Cancellable?False
player keeps using item
Player Event player keeps using item
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerKeepsUsingItemScriptEvent.java on line 20
Required Addon(s)None
Last Updated2017/10/14
Triggerswhen a player uses an item for a tick.
Context Definitionsplayer (PlayerTag) returns the player that is using the item.
item (ItemTag) returns the used item.
duration (DurationTag) returns the maximum duration the item will be used for.
Determination Optionsduration (DurationTag) sets the maximum duration the item will be used for.
Is Cancellable?True
switchitem (ItemTag) checks the item used.
player left clicks
Player Event player left clicks
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerLeftClicksScriptEvent.java on line 21
Required Addon(s)None
Last Updated2017/05/05
Triggerswhen a player left clicks.
Context Definitionsplayer (PlayerTag) returns the player that did the left clicking.
Determination OptionsNone.
Is Cancellable?True
switchwith_item (ItemTag) checks the item in hand.
player left clicks block
Player Event player left clicks block
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerLeftClicksBlockScriptEvent.java on line 29
Required Addon(s)None
Last Updated2017/10/14
Triggerswhen a player left clicks a block.
Context Definitionsplayer (PlayerTag) returns the player that did the left clicking.
location (LocationTag) returns the location of the block that was left clicked.
precise_location (LocationTag) returns the exact point that was left clicked in the world.
intersection_point (LocationTag) returns the exact point of intersection relative to the block (When available).
impact_normal (LocationTag) returns the normal vector from the side of the block that was left clicked.
Determination OptionsNone.
Is Cancellable?True
switchtype (BlockTypeTag) checks the block type.
switchwith_item (ItemTag) checks the item in hand.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
player left clicks entity
Player Event player left clicks entity
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerLeftClicksEntityScriptEvent.java on line 22
Required Addon(s)None
Last Updated2017/04/05
Triggerswhen a player left clicks an entity.
Context Definitionsplayer (PlayerTag) returns the player that did the left clicking.
entity (EntityTag) returns the entity that was left clicked.
Determination OptionsNone.
Is Cancellable?True
switchtype (EntityTypeTag) checks the entity type.
switchwith_item (ItemTag) checks the item in hand.
player places block
Player Event player places block
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerPlacesBlockScriptEvent.java on line 23
Required Addon(s)None
Last Updated2016/09/22
Triggerswhen a player places a block.
Context Definitionsplayer (PlayerTag) returns the player that broke the block.
material (BlockTypeTag) returns the placed material.
old_material (BlockTypeTag) returns the material that the block was placed onto.
location (LocationTag) returns the location of the broken block.
Determination OptionsNone.
Is Cancellable?True
switchtype (BlockTypeTag) checks the block type.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
player right clicks
Player Event player right clicks
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerRightClicksScriptEvent.java on line 21
Required Addon(s)None
Last Updated2017/05/05
Triggerswhen a player right clicks. Note: This does not include right clicking air empty handed.
Context Definitionsplayer (PlayerTag) returns the player that did the right clicking.
Determination OptionsNone.
Is Cancellable?True
switchwith_item (ItemTag) checks the item in hand.
player right clicks block
Player Event player right clicks block
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerRightClicksBlockScriptEvent.java on line 30
Required Addon(s)None
Last Updated2017/10/14
Triggerswhen a player right clicks a block. Note that this may fire twice per triggering.
Context Definitionsplayer (PlayerTag) returns the player that did the right clicking.
location (LocationTag) returns the location of the block that was right clicked.
precise_location (LocationTag) returns the exact point that was right clicked in the world.
intersection_point (LocationTag) returns the exact point of intersection relative to the block (When available).
impact_normal (LocationTag) returns the normal vector from the side of the block that was right clicked.
hand (TextTag) returns the hand type that triggered the event.
Determination OptionsNone.
Is Cancellable?True
switchtype (BlockTypeTag) checks the block type.
switchhand (TextTag) checks the hand type.
switchwith_item (ItemTag) checks the item in hand.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
player right clicks entity
Player Event player right clicks entity
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerRightClicksEntityScriptEvent.java on line 24
Required Addon(s)None
Last Updated2017/03/28
Triggerswhen a player right clicks an entity. Note that this may fire twice per triggering.
Context Definitionsplayer (PlayerTag) returns the player that did the right clicking.
entity (EntityTag) returns the entity that was right clicked.
hand (TextTag) returns the hand type that triggered the event.
Determination OptionsNone.
Is Cancellable?True
switchtype (EntityTypeTag) checks the entity type.
switchhand (TextTag) checks the hand type.
switchwith_item (ItemTag) checks the item in hand.
player starts using item
Player Event player starts using item
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerStartsUsingItemScriptEvent.java on line 23
Required Addon(s)None
Last Updated2017/10/14
Triggerswhen a player starts using an item.
Context Definitionsplayer (PlayerTag) returns the player that started using the item.
item (ItemTag) returns the used item.
duration (DurationTag) returns the maximum duration the item will be used for.
Determination Optionsduration (DurationTag) sets the maximum duration the item will be used for.
Is Cancellable?True
switchitem (ItemTag) checks the item used.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
switchgamemode (TextTag) checks the player's gamemode.
player stops using item
Player Event player stops using item
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/PlayerStopsUsingItemScriptEvent.java on line 23
Required Addon(s)None
Last Updated2017/10/14
Triggerswhen a player intentionally stops using an item.
Context Definitionsplayer (PlayerTag) returns the player that stopped using the item.
item (ItemTag) returns the used item.
duration (DurationTag) returns the maximum duration the item had remaining before finishing.
Determination OptionsNone.
Is Cancellable?True
switchitem (ItemTag) checks the item used.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
switchgamemode (TextTag) checks the player's gamemode.
statistic changes
Player Event statistic changes
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/player/StatisticChangesScriptEvent.java on line 20
Required Addon(s)None
Last Updated2017/10/13
Triggerswhen a player statistic changes.
Context Definitionsplayer (PlayerTag) returns the player that owns the statistic.
statistic (TextTag) returns the changed statistic.
old_value (IntegerTag) returns the old statistic value.
new_value (IntegerTag) returns the new statistic value.
Determination Optionsvalue (IntegerTag) sets the new statistic value.
Is Cancellable?True
switchstatistic (TextTag) checks the statistic.
client pings server
Server Event client pings server
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/server/ClientPingsServerScriptEvent.java on line 20
Required Addon(s)None
Last Updated2016/08/26
Triggerswhen a client pings the server for information.
Context Definitionsaddress (TextTag) returns the address of the client.
version (TextTag) returns the Minecraft version the client is using to ping.
motd (TextTag) returns the Message Of The Day that will display on the client.
num_players (IntegerTag) returns the number of online players that will display on the client.
max_players (IntegerTag) returns the number of maximum players that will display on the client.
Determination Optionsmotd (TextTag) set the description/Message-of-the-Day text visible to the client ping.
max_players (IntegerTag) set the maximum number of players visible to the client ping.
num_players (IntegerTag) set the number of players visible to the client ping. NOTE: CANNOT BE GREATER THAN EXISTING VALUE!
Is Cancellable?False
command sent
Server Event command sent
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/server/CommandSentScriptEvent.java on line 26
Required Addon(s)None
Last Updated2017/10/04
Triggerswhen a command is used by any source.
Context Definitionscommand (TextTag) returns the main command that was used.
args (ListTag<TextTag>) returns a list of the arguments used.
raw_args (TextTag) returns the arguments as a single text tag.
source (TextTag) returns whether the command was sent by the console, a player or a command block.
player (PlayerTag) returns the player that sent the command, if the source was in fact one.
location (LocationTag) returns the location of the command block that sent the command, if the source is in fact one.
entity (EntityTag) returns the command block minecart that sent the command, if the source is in fact one.
Determination Optionscommand (TextTag) to set the main command that will be used.
args (ListTag<TextTag>) to set a list of the arguments that will be used.
raw_args (TextTag) to set the arguments as a single text tag.
Is Cancellable?True
switchcommand (TextTag) checks the command name.
internal event
Server Event internal event
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/server/InternalScriptEvent.java on line 18
Required Addon(s)None
Last Updated2016/12/11
Triggerswhen any internal event occurs.
Context Definitionsevent_type (TextTag) returns the internal name of the event type.
cause (MapTag) returns a simple Text:TextTag map of all named causes in the event.
Determination OptionsNone
Is Cancellable?True
switchevent_type (TextTag) checks the event type.
NoteCancel-ability depends on internal event.
WarningThis event depends on the internal system (Sponge) being consistent and trustworthy. Prefer D2-standard events over this!
server stops
Server Event server stops
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/server/ServerStopsScriptEvent.java on line 15
Required Addon(s)None
Last Updated2017/03/22
Triggerswhen the server stops.
Context DefinitionsNone.
Determination OptionsNone.
Is Cancellable?False
http get request
Webizen2 Event http get request
SourceWebizen2 at: Webizen2-master/src/main/java/com/denizenscript/webizen2/events/http/HttpGetRequestScriptEvent.java on line 5
Required Addon(s)Webizen2
Last Updated2016/08/31
Triggerswhen an HTTP server receives a GET request.
Context Definitionsaddress (TextTag) returns the IP address of the device that sent the request.
host (TextTag) returns the host that was requested (EG: www.example.com).
page (TextTag) returns the path of the page that was requested (EG: /page).
port (IntegerTag) returns the port that was requested (EG: 8080).
request (TextTag) returns the full requested URI (EG: www.example.com:8080/page).
query (TextTag) returns the query text included with the request.
user_info (TextTag) returns info about the authenticated user sending the request, if any.
Determination Optionscontent_type (TextTag) sets the MIME (multi purpose mail extension) of the response (e.g. text/html).
status_code (IntegerTag) sets the status code of the response (e.g. 200).
response_text (TextTag) sets the text content of the response.
headers (MapTag) sets the headers of the response.
Is Cancellable?False
switchpage checks if the page requested is the one specified.
switchport checks if the port requested is the one specified.
http head request
Webizen2 Event http head request
SourceWebizen2 at: Webizen2-master/src/main/java/com/denizenscript/webizen2/events/http/HttpHeadRequestScriptEvent.java on line 5
Required Addon(s)Webizen2
Last Updated2016/08/31
Triggerswhen an HTTP server receives a HEAD request.
Context Definitionsaddress (TextTag) returns the IP address of the device that sent the request.
host (TextTag) returns the host that was requested (EG: www.example.com).
page (TextTag) returns the path of the page that was requested (EG: /page).
port (IntegerTag) returns the port that was requested (EG: 8080).
request (TextTag) returns the full requested URI (EG: www.example.com:8080/page).
query (TextTag) returns the query text included with the request.
user_info (TextTag) returns info about the authenticated user sending the request, if any.
Determination Optionscontent_type (TextTag) sets the MIME (multi purpose mail extension) of the response (e.g. text/html).
status_code (IntegerTag) sets the status code of the response (e.g. 200).
headers (MapTag) sets the headers of the response.
Is Cancellable?False
switchpage checks if the page requested is the one specified.
switchport checks if the port requested is the one specified.
http post request
Webizen2 Event http post request
SourceWebizen2 at: Webizen2-master/src/main/java/com/denizenscript/webizen2/events/http/HttpPostRequestScriptEvent.java on line 10
Required Addon(s)Webizen2
Last Updated2016/08/31
Triggerswhen an HTTP server receives a GET request.
Context Definitionscontent_type (TextTag) returns the content type of the request body.
address (TextTag) returns the IP address of the device that sent the request.
host (TextTag) returns the host that was requested (EG: www.example.com).
page (TextTag) returns the path of the page that was requested (EG: /page).
port (IntegerTag) returns the port that was requested (EG: 8080).
request (TextTag) returns the full requested URI (EG: www.example.com:8080/page).
query (TextTag) returns the query text included with the request.
user_info (TextTag) returns info about the authenticated user sending the request, if any.
Determination Optionscontent_type (TextTag) sets the MIME (multi purpose mail extension) of the response (e.g. text/html).
status_code (IntegerTag) sets the status code of the response (e.g. 200).
response_text (TextTag) sets the text content of the response.
headers (MapTag) sets the headers of the response.
Is Cancellable?False
switchpage checks if the page requested is the one specified.
switchport checks if the port requested is the one specified.
block changes
World Event block changes
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/world/BlockChangesScriptEvent.java on line 20
Required Addon(s)None
Last Updated2017/10/14
Triggerswhen a block changes for any given reason. Note that this may fire twice per triggering.
Context Definitionslocation (LocationTag) returns the location of the changed block.
new_material (BlockTypeTag) returns the new type of the block.
old_material (BlockTypeTag) returns the old type of the block.
Determination OptionsNone.
Is Cancellable?True
switchnew_type (BlockTypeTag) checks the new block type.
switchold_type (BlockTypeTag) checks the old block type.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
block fades
World Event block fades
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/world/BlockFadesScriptEvent.java on line 20
Required Addon(s)None
Last Updated2017/10/14
Triggerswhen a block fades (like leaves).
Context Definitionslocation (LocationTag) returns the location of the faded block.
material (BlockTypeTag) returns the type of the block.
Determination OptionsNone.
Is Cancellable?True
switchtype (BlockTypeTag) checks the block type.
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
explosion occurs
World Event explosion occurs
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/world/ExplosionOccursScriptEvent.java on line 27
Required Addon(s)None
Last Updated2017/10/05
Triggerswhen an explosion occurs and is calculating the affected locations and entities.
Context Definitionslocations (ListTag<LocationTag>) returns the locations affected by the explosion.
entities (ListTag<EntityTag>) returns the entities affected by the explosion.
explosion_data (MapTag) returns the data associated with the explosion, such as radius or whether it should cause fire.
Determination Optionslocations (ListTag<LocationTag>) to set the locations affected by the explosion.
entities (ListTag<EntityTag>) to set the entities affected by the explosion.
Is Cancellable?True
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
portal formed
World Event portal formed
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/world/PortalFormedScriptEvent.java on line 17
Required Addon(s)None
Last Updated2017/10/03
Triggerswhen a portal is created, usually after a block change.
Context Definitionslocation (LocationTag) returns the location of the created portal.
Determination OptionsNone.
Is Cancellable?True
switchworld (WorldTag) checks the world.
switchcuboid (CuboidTag) checks the cuboid area.
switchweather (TextTag) checks the weather.
WarningThis event does not trigger in Sponge during last testing.
weather changes
World Event weather changes
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/world/WeatherChangesScriptEvent.java on line 21
Required Addon(s)None
Last Updated2017/10/16
Triggerswhen the weather changes in a world.
Context Definitionsworld (WorldTag) returns the world.
duration (DurationTag) returns how long the new weather will last.
new_weather (TextTag) returns the new weather.
old_weather (TextTag) returns the old weather.
Determination Optionsduration (DurationTag) sets how long the new weather will last.
new_weather (TextTag) sets the new weather.
Is Cancellable?True
switchnew_weather (TextTag) checks the new weather.
switchold_weather (TextTag) checks the old weather.
switchworld (WorldTag) checks the world.
WarningThis event's determinations do not work in Sponge during last testing.
world loads
World Event world loads
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/world/WorldLoadsScriptEvent.java on line 16
Required Addon(s)None
Last Updated2017/03/24
Triggerswhen a world is loaded.
Context Definitionsworld (WorldTag) returns the world that was loaded.
Determination OptionsNone.
Is Cancellable?True
switchworld (WorldTag) checks the world.
world unloads
World Event world unloads
SourceDenizen2Sponge at: Denizen2Sponge-master/src/main/java/com/denizenscript/denizen2sponge/events/world/WorldUnloadsScriptEvent.java on line 16
Required Addon(s)None
Last Updated2017/03/24
Triggerswhen a world is unloaded.
Context Definitionsworld (WorldTag) returns the world that was unloaded.
Determination OptionsNone.
Is Cancellable?True
switchworld (WorldTag) checks the world.