Skip to content
Jam The Adventurer edited this page Nov 24, 2021 · 4 revisions

Macros allow you to execute Forgehax commands (and any other) in a key press. AKA binds. Very handy.

.macros - base command

.macros list - show all macros

.macros remove --name <text> - removes macro with the given title Example: --name "Who uses names with spaces"

.macros remove --key <key> - removes macro with this control key. Example: --key f

Note: You can combine --name <name> --key <key>. Currently it'd just delete two macros, one by name and one by key

.macros exec <name> - manually execute macro by name

.bindmacro <key> <command string> --name <macro name> - Bind a string of commands to key. You better always name your macros. For macros with multiple commands: use ;. With whitespaces: enclose in quotes: " or '

Commands are always assumed to be Forgehax commands, you don't need the . command prefix. If you want to use it for chat or other game mods, look at say command

Examples:

.bindmacro f6 "spamservice reset;chatbot en 1 --name chatbot - completely resets ChatBot's state and enables it

.bindmacro f7 "say /togglechatmsgs;say /toggledeathmsgs;say /toggleconnectionmsgs" --name togglechats - 3-in-1

.bindmacro f8 "say -l '#goto 0,0'" --name gotospawn - control another mod (Baritone) to go to 0,0. Note the double/single-quote usage

Clone this wiki locally