Data Command Plus -storageplayer, Concatenate, Loot

Quick rating

Community listing page, reviews here may not be monitored by the author.

Data Command Plus -storageplayer, Concatenate, Loot

By fafik77Owner

No reviews yet

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

QoL & Tweaks
API/Library
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Show per page
10
25
50
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

Where It Runs
Server Only

Runs entirely on the server. Also works in singleplayer.

About

Project Details

Type
Mod
License
MIT License
Latest Version
data-command-plus-1.2.7-1.21.jar

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

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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)

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

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

~4,000
Total Downloads
CurseForge
<1,000
Modrinth
~3,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
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