Triggers

Configuring the Triggers

Triggers are… Well. Triggers. You can specify certain things to happen when the player interacts with a configured block. This ranges from running commands after breaking a block, or running a MythicMobs skill if the player stops mining without breaking the block.

Attention

See Configuration to better understand how triggers are configured!
This page is for seeing which trigger types and functions are available.

Trigger Types

Type

Description

start

Runs when the player starts breaking the block.

break

Runs when the player finishes breaking the block.

abort

Runs when the player stops breaking a block, before finishing.

stop

A mix of the two above. Runs on break and abort.

Tip

start, break and stop triggers all execute at the same time if a block is instantly broken.

Trigger Functions

Function

Description

Example

command

Runs a command. Supports PAPI and can run from console by prefixing with !.

break{command="!kill %player%"}

event

Fires an event that other plugin developers can listen for.

break{event="event args"}

skill

Run a MythicMobs skill. Skill conditions will be checked before firing.

break{skill="MyCoolMMSkill"}

Important

The skill function requires MythicMobs!