Mod
Datapack Commands
No reviews yet
A Datapack Tool that allows datapacks to have custom commands
Neoforge is a fork of the Minecraft Forge available for versions 1.20.1+ of Minecraft. Many Forge mods are compatible with Neoforge and vice versa.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Quilt is a fork of the Fabric mod loader. Many Fabric mods are compatible with Quilt and vice versa.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description

A Fabric mod for Minecraft 1.21.11 that lets datapack creators create custom slash commands that execute datapack functions. Commands are registered at runtime, persist across restarts, and show up in tab completion for all players — no server restart required.
How to Use
All management is done through the /cgen command, which requires operator level 4.
Creating a command
/cgen create <commandname> <namespace:function>
(Subcommands are also possible)
/cgen create "<commandname> <arg> <etc>" <namespace:function>
Registers a new /<commandname> that runs the specified datapack function when used. The command is available to all players immediately. If using a subcommand make sure to add a " around the main command and subcommand
Example:
/cgen create ""spawn zombie"" example:spawn_zombie
Players can now run /spawn zombie and it will execute example:spawn_zombie.
Removing a command
/cgen remove <commandname>
Unregisters the command immediately. Tab complete will suggest your registered commands after typing /cgen remove.
Example:
/cgen remove spawn
Listing commands
/cgen list
Shows all currently registered commands and the functions they map to.
Example output:
Registered commands:
/fasterpathsload -> fasterpaths:load
/heal -> utils:heal_player
Feedback toggle (default is off)
/cgen feedback on
/cgen feedback off
Controls whether the "Executed function: ..." message appears in chat when a player runs a custom command. Defaults to off. This setting persists across restarts.
Check
/cgen check
Returns 1 if the mod is running correctly. Useful for datapacks that want to verify that the mod is loaded.
Notes
- Commands are saved to
<world folder>/datapackcommands.jsonand automatically re-registered on server start. - The datapack function itself can still send its own chat messages (e.g. via
tellraw) regardless of the feedback setting. - Command names must be alphanumeric with underscores, up to 32 characters.
- Function names must follow the standard
namespace:pathformat.

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
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers