Skip to content

Datapack Commands

Turn any datapack function into a real slash command!

by JacobA0225· Bumstronaut, zeeseaLibraryManagementUtility
FabricNeoForgeQuilt
Loaders
FabricNeoForgeQuilt
Downloads on Modrinth
1.9K
Followers on Modrinth
4
versions
6
Updated
September 16, 2026Sep 16
Published
in 2026
This is a library — other mods need it, and it adds nothing to the game by itself
Icon · swipe

At a glance

A library: other mods need it
Runs on Fabric, NeoForge and Quilt
For Minecraft 1.20.5–26.3
Server only — players don't need to install it
Latest version — 1.0.1-26.3 from September 16, 2026
License GPL-3.0-only — free
Where it's needed
In gamenot neededOn serverrequired

Install on the server only; players don't need it

Game versions1.20.5–26.3

Datapack Commands Logo

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 <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 /heal or /shop haste — no client mod needed.


`/cgen remove `

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

FAQ

How to install Datapack Commands?

Install Fabric for your Minecraft version, download Datapack Commands for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Datapack Commands support?

Datapack Commands has builds for Minecraft 1.20.5–26.3.

Is Datapack Commands needed on the server?

Server only — players don't need to install it

License and source
GNU General Public License v3.0 onlyfree to use and share; changes to the mod itself must be published under the same license
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More