Data Command

Quick rating

Data Command

No reviews yet

Custom commands with just datapacks using this api.

API/Library
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Unsupported
Server Required

About

Project Details

Type
Mod
License
MIT License
Authors

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.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Data Command

Modrinth Downloads License Issues

Data Command

Data Command is a lightweight developer utility that allows datapacks to create fully custom commands with support for user input. Define commands in JSON, receive arguments inside functions, and build systems that would normally be impossible using vanilla datapacks alone.


✨ Why Data Command?

Minecraft datapacks have always been limited when it comes to player input. While /trigger can only accept integers, many systems require actual text input.

Data Command solves this by allowing datapacks to define their own commands and receive parsed arguments directly inside functions.

Examples include:

  • Authentication systems
  • Town and faction names
  • Economy commands
  • RPG classes
  • Dialogue systems
  • Server utilities
  • Custom admin tools

🚀 Features

  • Custom commands defined entirely through JSON.
  • String arguments.
  • Integer arguments.
  • Boolean arguments.
  • Automatic argument parsing.
  • Datapack-friendly integration.
  • Lightweight and dependency-focused design.
  • Designed specifically for datapack developers.

📖 Example

Folder structure:

/data/example/command/town.json /data/example/function/create_town.mcfunction

Command definition:

{
  "function": "example:create_town",
  "permission_level": 0,
  "args": [
    {
      "name": "name",
      "type": "String",
      "required": true
    },
    {
      "name": "max_members",
      "type": "Integer",
      "required": false,
      "default": 20
    },
    {
      "name": "public",
      "type": "Boolean",
      "required": false,
      "default": true
    }
  ]
}

When a player executes:

/town TinyVille 50 true

Data Command runs:

example:create_town

with the following macros:

{
  "name": "TinyVille",
  "max_members": 50,
  "public": true
}

⚠️ Beta Status

This is the first beta release of Data Command.

Known Issues

  • Invalid argument errors may be unclear.
  • Reloading datapacks may occasionally require reconnecting.

Please report any bugs you encounter.


❓ FAQ

Is this a datapack?

No. Data Command is a mod/library intended to be used by datapacks.

Do players need to install it?

Only the server needs Data Command unless a datapack specifically requires client-side functionality.

Can I use it in my own datapack?

Yes. Data Command is designed to be used as a dependency for other projects.

Is the API stable?

Not yet. As this is an early beta release, some APIs may change.


👾 Feedback

Found a bug or have a feature request?

  • Report issues on GitHub.
  • Share feedback and suggestions.
  • Help improve future releases of Data Command.

Screenshots

Gallery

This project has no gallery images yet.

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

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works