Command Macros: Automate Repetitive Minecraft Commands with a Single Keypress

Command Macros lets you bind any Minecraft command to a keyboard key for instant execution, saving time and effort. Discover how to automate your gameplay today!

Download cmdkeybind for Minecraft 1.20.4, 1.20.2, 1.20.1, 1.19.4, 1.19.3, 1.19.2

Original name: cmdkeybind

Minecraft: 1.14.4, 1.15, 1.15-Snapshot, 1.16, 1.16-Snapshot, 1.16.2, 1.16.3, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 1.20.4

Loaders: Fabric

FileVersionLoaderSize
cmdkeybind-1.3.2.jar1.14.4Fabric591 КБDownload
cmdkeybind-1.0.0.jar1.14.4Fabric473 КБDownload
cmdkeybind-1.3.2.jar1.14.4Fabric591 КБDownload
cmdkeybind-1.3.1.jar1.14.4Fabric526 КБDownload
cmdkeybind-1.3.0.jar1.14.4Fabric515 КБDownload
cmdkeybind-1.2.1.jar1.14.4Fabric506 КБDownload
cmdkeybind-1.2.0.jar1.14.4Fabric483 КБDownload
cmdkeybind-1.1.0.jar1.14.4Fabric477 КБDownload
cmdkeybind-1.0.1.jar1.14.4Fabric475 КБDownload
cmdkeybind-1.4.1.jar1.15Fabric593 КБDownload
cmdkeybind-1.4.0.jar1.15-SnapshotFabric585 КБDownload
cmdkeybind-1.4.3-1.16.jar1.16Fabric681 КБDownload
cmdkeybind-1.4.2.jar1.16-SnapshotFabric617 КБDownload
cmdkeybind-1.4.4-1.16.jar1.16.2Fabric692 КБDownload
cmdkeybind-1.4.5-1.16.jar1.16.2Fabric694 КБDownload
cmdkeybind-1.5.1-1.16.jar1.16.3Fabric695 КБDownload
cmdkeybind-1.5.2-1.16.jar1.16.3Fabric697 КБDownload
cmdkeybind-1.5.0-1.16.jar1.16.3Fabric695 КБDownload
cmdkeybind-1.5.2-1.17.jar1.17.1Fabric1.2 МБDownload
cmdkeybind-1.5.2-1.18.jar1.18Fabric391 КБDownload
cmdkeybind-1.5.3-1.18.jar1.18.1Fabric392 КБDownload
cmdkeybind-1.5.4-1.18.jar1.18.2Fabric400 КБDownload
cmdkeybind-1.5.4-1.19.jar1.19Fabric401 КБDownload
cmdkeybind-1.6.0-1.19.jar1.19Fabric414 КБDownload
cmdkeybind-1.6.0-1.19.X.jar1.19.2Fabric414 КБDownload
cmdkeybind-1.6.0-1.19.3.jar1.19.3Fabric418 КБDownload
cmdkeybind-1.6.2-1.19.3.jar1.19.3Fabric418 КБDownload
cmdkeybind-1.6.1-1.19.4.jar1.19.4Fabric417 КБDownload
cmdkeybind-1.6.2-1.19.4.jar1.19.4Fabric417 КБDownload
cmdkeybind-1.6.2-1.20.jar1.20.1Fabric417 КБDownload
cmdkeybind-1.6.3-1.20.jar1.20.1Fabric417 КБDownload
cmdkeybind-1.6.3-1.20.2.jar1.20.2Fabric414 КБDownload
cmdkeybind-1.6.3-1.20.4.jar1.20.4Fabric416 КБDownload

Command Macros

Typing the same Minecraft commands over and over can quickly drain the fun from building, managing a server, or tweaking your single-player world. Command Macros eliminates that tedium by letting you assign any command to a simple keypress. Whether you need to switch gamemodes, teleport to a base, or run a complex sequence of instructions, this add-on turns repetitive typing into a single button push. No more fumbling through chat history or mistyping long commands in the heat of the moment.

Command Macros configuration screen in Minecraft showing keybind assignment and macro type selection for automated command execution

Why Command Macros for Minecraft Is a Game-Changer

Minecraft’s command system is powerful, but accessing it through the chat window breaks immersion and slows you down. Command Macros for Minecraft bridges that gap by integrating directly with the game’s keybind system. Once you set up a macro, it works instantly—no need to restart the game or reload resources. The mod listens for your configured keypress and fires off the associated command immediately, whether you are in creative mode testing redstone contraptions or managing a survival server.

This add-on is especially valuable for mapmakers, server administrators, and players who use utility commands frequently. Instead of typing /home or /spawn every few minutes, you can bind them to unused keys and travel with a tap. The flexibility extends to any command, including those from other mods, so your entire toolkit becomes accessible at your fingertips.

