Wiki 9Minecraft Wiki 9Minecraft
Macro Keybind Wiki › Guides › Create a Macro That Runs Multiple Commands in Sequence

Create a Macro That Runs Multiple Commands in Sequence

Setting Up Sequential Commands

Macros can execute multiple chat commands one after another by using the pipe character (|) as a separator. This is useful for complex actions like teleporting, changing game modes, or sending multiple chat messages.

Steps

1. Open the keybind menu by pressing [SNEAK KEY]+GRAVE

2. Press the key you want to bind (or click it on the on-screen keyboard)

3. In the command field, enter your commands separated by pipe characters. For example:

`

/say Hello everyone!

/say I'm using macros!

/say This is awesome

`

becomes:

`

/say Hello everyone!|/say I'm using macros!|/say This is awesome

`

4. Press ENTER to save

Tips

  • Each command must start with /
  • Commands execute in order from left to right
  • This works with any chat command your server supports
  • You can chain server commands, plugin commands, or mod commands together