Minecraft Java Edition 1.20.3β26.1+ | Multiplayer-Safe | Pure Datapack
Warning
This repository is archived.
macroEngine has been superseded by dataLib β a modular, multi-version datapack library under the runtoolkit organization. No further updates will be made here.
Current version: v5.1.0
π‘οΈ This is a Minecraft Datapack β it contains no executables or scripts outside of
.mcfunctionfiles. Some antivirus software may flag.mcfunctionfiles as suspicious due to macro-like syntax. This is a false positive. The pack has been scanned on VirusTotal and returned clean. Only download from this official repository. Do not trust redistributed or repackaged versions from third-party sources.
Full API reference, guides, and examples are available in the GitHub Wiki.
| Page | Description |
|---|---|
| Installation | How to install and load the datapack |
| Storage Architecture | macro:engine, macro:input, macro:output layout |
| Overlay System | Multi-version overlay structure |
| Admin Guide | macro.admin tag, permissions, debug tools |
| Changelog | Full version history |
1. Place macroEngine-v5.1.0 into <world>/datapacks/
2. /reload
3. /function ame_load:load/yes
4. /tag @s add macro.admin
macro:engine (persistent data)
βββ global
β βββ version: "v5.1.0"
β βββ tick: <int>
βββ players
β βββ Steve { coins:150, level:5, xp:2300, online:1b, ... }
βββ queue
β βββ [{func:"mypack:event/end", delay:100}]
βββ cooldowns
β βββ Steve { fireball: 2460, dash: 1870 } β expiry ticks
βββ events
βββ on_join: [{func:"mypack:welcome"}, {func:"mypack:xp_bonus"}]
macro:input (sending data to a function)
macro:output (receiving results from a function)
Used with execute if predicate <id>.
| Predicate | Description |
|---|---|
macro:is_survival |
Player is in survival mode |
macro:is_creative |
Player is in creative mode |
macro:has_empty_mainhand |
Main hand is empty |
macro:is_full_health |
Player is at full health (20 HP) |
macro:is_sneaking |
Player is sneaking |
macro:is_sprinting |
Player is sprinting |
macro:is_burning |
Player is on fire |
macro:is_on_ground |
Player is on the ground |
macro:is_daytime |
Daytime (0β12000 ticks) |
macro:is_raining |
It is raining |
macro:is_thundering |
There is a thunderstorm |
macro:in_overworld |
Player is in the Overworld |
macro:in_nether |
Player is in the Nether |
macro:in_end |
Player is in the End |
Full reference: Predicate Reference
Repository: https://github.com/LanternMC/load
License: BSD 0-Clause (public domain)
Provides deterministic load order, version tracking, and pre/load/post-load hooks.
# Check if macroEngine is loaded
execute if score macroEngine load.status matches 1.. run say macroEngine is loaded
# Get version (major*10000 + minor*100 + patch β v5.1.0 = 50000)
scoreboard players get macroEngine load.statusRepository: https://github.com/CMDred/StringLib
License: MIT
Bundled under the stringlib namespace. Exposed via macro:core/lib/string/*.
| Function | Description |
|---|---|
lib/string/concat |
Join a string array |
lib/string/find |
Find substring index |
lib/string/replace |
Replace substring |
lib/string/split |
Split by separator |
lib/string/insert |
Insert at index |
lib/string/to_lowercase |
Lowercase (AβZ, fast) |
lib/string/to_uppercase |
Uppercase (aβz, fast) |
lib/string/to_number |
String β numeric NBT |
lib/string/to_string |
Value β string |
All functions read from macro:input and write to macro:output string.result.
data modify storage macro:input string set value "Hello World"
data modify storage macro:input find set value "World"
data modify storage macro:input replace set value "Everyone"
function macro:core/lib/string/replace
# macro:output string.result β "Hello Everyone"| Module | Wiki |
|---|---|
| π Cooldown | API-Cooldown |
| π‘ Event | API-Event |
| π³οΈ Flag & State | API-Flag-State |
| πͺ Hook | API-Hook |
| π±οΈ Interaction | API-Interaction |
| π Inventory | API-Inventory |
| π Library | API-Library |
| π’ Math | API-Math |
| π Permission | API-Permission |
| π€ Player | API-Player |
| π€ String | API-String |
| πͺ Wand | API-Wand |
| π World & Geo | API-World-Geo |
Advanced Macro Engine v5.1.0 | MC Java 1.20.3β26.1+ | Pure Datapack