Guide menu ▾

Macros

Macro triggers

Every event that starts a macro: on join, on death, when a word appears in chat, at a set time, when health is low, when the server shows a form and more.

Last updated: November 16, 2026

Each macro has one trigger. When it fires, the steps run from the start. The cooldown (0-3600 s) sets the minimum time between two runs.

TriggerWhen it firesOptions
When started manually (from the console)With the ▶ button in the console.-
When joining the serverWhen the bot enters the game.Also run on reconnect
On respawn / On deathWhen it respawns / dies.-
When a word appears in chatWhen a matching chat message arrives.Contains, exact, starts with, regex
On private messageWhen the bot receives a whisper (empty pattern = any).Match type and pattern
At a set intervalEvery N seconds.5-86400 s
At a set timeAt the chosen time (Turkey time).HH:MM and weekdays
On dimension changeWhen moving to the Overworld, Nether or End.Target dimension
When health drops / When hunger dropsWhen the value drops below the limit.1-20
When damagedWhen the bot takes damage.-
When a player joins / leaves / appears nearbyWhen a player joins, leaves or comes close.Player name (empty = anyone)
On teleportWhen the bot is teleported.-
At daytime / At nightWhen the in-game time changes.-
When rain starts / stopsWhen the weather changes.-
On level upWhen the bot's XP level goes up.-
When the server shows a formWhen the server opens a form (a login/register window) on screen, usually before the bot enters the world. 3.5 only.Form title (empty = any form) and match type
Macro triggers — AFKBot