Skip to main content

Actions & Triggers

Basic structure

Actions are configured under:

triggers:
trigger-name:
actions:
- type: ACTION_TYPE
message: "Message here"

Example:

triggers:
event-start:
actions:
- type: BROADCAST
message: "&bMining Rush has started!"

Supported triggers

EventForge supports these event-level triggers:

TriggerWhen it runs
event-startWhen the event starts
event-finishWhen the event finishes naturally
event-stopWhen the event is force-stopped
player-scoreWhen a player gains score

Example:

triggers:
event-start:
actions:
- type: BROADCAST
message: "&aThe event has started!"

event-finish:
actions:
- type: BROADCAST
message: "&eThe event has finished!"

player-score:
actions:
- type: ACTIONBAR
message: "&a+{score_change} points &7| Total: &f{new_score}"
info

Some objective types can also run their own actions. For example, capture zones, visit regions, interact blocks, and milestones can all run actions from their own sections.