Back to mods
Datapack Commands project artwork

CurseForge · Minecraft mod

Datapack Commands

A Datapack Tool that allows datapacks to have custom commands

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

Quick answer

Which Datapack Commands release matches 26.1.2 Fabric?

Updated 7 months ago
Best match for your filters datapackcommands-1.0.0.jar
Game version 26.1, 26.1.1, 26.1.2
Loader Fabric

Datapack Commands datapackcommands-1.0.0.jar targets 26.1, 26.1.1, 26.1.2 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

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

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
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

The source does not explicitly classify this release as client-only or server-only.

What else does Datapack Commands datapackcommands-1.0.0.jar need?

datapackcommands-1.0.0.jar on 26.1.2 Fabric. Every mod below is checked against that same setup.

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 datapackcommands-1.0.0.jar on 26.1.2 Fabric. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use datapackcommands-1.0.0.jar. It targets 26.1, 26.1.1, 26.1.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

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

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

About this project

What does Datapack Commands add?

Datapack Commands Logo

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.json and 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:path format.

Project description from CurseForge.

Pick your setup

Datapack Commands by Minecraft version and loader

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

17 available setups

Showing the newest 12 of 17 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

1 of 2 releases match
Clear filters

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