
Data Command
Custom commands with just datapacks using this api.
About this Mod
Data Command

Data Command is a lightweight developer utility that allows datapacks to create fully custom commands with support for user input. Define commands in JSON, receive arguments inside functions, and build systems that would normally be impossible using vanilla datapacks alone.
✨ Why Data Command?
Minecraft datapacks have always been limited when it comes to player input. While /trigger can only accept integers, many systems require actual text input.
Data Command solves this by allowing datapacks to define their own commands and receive parsed arguments directly inside functions.
Examples include:
- Authentication systems
- Town and faction names
- Economy commands
- RPG classes
- Dialogue systems
- Server utilities
- Custom admin tools
🚀 Features
- Custom commands defined entirely through JSON.
- String arguments.
- Integer arguments.
- Boolean arguments.
- Automatic argument parsing.
- Datapack-friendly integration.
- Lightweight and dependency-focused design.
- Designed specifically for datapack developers.
📖 Example
Folder structure:
/data/example/command/town.json/data/example/function/create_town.mcfunction
Command definition:
{
"function": "example:create_town",
"permission_level": 0,
"args": [
{
"name": "name",
"type": "String",
"required": true
},
{
"name": "max_members",
"type": "Integer",
"required": false,
"default": 20
},
{
"name": "public",
"type": "Boolean",
"required": false,
"default": true
}
]
}
When a player executes:
/town TinyVille 50 true
Data Command runs:
example:create_town
with the following macros:
{
"name": "TinyVille",
"max_members": 50,
"public": true
}
⚠️ Beta Status
This is the first beta release of Data Command.
Known Issues
- Invalid argument errors may be unclear.
- Reloading datapacks may occasionally require reconnecting.
Please report any bugs you encounter.
❓ FAQ
Is this a datapack?
No. Data Command is a mod/library intended to be used by datapacks.
Do players need to install it?
Only the server needs Data Command unless a datapack specifically requires client-side functionality.
Can I use it in my own datapack?
Yes. Data Command is designed to be used as a dependency for other projects.
Is the API stable?
Not yet. As this is an early beta release, some APIs may change.
👾 Feedback
Found a bug or have a feature request?
- Report issues on GitHub.
- Share feedback and suggestions.
- Help improve future releases of Data Command.
Available Versions
How to Install Data Command on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.11).
Install Mod
Open the mod browser in the dashboard and search for "Data Command". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.11
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Data Command server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.
Is Data Command compatible with fabric?
Data Command officially supports fabric for Minecraft 1.21.11. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Data Command – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Data Command consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Data Command with just one click on your server.