- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register




Search:

Listing Actions...


Name(s)on spawn
Triggerswhen the NPC is spawned.
This will fire whenever an NPC's chunk is loaded, or a spawn command is issued.
ContextNone
Determine

Name(s)on despawn
Triggerswhen the NPC is despawned.
This can be because a command was issued, or a chunk has been unloaded.
ContextNone
Determine

Name(s)on remove
Triggerswhen the NPC is removed.
ContextNone
Determine

Name(s)on assignment
Triggerswhen the NPC receives an assignment via '/npc assign --set Name'.
ContextNone
Determine

Name(s)on remove assignment
Triggerswhen the NPC loses its assignment.
ContextNone
Determine

Name(s)on death
on death by entity
on death by <entity>
on death by block
on death by <cause>
Triggerswhen the NPC dies.
Context<context.killer> returns the entity that killed the NPC (if any)
<context.shooter> returns the shooter of the killing projectile (if any)
<context.damage> returns the last amount of damage applied (if any)
<context.death_cause> returns the last damage cause (if any)
Determine

Name(s)on hit
on hit on <entity>
Triggerswhen the NPC hits an enemy.
ContextNone
Determine

Name(s)on kill
on kill of <entity>
Triggerswhen the NPC kills an enemy.
ContextNone
Determine

Name(s)on start fishing
Triggerswhen the NPC starts fishing.
ContextNone
Determine

Name(s)on stop fishing
Triggerswhen the NPC stops fishing.
ContextNone
Determine

Name(s)on cast fishing rod
Triggerswhen the NPC casts a fishing rod.
ContextNone
Determine

Name(s)on reel in fishing rod
Triggerswhen the NPC reels in its fishing rod.
ContextNone
Determine

Name(s)on exhausted
Triggerswhen the NPC is exhausted (Requires the Hunger trait)
ContextNone
Determine

Name(s)on mob enter proximity
on <entity> enter proximity
Triggerswhen a mob enters the proximity of the NPC (Requires MobProx trait).
Context<context.entity> returns the mob that entered the proximity
Determine

Name(s)on mob exit proximity
on <entity> exit proximity
Triggerswhen a mob exits the proximity of the NPC (Requires MobProx trait).
Context<context.entity> returns the mob that exited the proximity
Determine

Name(s)on mob move proximity
on <entity> move proximity
Triggerswhen a mob moves in the proximity of the NPC (Requires MobProx trait).
(Fires at a rate of specified by the 'mobprox_timer' flag, default of 2 seconds)
Context<context.entity> returns the mob that entered the proximity
Determine

Name(s)on push
Triggerswhen the NPC is pushed by a player
ContextNone
Determine

Name(s)on push return
Triggerswhen the NPC returns to its center after being pushed by a player.
ContextNone
Determine

Name(s)on sit
Triggerswhen the NPC sits down.
ContextNone
Determine

Name(s)on stand
Triggerswhen the NPC stands up.
ContextNone
Determine

Name(s)on sneak
Triggerswhen the NPC starts sneaking.
ContextNone
Determine

Name(s)on unavailable
Triggerswhen a trigger fires but the NPC is engaged.
Context<context.trigger_type> return the type of trigger fired
Determine

Name(s)on dig
Triggerswhen the NPC breaks a block with the Break Command
Context<context.location> returns the location the NPC Dug
<context.material> Returns the Block dug
Determine

Name(s)on chat
Triggerswhen a player chats to the NPC.
Context<context.message> returns the triggering message
<context.keyword> returns the keyword matched by a RegEx trigger
Determine"CANCELLED" to stop the player from chatting.
ElementTag to change the message.

Name(s)on no click trigger
Triggerswhen the NPC is clicked but no click trigger fires.
ContextNone
Determine

Name(s)on click
Triggerswhen the NPC is clicked by a player.
ContextNone
Determine"cancelled" to cancel the click event completely.

Name(s)on no damage trigger
Triggerswhen the NPC is damaged by a player but no damage trigger fires.
ContextNone
Determine

Name(s)on damage
Triggerswhen the NPC is damaged by a player.
Context<context.damage> returns how much damage was done.
Determine"cancelled" to cancel the damage event.

Name(s)on damaged
Triggerswhen the NPC is damaged by an entity.
Context<context.damage> returns how much damage was done.
<context.damager> returns the entity that did the damage.
Determine"cancelled" to cancel the damage event.

Name(s)on enter proximity
Triggerswhen a player enters the NPC's proximity trigger's radius.
ContextNone
Determine

Name(s)on exit proximity
Triggerswhen a player exits the NPC's proximity trigger's radius.
ContextNone
Determine

Name(s)on move proximity
Triggerswhen a player moves inside the NPC's proximity trigger's radius.
ContextNone
Determine

Name(s)on proximity
Triggerswhen a player moves inside the NPC's proximity trigger's radius.
ContextNone
Determine

Name(s)on complete navigation
Triggerswhen the NPC has finished a 'walk' command,
or has reached a path point.
ContextNone
Determine

Name(s)on begin navigation
Triggerswhen the NPC has received a 'walk' command,
or is about to follow a path.
ContextNone
Determine

Name(s)on attack
on attack on <entity>
Triggerswhen the NPC is about to attack an enemy.
ContextNone
Determine

Name(s)on cancel navigation
on cancel navigation due to <reason>
Triggerswhen a plugin or script cancels an NPC's navigation.
ContextNone
Determine

Name(s)on stuck
Triggerswhen the NPC's navigator is stuck.
Context<context.action> returns 'teleport' or 'none'
Determine"NONE" to do nothing.
"TELEPORT" to teleport.