Datapack Commands
ModTurn any datapack function into a real slash command!
Type
Mod
Modrinth Downloads
1,782
Modrinth ID
cdAGu5FV
Last Updated
Aug 15, 2026
Description

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_hastePlayers can now type /heal or /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
Compatibility
Mod Loaders
Game Versions
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Screenshots
Similar Mods
Pepsi's Easy Multi Item Sorter
Making multi-item sorters has never been easier
Cobblemon No Waystones
Removes Waystones and FWaystones from naturally generated Cobblemon Structures
Gems & Jewels - Armor & Tools
An add-on to the Gems & Jewels mod that adds armor and tools for gemstones
Mine Chess
Working Chess in Minecraft
Apotheosis Spore (Apoth Boss Compat)
This mod allows Spore Bosses (Calamity) to drop equipment.
Faster Stairs
This mod makes you faster on stairs!