All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Autokey

Autokey

by cubic • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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

Suggest features here.

GUI

Example projects

Chat calculator

demo_calc

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

demo_build

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:

  1. 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).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded Autokey file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.20.6
Fabric
last yr. 1
1.20.5
Fabric
last yr. 1
1.20.4
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.2
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.18.2
Fabric
last yr. 1
1.19.2
Fabric
last yr. 1
1.19
Fabric
last yr. 1
1.19.1
Fabric
last yr. 1
1.18.2
Fabric
last yr. 1
1.17.1
Fabric
last yr. 1
1.17.1
Fabric
last yr. 1
1.18.2
Fabric
last yr. 1
Updated to 1.20.6
Updated to 1.20.5
Updated to 1.20.4
Minor changes to api and internals (again). Added printCommand function.
Minor changes to api and internals (again). Added printCommand function.
Update to 1.20.1 with minor changes to internals.
Added "Only allow client message" to the settings screen. Turning this option off will trigger the script even if the message (as long as it starts with the specified prefix) in chat was not sent by the player.

A lot of internal and breaking API changes were made to make the mod more modular.
Added "Only allow client message" to the settings screen. Turning this option off will trigger the script even if the message (as long as it starts with the specified prefix) in chat was not sent by the player.

A lot of internal and breaking API changes were made to make the mod more modular.
Added "Only allow client message" to the settings screen. Turning this option off will trigger the script even if the message (as long as it starts with the specified prefix) in chat was not sent by the player.

A lot of internal and breaking API changes were made to make the mod more modular.
[0.9.1+1.19.1] Autokey by cubic on Jul 28, 2022
Download
Update to 1.19.1.
[0.9.1+1.18.2] Autokey by cubic on Apr 02, 2022
Download
This version contains a small optimization and a bug fix.

### Fixes:
  • Fixed unnecessary variable allocations when running aasm that was converted from akey
  • Fixed return in akey acting differently from a normal function return
  • Changed enum names to be upper case only
[0.9.1+1.17.1] Autokey by cubic on Apr 02, 2022
Download
This version contains a small optimization and a bug fix.

### Fixes:
  • Fixed unnecessary variable allocations when running aasm that was converted from akey
  • Fixed return in akey acting differently from a normal function return
  • Changed enum names to be upper case only
[0.9.0+1.17.1] Autokey by cubic on Mar 30, 2022
Download
First release.
[0.9.0+1.18.2] Autokey by cubic on Mar 30, 2022
Download
First release.
Autokey Icon
Download Autokey
Select game version
Select platform