Wiki 9Minecraft Wiki 9Minecraft

Create a Macro That Runs Multiple Commands in Sequence

Java EditionModGuides 4FAQ 20Related mods 48
DownloadMacro Keybind

Get the files on 9Minecraft

Contents (3)
  1. Setting Up Sequential Commands
  2. Steps
  3. Tips

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