Download Keys4Macros — Minecraft Mods — MetaMods
Keys4Macros

Keys4Macros

Active

Downloads

1

Last update

2 years ago

Versions

1.16.1 — 1.19.2
Client
Forge
Utils

Keys4Macros

A modification that allows executing commands via keystrokes

Main Features

This mod enables custom keyboard keys to trigger commands in the game. It operates solely on the client side and functions correctly in both single-player and multiplayer server environments.

When you press an assigned key, the corresponding command is sent to the chat and processed by the server in the standard manner. There's no limit to the number of created macros - everything is configurable through the configuration file.

Creating Macros

To access the configuration file, navigate to the Forge mod list, select Keys4Macros, and click the Config button. Then click Open config to access the settings.

Each [[Macros.Macro]] block defines an individual macro. You can duplicate these blocks as many times as needed.

  • key - the numeric code of the key you want to use. The list of codes can be found on the official GLFW website
  • command - the command that executes when the key is pressed (including the '/' character)

After completing the configuration, press the Reload Config button or restart the game to apply the changes.

Configuration Example

The following example configures numpad keys 0-3 for switching between game modes:

[Macros]
    [[Macros.Macro]]
        key = 320
        command = "/gamemode adventure"
    [[Macros.Macro]]
        key = 321
        command = "/gamemode survival"
    [[Macros.Macro]]
        key = 322
        command = "/gamemode creative"
    [[Macros.Macro]]
        key = 323
        command = "/gamemode spectator"
Project members
DenisD3D

DenisD3D

Developer

DenisD3D_

DenisD3D_

Created: 4 Apr 2021

ID: 12217