Marker Command Engine is a lightweight and high-performance command execution engine for Minecraft datapacks. It allows you to run commands directly from storage using a clean marker entity + command block technique.
- Execute commands stored in
storage mce:cmd - Very low performance impact
- Simple and clean API
- Clean marker entity method
- Supports Minecraft 1.21+ (
pack_format: 57) /Support
- Download or clone this repository.
- Put the
marker-command-enginefolder into your world'sdatapacksfolder. - Run
/reloadin your Minecraft world. - You should see a successful load message in chat.
# Store the command
data modify storage mce:cmd Command set value "say Hello World!"
# Execute it
function mce:api/runfunction mce:api/help| Function | Description |
|---|---|
mce:api/run |
Executes the command stored in storage |
mce:api/help |
Shows help information |
mce:core/load |
Runs when datapack is loaded |
mce:core/reset |
Cleans up marker and command block |
- Marker: Tagged with
Tags:["mce.cmd"] - Command Block: Temporarily placed at
0 -64 0and removed immediately - Reset operation runs automatically after 3 ticks
Storage structure:
{
"Command": "your command here"
}This project is licensed under the MIT License — you are free to use, modify, and distribute.
Made with ❤️ for the Minecraft Datapack Community