Key Features That Set Command Macros Apart

Command Macros goes beyond simple keybinding. It offers a rich set of macro types that adapt to different playstyles and needs. Here is what you can expect:

  • Instant execution: Changes take effect the moment you edit a macro, with no need to restart the game.
  • Multiple commands per key: Bind several macros to the same key to run a sequence of commands simultaneously.
  • Delayed Macro: Add a configurable delay between pressing the key and the command firing, perfect for timed redstone interactions.
  • Repeating Macro: Hold down a key to continuously execute a command, with adjustable repeat delay.
  • Toggled Repeating: Press once to start repeating, press again to stop—ideal for ongoing effects like particle trails.
  • Run N Times: Execute a command a specific number of times with a single keypress, with a custom delay between each run.
  • Single Use Macro: The command triggers only once per keypress, preventing accidental spam.
  • Display Only Macro: Opens the chat window and types the command without sending it, giving you a chance to edit before execution.

How to Install Command Macros on Fabric

Command Macros is built for the Fabric mod loader and supports modern Minecraft versions, including 1.20.1, 1.20.4, and 1.21. To get started, you will need a working Fabric installation with the Fabric API. If you are new to modding, the process is straightforward.

Step-by-Step Installation Guide

First, ensure you have the correct version of Fabric Loader installed for your Minecraft version. Then, place the Fabric API jar in your mods folder. After that, you can download Command Macros from a trusted mod repository. The file will be a .jar that you simply drop into the same mods folder. Launch the game with the Fabric profile, and the mod will be active.

For players who prefer a streamlined experience, the foxygame.net launcher offers a one-click install option that automatically places Command Macros and all its dependencies into the correct directories, eliminating manual file management. Once installed, you can access the configuration screen through Mod Menu, by typing /Cmdkeybinds showconfig, or by pressing the dedicated keybind (unbound by default, so you will need to set it in the controls menu).

Configuring Your First Macro

Setting up a macro is intuitive. Open the configuration screen and click “Add Macro.” You will see fields for the command, the keybind, and the macro type. Type any valid Minecraft command—for example, /gamemode creative—then click the keybind box and press the key you want to use. Choose the macro type from the dropdown. The moment you save, the macro is active. You can test it immediately without leaving the world.

If you want to run multiple commands with one key, simply create additional macros and assign them the same keybind. They will execute in the order they appear in the list. This is perfect for setting up a “builder’s kit” that gives you a set of tools, switches your gamemode, and sets the time to day—all with one press.

Advanced Macro Types for Every Situation

The variety of macro types makes Command Macros adaptable to almost any scenario. The delayed macro is a lifesaver for redstone engineers who need to trigger a command exactly three seconds after a mechanism starts. The repeating and toggled repeating macros are excellent for continuous effects, like keeping a chunk loaded or maintaining a potion effect. The Run N Times macro, introduced in version 1.6.0, is perfect for spawning a precise number of entities or giving yourself a stack of items without holding the key. The display-only macro adds a layer of safety, letting you review a command before it runs—great for server admins who need to double-check a ban or whitelist command.

Seamless Integration with Your Modded Setup

Command Macros works harmoniously with other Fabric mods. If you use Mod Menu, the configuration screen is accessible directly from the mod list. The keybinds also appear in the standard Minecraft controls menu, so you can adjust them alongside your vanilla keybindings. The mod does not introduce any new blocks or items, keeping your world file clean and compatible with vanilla clients if you ever need to switch back. For those who manage multiple modded instances, the foxygame.net launcher can keep Command Macros updated automatically across all your profiles, ensuring you always have the latest macro types and bug fixes without manual downloads.

Practical Use Cases for Every Player

Command Macros shines in countless situations. Survival players can bind /home or /back to navigate quickly. Builders can switch between creative and spectator modes without opening chat. Server admins can assign moderation commands like /kick or /mute to function keys for rapid response. Mapmakers can chain complex sequences of /fill and /setblock commands to a single key, dramatically speeding up construction. Even casual players benefit from binding weather or time commands to avoid interrupting gameplay.

Getting the Most Out of Command Macros

To truly master Command Macros, experiment with combining different macro types on the same key. For example, bind a repeating macro that gives you a speed effect and a single-use macro that clears the effect, both on the same key. Press once to activate, press again to deactivate. The possibilities are limited only by your imagination and knowledge of Minecraft commands. Remember that you can always download Command Macros from reputable mod sites, and the installation process is identical across all supported Minecraft versions. With a little creativity, you will wonder how you ever played without it.

===ARTICLE===