Back to mods
Data Command Plus -storageplayer, Concatenate, Loot project artwork

CurseForge · Minecraft mod

Data Command Plus -storageplayer, Concatenate, Loot

use the /data command to concatenate strings, and use storage for each player

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

Quick answer

Which Data Command Plus -storageplayer, Concatenate, Loot release should I use?

Updated 2 years ago
Latest stable file data-command-plus-1.2.7-1.21.jar
Game version 1.21.1
Loader Fabric

Data Command Plus -storageplayer, Concatenate, Loot data-command-plus-1.2.7-1.21.jar targets 1.21.1 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 Data Command Plus -storageplayer, Concatenate, Loot 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 Data Command Plus -storageplayer, Concatenate, Loot data-command-plus-1.2.7-1.21.jar need?

data-command-plus-1.2.7-1.21.jar. 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 Data Command Plus -storageplayer, Concatenate, Loot without breaking your instance.

Built for Data Command Plus -storageplayer, Concatenate, Loot data-command-plus-1.2.7-1.21.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use data-command-plus-1.2.7-1.21.jar. It targets 1.21.1 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 data-command-plus-1.2.7-1.21.jar. It opens that exact file at the source.

About this project

What does Data Command Plus -storageplayer, Concatenate, Loot add?

Data Command Plus

New versions and wiki of this mod will only be available on Data Command Plus (on Modrinth) starting from minecraft 1.21.2

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

/data modify (block / entity / storage) <path> (set / insert / ...) concat (block / entity / storage) <path> [<separator>]

Squished tree: of /data command
- /data
  • … 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)
    •      … from (block <sourcePos>|entity <source>|storage <source>) [<sourcePath>]
    •      … concat (block <sourcePos>|entity <source>|storage <source>) [<sourcePath>]
    •      … string (block <sourcePos>|entity <source>|storage <source>) [<sourcePath>] [<start>] [<end>]
    •      … value <value>
    • … modify (block <targetPos>|entity <target>|storage <target> | storageplayer <player>) operation (=, +=, -=, *=, /=, %=, ^=, <, >) <double value>
  • … remove (block <targetPos>|entity <target>|storage <target> | storageplayer <player>) <path>
Squished tree: of /Loot command
/loot <TARGET> <SOURCE>

<TARGET> is:

  • block chest
  • give | insert | spawn | replace <targetPos>
  • insert entity <to entity> inventory <from entity>


- - <SOURCE> is:

  • fish | loot | kill | mine
  • inventory <entity> [MaxSlots]


<target 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), minus will return last n Slots

Concatenate

  • String + String
  • 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
  • there might be some precision loss due to Float and Double Math

Storageplayer

  • store data per player in their own file in /players/<UUID>_pds.dat
  • works only on players
  • ! 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) ... /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)

Project description from CurseForge.

Pick your setup

Data Command Plus -storageplayer, Concatenate, Loot by Minecraft version and loader

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

6 available setups

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

Recent files

Data Command Plus -storageplayer, Concatenate, Loot versions and loaders

8 of 8 releases match

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