Run macros on events, on join and on a schedule
Start a macro from a game event, when an account joins or at a clock time, and set how it loops.
Event macros
Switch Start to On Events and the macro runs whenever one of the events you tick under Fires On happens on an account. Event macros need Tier 1.
| Event | Fires when |
|---|---|
| On Death, On Respawn | The account dies, or respawns. |
| On Reconnect | The account joins again after it was connected before. |
| On Chat Message, On Chat Keywords | A message contains your text, or any of up to 20 keywords. Capitals and colours are ignored. |
| Inventory Full | No slot is free. It fires once, then again after a slot was freed. |
| On Low Health, On Low Hunger | Health or food drops below your number, 1 to 20. |
| On Full Health | Health is full again. |
| On Disconnect, On Kicked | The account leaves the server, or is kicked. |
| On Item Pickup, On Damage Taken | The account picks up an item, or takes damage. |
| On Low Tool Durability | The tool in the account's hand drops to the percent you set in Below Durability, 10 by default. It fires once, then again after the hand holds a fresh or repaired tool. The percent is in %var:durability%. To swap tools inside a mining loop, use the Held tool durability % condition in an If step instead. |
| On World Change, On Server Transfer | The account changes world, or the server moves it to another server. |
| Nearby Enemy | Tier 3. A player who is not on your Friends list comes near, like Raid Alerts. |
| Block Break | Tier 2. Blocks break near the account, by the same rules as Spawner Sentry, with its own count and block list. |
| Region Reboot Start, Region Reboot End | DonutSMP only. Start fires at the reboot warning or when the account is moved to the lobby. End fires when it is back in its region. Steps pause while it waits in the lobby. |
| On Player Join, On Player Leave | A player you name joins or leaves, as seen in the tab list. Put up to 20 names in Player Names; the name is in %var:player%. Nothing fires in the first 10 seconds after the account joins or changes server, and on servers split into shards it only sees players on the same one. |
| On Effect Gained, On Effect Lost, On Effect Running Low | A potion effect starts, ends, or has a set number of seconds left (Seconds Left, 10 by default). Name the effects in Effect Names, or leave it blank for any effect; the effect is in %var:effect%. Drinking more of an effect you already have is not a new one, and nothing fires as gained in the first 10 seconds after the account joins, respawns or changes server. |
| On Sound | The server plays a sound you name near the account. Put up to 20 Java sound ids in Sound Names, like entity.player.levelup or block.note_block.pling (the names /playsound suggests), and set Max Distance in blocks, 0 for any distance. The sound is in %var:sound%. Servers never send the sounds the account makes itself, music or cave sounds, so those cannot trigger it. |
| On Screen Text | A title, subtitle or action bar shows text, or only text with your words in Screen Text Contains. On Chat Message does not see these. The same text shown again counts once until it was gone for 3 seconds. The text is in %var:screen.text%. |
| On Window Open, On Sign Open, On Dialog Open | The server opens a chest or menu window, a sign editor (Java only), or a server dialog or Bedrock form. Put words in Window Title Contains or Dialog Title Contains to react to one menu only. Windows your own macros open count too. The title is in %var:window% or %var:dialog%. |
| On Teleport | The server moves the account at least Min Distance blocks (8 by default) in one jump, like /spawn, /home or a staff teleport. Nothing fires in the first 5 seconds after joining, respawning or changing world. Where it landed is in %var:teleport.x%, %var:teleport.y%, %var:teleport.z%. |
| On Stop Moving | The account was moving and now stays within one block for Seconds Still (10 by default), for example a stuck walk or a finished ride. It fires again after the account moves and stops again. |
| On Player Nearby, On Player Gone | Tier 3. A player comes within range of the account, or leaves it. Put names or /regex/ in Player Names, or leave it blank for anyone except your own accounts, and set Within Blocks (0 for anyone the account can see). Players already there when you turn it on, or right after a join or teleport, do not count. The name is in %var:player%. |
| On Mob Nearby, On Mob Gone | A mob you name, like creeper or zombie, comes within range, or one that was in range leaves, dies or despawns. Mob names are required. The mob is in %var:entity.name%. |
| On Block Nearby | A block you name, like spawner or tnt (or a /regex/ like /_ore$/), is within Within Blocks of the account (16 by default, up to 32), checked every 2 seconds: someone places one, or the account walks up to one. It fires again after none are left in range. The block is in %var:block.name%, where it is in %var:block.x%, %var:block.y%, %var:block.z%. |
| On Day, On Night | The world turns to day or night. |
| On Signal | Another of your accounts sends a signal with this name, see Send Signal. |
Set the cooldown
Cooldown is the shortest gap between two runs on one account, 5000 ms by default.
Arm it
Pick the accounts and save. The macro is listed under Active Event Macros on the Activity tab, with a switch for every account. Later edits reach those accounts by themselves a few seconds after you stop editing.
Run a macro when an account joins
Open Settings → Connection and pick the macro under Join Macro. It runs once for every account each time it connects, after its Delay (seconds). Loop Macro repeats it a number of times, or with Loop Forever until the account disconnects.
One account can have its own join macro under Join Action in its Account Details. A join macro after a reconnect replaces the earlier run, it never doubles. The join command comes first, see Run a command on join.
Scheduled Macros
Scheduled Macros on the Activity tab runs a saved macro at a clock time, also while the dashboard is closed. Click New Schedule.
| Field | What to set |
|---|---|
| Macro, Accounts | The macro and up to 100 accounts. An account that is offline at that moment is skipped. |
| Timezone | Search by city, country or UTC offset. |
| Start | A date and time, or a quick pick like in 15 minutes. |
| Repeat every | Minutes, hours or days. 0 runs once. |
| Total runs | 1 to 1000, or unlimited. |
| Stop macro after | How long after each start the macro is stopped. 0 lets it finish. |
| No more runs after | An optional end date. |
You can keep 50 schedules. A run that was missed by more than six hours is skipped. The assistant can fill the form in from a sentence like “run this every day at 7pm for 2 hours”.
Loops and stagger
| Setting | What it does |
|---|---|
| Loops | Count runs the steps that many times, up to 1000. Forever runs until you stop it. |
| Between Loops | The wait between two loops, in seconds. |
| Stagger Accounts | The seconds between starting each account when you run on several. |
| Stop on Error | Ends the run when a step fails. Off means log it and carry on. |
These settings are saved with the macro. For a routine at night only, use On Events with On Night, or put Wait For Time first.
Stopping, and what stays on
Every run on the Activity tab has its own Stop, and Stop Active Macros stops them all. A run that is going when the account disconnects pauses and carries on once it is back online. A Sneak or Jump that a step turned on stays on after the run, and a Disconnect step keeps the account offline until you click Connect or a Reconnect step later in the macro brings it back.
Check the troubleshooting guide or return to all guides.