creating a macro - Anxietie/Movement-Macros GitHub Wiki
To get started, there needs to be an actual JSON file that the mod can read from to create the macro. In the config directory (this is usually .minecraft/config
), a folder will be created called movmacro
. This is where all files related to the mod need to be stored.
The actual file name of the macro doesn't matter as this will be specified in the file itself. Every macro must specify the fields: inputs
1, name
2, enabled
3, and trigger
4.
JSON Format:
{
"inputs": [],
"name": "<name of macro>",
"enabled": [true, false],
"trigger": "<input>"
}
All macros must specify macro_type
[1] The inputs array is where all the individual input JsonObjects
go. These are created by the user and get run in sequence when the parent macro is run
[2] The name of the macro will essentially be its id. No two enabled macros can have the same name. Acceptable names may include any characters
[3] Disabled macros will be skipped during loading
[4] The trigger is the keybind to run the macro. This must be of the form "<key>"
where key
is a keyboard input (not including keypad, left/right keys i.e. left alt or right alt, num lock, caps lock, scroll lock, and print screen). 'enter', 'space', 'f11', '0', 'a', 'left' are examples of valid triggers. Triggers don't have to be unique (i.e. multiple enabled macros can have the same keybind, however, they won't function correctly)