Data Command Plus -storageplayer, Concatenate, Loot
use the /data command to concatenate strings, and use storage for each player
介绍
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 |
|---|
|
Squished tree: of /Loot command |
|---|
|
<target entity> is of type: player, cart, boat, villager, horse/donkey/llama, item, other living entity
|
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 -storageplayer, Concatenate, Loot 支持哪些 Minecraft 版本?
Data Command Plus -storageplayer, Concatenate, Loot 支持 Minecraft Java 版 1.20–1.21.1,共 6 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Data Command Plus -storageplayer, Concatenate, Loot 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分