
Datapack Commands
Turn any datapack function into a real slash command!
Screenshots


About this Mod

Datapack Commands
Your commands, your rules.
Turn any datapack function into a real slash command — no client mod, no restart, no hassle.
Players get tab completion out of the box. You stay in control.
What it does
/cgen create heal utils:heal_player — that's it.
Players can now type /heal and your datapack function runs. Instantly. For everyone.
Commands persist across restarts, show up in tab completion, and can be removed just as easily.
Commands
/cgen create <name> <namespace:function>
Registers a new slash command that runs a datapack function.
/cgen create heal utils:heal_player
/cgen create "shop haste" mypack:give_haste
Players can now type
/healor/shop haste— no client mod needed.
/cgen remove <name>
Unregisters a command immediately. Gone from tab completion too.
/cgen remove heal
/cgen list
Shows all registered commands and what they map to.
Registered commands:
/heal -> utils:heal_player
/shop -> mypack:open_shop
/cgen feedback <on|off>
Toggle whether "Executed function: ..." appears in chat when a command is used.
Off by default. Persists across restarts.
/cgen check
Returns 1 if the mod is loaded. Use this in your datapack to verify Datapack Commands is running.
Good to know
- Requires operator level 4 to use
/cgen - Registered players (without OP) can use the created commands freely
- Commands are saved to
"world"/datapackcommands.json - Command names: alphanumeric + underscores, max 32 characters
- This should pair well with Filiment
Server-side only — players don't need to install anything.
This Mod may be used in modpacks and as dependencies for any datapacks/mods
Available Versions
How to Install Datapack Commands 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 (26.2).
Install Mod
Open the mod browser in the dashboard and search for "Datapack Commands". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.2, 26.2-snapshot-7, 26.2-snapshot-6 (+21 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Datapack Commands 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 (26.2). You can switch loaders with one click in the panel.
Is Datapack Commands compatible with fabric and neoforge and quilt?
Datapack Commands officially supports fabric, neoforge, quilt for Minecraft 26.2, 26.2-snapshot-7, 26.2-snapshot-6. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Datapack Commands – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Datapack Commands 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 Datapack Commands with just one click on your server.