Data Command Plus

Data Command Plus

Storageplayer, Concatenate, Loot Entities, Player and Data Manipulation

by
3.6K Downloads
fabricgame-mechanicslibraryutility
Rent Server with this Mod

About this Mod

Data Command Plus

This mod expands the capabilities of /data command, /loot
Only required on the Server side, client will need it for full syntax help!

Syntax of the command fits right into Vanilla syntax. see Commands/data on Minecraft Wiki

Always download the latest release to have access to all the features

To use with NeoForge/Forge

Follow instructions at: Sinytra Connector and Forgified Fabric API.
Please be aware that that port is not perfect and can crash your game.
In case it does crash, it should be reported to Sinytra Connector mod developer!

Squished tree: of /data command

  • … get (block <targetPos>|entity <target>|storage <target>|storageplayer <player>) [<path>] [<scale>]
  • … merge (block <targetPos>|entity <target>|storage <target>|storageplayer <player>) <nbt>
  • … modify (block <targetPos>|entity <target>|storage <target>|storageplayer <player>) <targetPath> (append|insert <index>|merge|prepend|set| operation)
    • … from (block <sourcePos>|entity <source>|storage <source>|storageplayer <player>) [<sourcePath>]
    • concat (block <sourcePos>|entity <source>|storage <source>|storageplayer <player>) [<sourcePath>]
    • … string (block <sourcePos>|entity <source>|storage <source>|storageplayer <player>) [<sourcePath>] [<start>] [<end>]
    • … <(operation one of: =, +=, -=, *=, /=, %=, ^=, <, >)> <double value>
    • … value <value>
  • … remove (block <targetPos>|entity <target>|storage <target>|storageplayer <player>) <path>

Squished tree: of /Loot command

/loot <TARGET> <SOURCE>
where
<TARGET> is:
  • give | insert | spawn | replace <targetPos>
  • insert entity <to entity> inventory <from entity>
<SOURCE> is:
  • fish | loot | kill | mine
  • inventory <entity> [MaxSlots]
<entity> is of type: player, cart, boat, villager, horse/donkey/llama, item, other living entity
[MaxSlots] is optional and will return up to n Slots (counting from 1), (-n) minus will return last n Slots
Equipment in order: Armor feet to head, mainhand, offhand, body, saddle.

Example, compacting inventory from one chest minecart into another one:
/loot insert entity @e[limit=1,type=chest_minecart,tag=1] inventory @e[limit=1,type=chest_minecart,tag=2]

Possibilities

Concatenate

  • String old + String new
  • List of Strings
  • Any Array
  • Multiple Nbt Values (selected by nbt selector)
  • Nbt Compound (only the top layer) as strings with escaped Quotes ("key":"value")
  • Return result: amount of elements concatenated

given path will be replaced with new string
p.s. if given path is a string and a string is concatenated, the result is concatenation of those two strings

Math Operation

  • performs math operation on the target value, target can be of any numeric type, Error will be thrown and success set to 0 when type is not numeric
  • ^= stands for Power, can also be used to calculate Root
  • Targeted Path number TYPE will not change
  • for command syntax help install this mod client side
  • Return result and success: non zero on success

Storageplayer

  • store data per player in their own file /players/<UUID>_pds.dat
  • works only on players, any other entity will return an error
  • ! Data stored in storageplayer will not be synced with clients, it's purely server side !

Loot ... inventory ...

  • loot enitiy's inventory into container (works with players, minecarts, boats, merchants, horses, items, and all living entities)
  • inserting into double chests is now possible (1up over regular loot command) ...
  • Return result: Slots returned
/execute as @e[type=item] run loot insert ~ ~-0.1 ~ inventory @s (will try to insert a copy of all dropped items from the world into inventory under your feet)
Examples of Loot ... inventory ... can be found in datapack Fafik77 Lib/inventory_manager

Delete Kill Command

In response to So I Added WAY Too Many Slimes to Minecraft -by Fundy
/deletekill <entities>
Deletes selected entities, no loot dropped, no events fired just gone
p.s. works grat on slimes

Available Versions

Data Command Plus 1.2.9-1.21.5release
MC 1.21.5, 1.21.6, 1.21.7, 1.21.8fabric
August 30, 2025
Data Command Plus 1.2.8-1.21release
MC 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4fabric
January 15, 2025
Data Command Plus 1.2.7-1.21release
MC 1.21, 1.21.1, 1.21.2, 1.21.3fabric
September 25, 2024
Data Command Plus 1.2.6-1.21release
MC 1.21, 1.21.1fabric
August 26, 2024
Data Command Plus 1.2.5-1.21release
MC 1.21, 1.21.1fabric
August 23, 2024

How to Install Data Command Plus on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.8).

3

Install Mod

Open the mod browser in the dashboard and search for "Data Command Plus". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.21.8, 1.21.7, 1.21.6 (+6 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Data Command Plus server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.8). You can switch loaders with one click in the panel.

Is Data Command Plus compatible with fabric?

Data Command Plus officially supports fabric for Minecraft 1.21.8, 1.21.7, 1.21.6. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Data Command Plus – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Data Command Plus consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Data Command Plus with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.81.21.71.21.61.21.51.21.41.21.31.21.21.21.11.21