Autokey is a free and open-source fabric mod for Minecraft that aims to provide a simple and easy-to-understand scripting interface.
This mod allows you to write and use scripts or macros that can press keys, send chat messages, do calculations and much more!
📥 Installation
Just drop the mod and the Fabric API into your mods folder.
Press B to open the main menu.
📝 Scripts
You can code your own scripts or download some from the snippets section of this project on GitLab.
Suggestions
GUI
Example projects
Chat calculator

Code:
parts = split(message, " ")
firstNumber = getArrayElementAt(parts, 1)
operator = getArrayElementAt(parts, 2)
secondNumber = getArrayElementAt(parts, 3)
result = "invalid"
if (operator == "+")
{
result = parseDouble(firstNumber) + parseDouble(secondNumber)
}
if (operator == "-")
{
result = parseDouble(firstNumber) - parseDouble(secondNumber)
}
if (operator == "*")
{
result = parseDouble(firstNumber) * parseDouble(secondNumber)
}
if (operator == "/")
{
result = parseDouble(firstNumber) / parseDouble(secondNumber)
}
print(firstNumber _ " " _ operator _ " " _ secondNumber _ " = " _ toString(result))
Sugar cane farm builder

How to Install Autokey (Mod)
Autokey by cubic is verified for Fabric across Minecraft versions 1.17.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.20.1, 1.20.2, 1.20.4 (latest release: 1.1.2+1.20.6, file size: 161 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.17.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.20.1, 1.20.2, 1.20.4) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Autokey file into your Minecraft
.minecraft/modsfolder and launch the game.
A lot of internal and breaking API changes were made to make the mod more modular.
A lot of internal and breaking API changes were made to make the mod more modular.
A lot of internal and breaking API changes were made to make the mod more modular.
### Fixes:
- Fixed unnecessary variable allocations when running aasm that was converted from akey
- Fixed
returnin akey acting differently from a normal function return - Changed enum names to be upper case only
### Fixes:
- Fixed unnecessary variable allocations when running aasm that was converted from akey
- Fixed
returnin akey acting differently from a normal function return - Changed enum names to be upper case only