Back to mods
Datapack Commands project artwork

Modrinth · Minecraft mod

Datapack Commands

Turn any datapack function into a real slash command!

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Datapack Commands release should I use?

Updated 26 days ago
Latest stable file 1.0.0
Game version 26.2
Loader Fabric

Datapack Commands 1.0.0 targets 26.2 with Fabric. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.

Where it goes

Is Datapack Commands required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does Datapack Commands 1.0.0 need?

1.0.0. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Datapack Commands without breaking your instance.

Built for Datapack Commands 1.0.0. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.0. It targets 26.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.0. It opens that exact file at the source.

About this project

What does Datapack Commands add?

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 <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 /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

Project description from Modrinth.

Pick your setup

Datapack Commands by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

37 available setups

Showing the newest 12 of 18 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Datapack Commands versions and loaders

4 of 4 releases match

Looking for an older file? The official Modrinth project page is in Resources.