Loading...
Beta Modpages Unclaimed

Data Command Plus -storageplayer, Concatenate

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

0 Likes
159 Downloads
Created by fafik77

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)


AD Become Premium to remove Ads!

What means Verified?

  • Compatibility: The mod should be compatible with the latest version of Minecraft and be clearly labeled with its supported versions.
  • Functionality: The mod should work as advertised and not cause any game-breaking bugs or crashes.
  • Security: The mod should not contain any malicious code or attempts to steal personal information.
  • Performance: The mod should not cause a significant decrease in the game's performance, such as by causing lag or reducing frame rates.
  • Originality: The mod should be original and not a copy of someone else's work.
  • Up-to-date: The mod should be regularly updated to fix bugs, improve performance, and maintain compatibility with the latest version of Minecraft.
  • Support: The mod should have an active developer who provides support and troubleshooting assistance to users.
  • License: The mod should be released under a clear and open source license that allows others to use, modify, and redistribute the code.
  • Documentation: The mod should come with clear and detailed documentation on how to install and use it.

AD Become Premium to remove Ads!

How to Install

1

Download Forge & Java

Download Forge from the offical Site or here. If you dont have Java installed then install it now from here. After Downloading Forge you can run the file with Java.

2

Prepare

Lounch Minecraft and select your Forge istallation as Version this will create a Folder called Mods.

3

Add Mods

Type Win+R and type %appdata% and open the .minecraft Folder. There will you find your Folder called Mods. Place all Mods you want to play in this Folder

4

Enjoy

You are now Ready. Re-start your Game and start Playing.

More Mods like this

Controlling

Adds a search bar to the Key-Bindings menu

Crafting Tweaks

Allows you to rotate, balance or clear the crafting matrix by the press of a button, in any (supported) crafting window.

Client Tweaks

There, I fixed Minecraft for you. Various optional tweaks to improve Minecraft Quality of Life.

TrashSlot

Adds a trash slot to the inventory screen that allows deletion of unwanted items.

TipTheScales

Allows for more options when adjusting the GUIScale option as well as making it a slider.

Configured

Automatic in-game configuration menus for every mod!

Charm

A vanilla+ mod inspired by Quark, adding lots of small things to the game.