/data
Читает и изменяет NBT-данные блоков, сущностей и хранилищ.
Синтаксис
/data get block <targetPos>/data get block <targetPos> <path>/data get block <targetPos> <path> <scale>/data get entity <target>/data get entity <target> <path>/data get entity <target> <path> <scale>/data get storage <target>/data get storage <target> <path>/data get storage <target> <path> <scale>/data merge block <targetPos> <nbt>/data merge entity <target> <nbt>/data merge storage <target> <nbt>/data modify block <targetPos> <targetPath> append from block <sourcePos>/data modify block <targetPos> <targetPath> append from block <sourcePos> <sourcePath>/data modify block <targetPos> <targetPath> append from entity <source>/data modify block <targetPos> <targetPath> append from entity <source> <sourcePath>/data modify block <targetPos> <targetPath> append from storage <source>/data modify block <targetPos> <targetPath> append from storage <source> <sourcePath>/data modify block <targetPos> <targetPath> append string block <sourcePos>/data modify block <targetPos> <targetPath> append string block <sourcePos> <sourcePath>/data modify block <targetPos> <targetPath> append string block <sourcePos> <sourcePath> <start>/data modify block <targetPos> <targetPath> append string block <sourcePos> <sourcePath> <start> <end>/data modify block <targetPos> <targetPath> append string entity <source>/data modify block <targetPos> <targetPath> append string entity <source> <sourcePath>
Из официального дерева команд Minecraft 1.21.4. <аргумент> — подставь значение.
Аргументы
| Аргумент | Тип |
|---|---|
| <targetPos> | координаты блока (x y z, поддерживает ~ и ^) |
| <path> | NBT-путь |
| <scale> | число |
| <target> | сущность или селектор (@p, @a, @e, @s, @r) |
| <nbt> | NBT-объект |
| <targetPath> | NBT-путь |
| <sourcePos> | координаты блока (x y z, поддерживает ~ и ^) |
| <sourcePath> | NBT-путь |
| <source> | сущность или селектор (@p, @a, @e, @s, @r) |
| <start> | целое число |
| <end> | целое число |
| <value> | minecraft:nbt_tag |
| <index> | целое число |
Примеры
/data get entity @p InventoryПосмотреть инвентарь игрока