← Назад к ресурсам

Autokey

Simple, client side scripting for Minecraft.

Modrinth game-mechanics utility

Описание

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](https://modrinth.com/mod/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](https://gitlab.com/tobilinz/autokey/-/snippets) of this project on GitLab. ## Suggestions [Suggest features here.](https://gitlab.com/tobilinz/autokey/-/issues) ## GUI ## Example projects ### Chat calculator ![demo_calc](https://cdn.modrinth.com/data/Km5xH0YL/images/aa3a125ab72f609f0603cbbb694338387ea36136.gif) Code: ~~~akey 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](https://cdn.modrinth.com/data/Km5xH0YL/images/92f75129ccfcda7e849964665fd80afce4b33702.gif)