



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

Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.20.6
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Verified by MCModsHub
- Ships as autokey-1.1.2+1.20.6.jar — drop this file into the mods folder
- Download size: 161 KB
- Download link checked 30 Aug 2026 — working
These come from our own check of the pack file, not from the source page.
