get merge modify remove Examples FAQ /data get
/data get (block|entity|storage)Copy
Argument Expects What it does target Block coordinates (x y z) What to read or edit: block coordinates like ~ ~-1 ~, one entity like @s or @n[type=minecraft:zombie], or a storage ID like example:demo. pathoptional NBT path NBT path to one value, e.g. Health, Pos[1] or Inventory[0]. Without it, all data is shown. scaleoptional Number Multiplier for a numeric value, useful with /execute store: 10 turns a health of 19.5 into 195.
All 9 forms /data get block <target> /data get block <target> <path> /data get block <target> <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
/data merge (block|entity|storage)Copy
Argument Expects What it does target Block coordinates (x y z) What to read or edit: block coordinates like ~ ~-1 ~, one entity like @s or @n[type=minecraft:zombie], or a storage ID like example:demo. nbt NBT compound SNBT compound merged into the existing data, e.g. {NoAI:1b}. Keys that already exist are overwritten.
All 3 forms /data merge block <target> <nbt> /data merge entity <target> <nbt> /data merge storage <target> <nbt> /data modify
/data modify (block|entity|storage)Copy
Argument Expects What it does target Block coordinates (x y z) What to read or edit: block coordinates like ~ ~-1 ~, one entity like @s or @n[type=minecraft:zombie], or a storage ID like example:demo. targetPath NBT path NBT path of the value to change in the target, e.g. CustomName or Items. computePos Block coordinates (x y z) Block position used as context by the number provider after compute block. provider Number or provider Number to write after compute: a plain number or a number provider in SNBT, as float or integer. computeTarget Entity selectorone One entity used as context by the number provider after compute entity. source Block coordinates (x y z) Where to copy from with from or string: a block position, one entity or a storage ID. sourcePathoptional NBT path NBT path in the source. Without it, all the data of the source is used. startoptional Whole number With string: index of the first character to keep, 0 being the first one. endoptional Whole number With string: index where the copy stops; that character itself is not included. value NBT value Literal SNBT value to write, e.g. 5, 1b, "Steve" or an empty compound {}. index Whole number Position in the list where insert adds the value; 0 is the start of the list.
All 375 forms /data modify block <target> <targetPath> append compute block <computePos> float <provider> /data modify block <target> <targetPath> append compute block <computePos> integer <provider> /data modify block <target> <targetPath> append compute default float <provider> /data modify block <target> <targetPath> append compute default integer <provider> /data modify block <target> <targetPath> append compute entity <computeTarget> float <provider> /data modify block <target> <targetPath> append compute entity <computeTarget> integer <provider> /data modify block <target> <targetPath> append from block <source> /data modify block <target> <targetPath> append from block <source> <sourcePath> /data modify block <target> <targetPath> append from entity <source> /data modify block <target> <targetPath> append from entity <source> <sourcePath> /data modify block <target> <targetPath> append from storage <source> /data modify block <target> <targetPath> append from storage <source> <sourcePath> /data modify block <target> <targetPath> append string block <source> /data modify block <target> <targetPath> append string block <source> <sourcePath> /data modify block <target> <targetPath> append string block <source> <sourcePath> <start> /data modify block <target> <targetPath> append string block <source> <sourcePath> <start> <end> /data modify block <target> <targetPath> append string entity <source> /data modify block <target> <targetPath> append string entity <source> <sourcePath> /data modify block <target> <targetPath> append string entity <source> <sourcePath> <start> /data modify block <target> <targetPath> append string entity <source> <sourcePath> <start> <end> /data modify block <target> <targetPath> append string storage <source> /data modify block <target> <targetPath> append string storage <source> <sourcePath> /data modify block <target> <targetPath> append string storage <source> <sourcePath> <start> /data modify block <target> <targetPath> append string storage <source> <sourcePath> <start> <end> /data modify block <target> <targetPath> append value <value> /data modify block <target> <targetPath> insert <index> compute block <computePos> float <provider> /data modify block <target> <targetPath> insert <index> compute block <computePos> integer <provider> /data modify block <target> <targetPath> insert <index> compute default float <provider> /data modify block <target> <targetPath> insert <index> compute default integer <provider> /data modify block <target> <targetPath> insert <index> compute entity <computeTarget> float <provider> /data modify block <target> <targetPath> insert <index> compute entity <computeTarget> integer <provider> /data modify block <target> <targetPath> insert <index> from block <source> /data modify block <target> <targetPath> insert <index> from block <source> <sourcePath> /data modify block <target> <targetPath> insert <index> from entity <source> /data modify block <target> <targetPath> insert <index> from entity <source> <sourcePath> /data modify block <target> <targetPath> insert <index> from storage <source> /data modify block <target> <targetPath> insert <index> from storage <source> <sourcePath> /data modify block <target> <targetPath> insert <index> string block <source> /data modify block <target> <targetPath> insert <index> string block <source> <sourcePath> /data modify block <target> <targetPath> insert <index> string block <source> <sourcePath> <start> /data modify block <target> <targetPath> insert <index> string block <source> <sourcePath> <start> <end> /data modify block <target> <targetPath> insert <index> string entity <source> /data modify block <target> <targetPath> insert <index> string entity <source> <sourcePath> /data modify block <target> <targetPath> insert <index> string entity <source> <sourcePath> <start> /data modify block <target> <targetPath> insert <index> string entity <source> <sourcePath> <start> <end> /data modify block <target> <targetPath> insert <index> string storage <source> /data modify block <target> <targetPath> insert <index> string storage <source> <sourcePath> /data modify block <target> <targetPath> insert <index> string storage <source> <sourcePath> <start> /data modify block <target> <targetPath> insert <index> string storage <source> <sourcePath> <start> <end> /data modify block <target> <targetPath> insert <index> value <value> /data modify block <target> <targetPath> merge compute block <computePos> float <provider> /data modify block <target> <targetPath> merge compute block <computePos> integer <provider> /data modify block <target> <targetPath> merge compute default float <provider> /data modify block <target> <targetPath> merge compute default integer <provider> /data modify block <target> <targetPath> merge compute entity <computeTarget> float <provider> /data modify block <target> <targetPath> merge compute entity <computeTarget> integer <provider> /data modify block <target> <targetPath> merge from block <source> /data modify block <target> <targetPath> merge from block <source> <sourcePath> /data modify block <target> <targetPath> merge from entity <source> /data modify block <target> <targetPath> merge from entity <source> <sourcePath> /data modify block <target> <targetPath> merge from storage <source> /data modify block <target> <targetPath> merge from storage <source> <sourcePath> /data modify block <target> <targetPath> merge string block <source> /data modify block <target> <targetPath> merge string block <source> <sourcePath> /data modify block <target> <targetPath> merge string block <source> <sourcePath> <start> /data modify block <target> <targetPath> merge string block <source> <sourcePath> <start> <end> /data modify block <target> <targetPath> merge string entity <source> /data modify block <target> <targetPath> merge string entity <source> <sourcePath> /data modify block <target> <targetPath> merge string entity <source> <sourcePath> <start> /data modify block <target> <targetPath> merge string entity <source> <sourcePath> <start> <end> /data modify block <target> <targetPath> merge string storage <source> /data modify block <target> <targetPath> merge string storage <source> <sourcePath> /data modify block <target> <targetPath> merge string storage <source> <sourcePath> <start> /data modify block <target> <targetPath> merge string storage <source> <sourcePath> <start> <end> /data modify block <target> <targetPath> merge value <value> /data modify block <target> <targetPath> prepend compute block <computePos> float <provider> /data modify block <target> <targetPath> prepend compute block <computePos> integer <provider> /data modify block <target> <targetPath> prepend compute default float <provider> /data modify block <target> <targetPath> prepend compute default integer <provider> /data modify block <target> <targetPath> prepend compute entity <computeTarget> float <provider> /data modify block <target> <targetPath> prepend compute entity <computeTarget> integer <provider> /data modify block <target> <targetPath> prepend from block <source> /data modify block <target> <targetPath> prepend from block <source> <sourcePath> /data modify block <target> <targetPath> prepend from entity <source> /data modify block <target> <targetPath> prepend from entity <source> <sourcePath> /data modify block <target> <targetPath> prepend from storage <source> /data modify block <target> <targetPath> prepend from storage <source> <sourcePath> /data modify block <target> <targetPath> prepend string block <source> /data modify block <target> <targetPath> prepend string block <source> <sourcePath> /data modify block <target> <targetPath> prepend string block <source> <sourcePath> <start> /data modify block <target> <targetPath> prepend string block <source> <sourcePath> <start> <end> /data modify block <target> <targetPath> prepend string entity <source> /data modify block <target> <targetPath> prepend string entity <source> <sourcePath> /data modify block <target> <targetPath> prepend string entity <source> <sourcePath> <start> /data modify block <target> <targetPath> prepend string entity <source> <sourcePath> <start> <end> /data modify block <target> <targetPath> prepend string storage <source> /data modify block <target> <targetPath> prepend string storage <source> <sourcePath> /data modify block <target> <targetPath> prepend string storage <source> <sourcePath> <start> /data modify block <target> <targetPath> prepend string storage <source> <sourcePath> <start> <end> /data modify block <target> <targetPath> prepend value <value> /data modify block <target> <targetPath> set compute block <computePos> float <provider> /data modify block <target> <targetPath> set compute block <computePos> integer <provider> /data modify block <target> <targetPath> set compute default float <provider> /data modify block <target> <targetPath> set compute default integer <provider> /data modify block <target> <targetPath> set compute entity <computeTarget> float <provider> /data modify block <target> <targetPath> set compute entity <computeTarget> integer <provider> /data modify block <target> <targetPath> set from block <source> /data modify block <target> <targetPath> set from block <source> <sourcePath> /data modify block <target> <targetPath> set from entity <source> /data modify block <target> <targetPath> set from entity <source> <sourcePath> /data modify block <target> <targetPath> set from storage <source> /data modify block <target> <targetPath> set from storage <source> <sourcePath> /data modify block <target> <targetPath> set string block <source> /data modify block <target> <targetPath> set string block <source> <sourcePath> /data modify block <target> <targetPath> set string block <source> <sourcePath> <start> /data modify block <target> <targetPath> set string block <source> <sourcePath> <start> <end> /data modify block <target> <targetPath> set string entity <source> /data modify block <target> <targetPath> set string entity <source> <sourcePath> /data modify block <target> <targetPath> set string entity <source> <sourcePath> <start> /data modify block <target> <targetPath> set string entity <source> <sourcePath> <start> <end> /data modify block <target> <targetPath> set string storage <source> /data modify block <target> <targetPath> set string storage <source> <sourcePath> /data modify block <target> <targetPath> set string storage <source> <sourcePath> <start> /data modify block <target> <targetPath> set string storage <source> <sourcePath> <start> <end> /data modify block <target> <targetPath> set value <value> /data modify entity <target> <targetPath> append compute block <computePos> float <provider> /data modify entity <target> <targetPath> append compute block <computePos> integer <provider> /data modify entity <target> <targetPath> append compute default float <provider> /data modify entity <target> <targetPath> append compute default integer <provider> /data modify entity <target> <targetPath> append compute entity <computeTarget> float <provider> /data modify entity <target> <targetPath> append compute entity <computeTarget> integer <provider> /data modify entity <target> <targetPath> append from block <source> /data modify entity <target> <targetPath> append from block <source> <sourcePath> /data modify entity <target> <targetPath> append from entity <source> /data modify entity <target> <targetPath> append from entity <source> <sourcePath> /data modify entity <target> <targetPath> append from storage <source> /data modify entity <target> <targetPath> append from storage <source> <sourcePath> /data modify entity <target> <targetPath> append string block <source> /data modify entity <target> <targetPath> append string block <source> <sourcePath> /data modify entity <target> <targetPath> append string block <source> <sourcePath> <start> /data modify entity <target> <targetPath> append string block <source> <sourcePath> <start> <end> /data modify entity <target> <targetPath> append string entity <source> /data modify entity <target> <targetPath> append string entity <source> <sourcePath> /data modify entity <target> <targetPath> append string entity <source> <sourcePath> <start> /data modify entity <target> <targetPath> append string entity <source> <sourcePath> <start> <end> /data modify entity <target> <targetPath> append string storage <source> /data modify entity <target> <targetPath> append string storage <source> <sourcePath> /data modify entity <target> <targetPath> append string storage <source> <sourcePath> <start> /data modify entity <target> <targetPath> append string storage <source> <sourcePath> <start> <end> /data modify entity <target> <targetPath> append value <value> /data modify entity <target> <targetPath> insert <index> compute block <computePos> float <provider> /data modify entity <target> <targetPath> insert <index> compute block <computePos> integer <provider> /data modify entity <target> <targetPath> insert <index> compute default float <provider> /data modify entity <target> <targetPath> insert <index> compute default integer <provider> /data modify entity <target> <targetPath> insert <index> compute entity <computeTarget> float <provider> /data modify entity <target> <targetPath> insert <index> compute entity <computeTarget> integer <provider> /data modify entity <target> <targetPath> insert <index> from block <source> /data modify entity <target> <targetPath> insert <index> from block <source> <sourcePath> /data modify entity <target> <targetPath> insert <index> from entity <source> /data modify entity <target> <targetPath> insert <index> from entity <source> <sourcePath> /data modify entity <target> <targetPath> insert <index> from storage <source> /data modify entity <target> <targetPath> insert <index> from storage <source> <sourcePath> /data modify entity <target> <targetPath> insert <index> string block <source> /data modify entity <target> <targetPath> insert <index> string block <source> <sourcePath> /data modify entity <target> <targetPath> insert <index> string block <source> <sourcePath> <start> /data modify entity <target> <targetPath> insert <index> string block <source> <sourcePath> <start> <end> /data modify entity <target> <targetPath> insert <index> string entity <source> /data modify entity <target> <targetPath> insert <index> string entity <source> <sourcePath> /data modify entity <target> <targetPath> insert <index> string entity <source> <sourcePath> <start> /data modify entity <target> <targetPath> insert <index> string entity <source> <sourcePath> <start> <end> /data modify entity <target> <targetPath> insert <index> string storage <source> /data modify entity <target> <targetPath> insert <index> string storage <source> <sourcePath> /data modify entity <target> <targetPath> insert <index> string storage <source> <sourcePath> <start> /data modify entity <target> <targetPath> insert <index> string storage <source> <sourcePath> <start> <end> /data modify entity <target> <targetPath> insert <index> value <value> /data modify entity <target> <targetPath> merge compute block <computePos> float <provider> /data modify entity <target> <targetPath> merge compute block <computePos> integer <provider> /data modify entity <target> <targetPath> merge compute default float <provider> /data modify entity <target> <targetPath> merge compute default integer <provider> /data modify entity <target> <targetPath> merge compute entity <computeTarget> float <provider> /data modify entity <target> <targetPath> merge compute entity <computeTarget> integer <provider> /data modify entity <target> <targetPath> merge from block <source> /data modify entity <target> <targetPath> merge from block <source> <sourcePath> /data modify entity <target> <targetPath> merge from entity <source> /data modify entity <target> <targetPath> merge from entity <source> <sourcePath> /data modify entity <target> <targetPath> merge from storage <source> /data modify entity <target> <targetPath> merge from storage <source> <sourcePath> /data modify entity <target> <targetPath> merge string block <source> /data modify entity <target> <targetPath> merge string block <source> <sourcePath> /data modify entity <target> <targetPath> merge string block <source> <sourcePath> <start> /data modify entity <target> <targetPath> merge string block <source> <sourcePath> <start> <end> /data modify entity <target> <targetPath> merge string entity <source> /data modify entity <target> <targetPath> merge string entity <source> <sourcePath> /data modify entity <target> <targetPath> merge string entity <source> <sourcePath> <start> /data modify entity <target> <targetPath> merge string entity <source> <sourcePath> <start> <end> /data modify entity <target> <targetPath> merge string storage <source> /data modify entity <target> <targetPath> merge string storage <source> <sourcePath> /data modify entity <target> <targetPath> merge string storage <source> <sourcePath> <start> /data modify entity <target> <targetPath> merge string storage <source> <sourcePath> <start> <end> /data modify entity <target> <targetPath> merge value <value> /data modify entity <target> <targetPath> prepend compute block <computePos> float <provider> /data modify entity <target> <targetPath> prepend compute block <computePos> integer <provider> /data modify entity <target> <targetPath> prepend compute default float <provider> /data modify entity <target> <targetPath> prepend compute default integer <provider> /data modify entity <target> <targetPath> prepend compute entity <computeTarget> float <provider> /data modify entity <target> <targetPath> prepend compute entity <computeTarget> integer <provider> /data modify entity <target> <targetPath> prepend from block <source> /data modify entity <target> <targetPath> prepend from block <source> <sourcePath> /data modify entity <target> <targetPath> prepend from entity <source> /data modify entity <target> <targetPath> prepend from entity <source> <sourcePath> /data modify entity <target> <targetPath> prepend from storage <source> /data modify entity <target> <targetPath> prepend from storage <source> <sourcePath> /data modify entity <target> <targetPath> prepend string block <source> /data modify entity <target> <targetPath> prepend string block <source> <sourcePath> /data modify entity <target> <targetPath> prepend string block <source> <sourcePath> <start> /data modify entity <target> <targetPath> prepend string block <source> <sourcePath> <start> <end> /data modify entity <target> <targetPath> prepend string entity <source> /data modify entity <target> <targetPath> prepend string entity <source> <sourcePath> /data modify entity <target> <targetPath> prepend string entity <source> <sourcePath> <start> /data modify entity <target> <targetPath> prepend string entity <source> <sourcePath> <start> <end> /data modify entity <target> <targetPath> prepend string storage <source> /data modify entity <target> <targetPath> prepend string storage <source> <sourcePath> /data modify entity <target> <targetPath> prepend string storage <source> <sourcePath> <start> /data modify entity <target> <targetPath> prepend string storage <source> <sourcePath> <start> <end> /data modify entity <target> <targetPath> prepend value <value> /data modify entity <target> <targetPath> set compute block <computePos> float <provider> /data modify entity <target> <targetPath> set compute block <computePos> integer <provider> /data modify entity <target> <targetPath> set compute default float <provider> /data modify entity <target> <targetPath> set compute default integer <provider> /data modify entity <target> <targetPath> set compute entity <computeTarget> float <provider> /data modify entity <target> <targetPath> set compute entity <computeTarget> integer <provider> /data modify entity <target> <targetPath> set from block <source> /data modify entity <target> <targetPath> set from block <source> <sourcePath> /data modify entity <target> <targetPath> set from entity <source> /data modify entity <target> <targetPath> set from entity <source> <sourcePath> /data modify entity <target> <targetPath> set from storage <source> /data modify entity <target> <targetPath> set from storage <source> <sourcePath> /data modify entity <target> <targetPath> set string block <source> /data modify entity <target> <targetPath> set string block <source> <sourcePath> /data modify entity <target> <targetPath> set string block <source> <sourcePath> <start> /data modify entity <target> <targetPath> set string block <source> <sourcePath> <start> <end> /data modify entity <target> <targetPath> set string entity <source> /data modify entity <target> <targetPath> set string entity <source> <sourcePath> /data modify entity <target> <targetPath> set string entity <source> <sourcePath> <start> /data modify entity <target> <targetPath> set string entity <source> <sourcePath> <start> <end> /data modify entity <target> <targetPath> set string storage <source> /data modify entity <target> <targetPath> set string storage <source> <sourcePath> /data modify entity <target> <targetPath> set string storage <source> <sourcePath> <start> /data modify entity <target> <targetPath> set string storage <source> <sourcePath> <start> <end> /data modify entity <target> <targetPath> set value <value> /data modify storage <target> <targetPath> append compute block <computePos> float <provider> /data modify storage <target> <targetPath> append compute block <computePos> integer <provider> /data modify storage <target> <targetPath> append compute default float <provider> /data modify storage <target> <targetPath> append compute default integer <provider> /data modify storage <target> <targetPath> append compute entity <computeTarget> float <provider> /data modify storage <target> <targetPath> append compute entity <computeTarget> integer <provider> /data modify storage <target> <targetPath> append from block <source> /data modify storage <target> <targetPath> append from block <source> <sourcePath> /data modify storage <target> <targetPath> append from entity <source> /data modify storage <target> <targetPath> append from entity <source> <sourcePath> /data modify storage <target> <targetPath> append from storage <source> /data modify storage <target> <targetPath> append from storage <source> <sourcePath> /data modify storage <target> <targetPath> append string block <source> /data modify storage <target> <targetPath> append string block <source> <sourcePath> /data modify storage <target> <targetPath> append string block <source> <sourcePath> <start> /data modify storage <target> <targetPath> append string block <source> <sourcePath> <start> <end> /data modify storage <target> <targetPath> append string entity <source> /data modify storage <target> <targetPath> append string entity <source> <sourcePath> /data modify storage <target> <targetPath> append string entity <source> <sourcePath> <start> /data modify storage <target> <targetPath> append string entity <source> <sourcePath> <start> <end> /data modify storage <target> <targetPath> append string storage <source> /data modify storage <target> <targetPath> append string storage <source> <sourcePath> /data modify storage <target> <targetPath> append string storage <source> <sourcePath> <start> /data modify storage <target> <targetPath> append string storage <source> <sourcePath> <start> <end> /data modify storage <target> <targetPath> append value <value> /data modify storage <target> <targetPath> insert <index> compute block <computePos> float <provider> /data modify storage <target> <targetPath> insert <index> compute block <computePos> integer <provider> /data modify storage <target> <targetPath> insert <index> compute default float <provider> /data modify storage <target> <targetPath> insert <index> compute default integer <provider> /data modify storage <target> <targetPath> insert <index> compute entity <computeTarget> float <provider> /data modify storage <target> <targetPath> insert <index> compute entity <computeTarget> integer <provider> /data modify storage <target> <targetPath> insert <index> from block <source> /data modify storage <target> <targetPath> insert <index> from block <source> <sourcePath> /data modify storage <target> <targetPath> insert <index> from entity <source> /data modify storage <target> <targetPath> insert <index> from entity <source> <sourcePath> /data modify storage <target> <targetPath> insert <index> from storage <source> /data modify storage <target> <targetPath> insert <index> from storage <source> <sourcePath> /data modify storage <target> <targetPath> insert <index> string block <source> /data modify storage <target> <targetPath> insert <index> string block <source> <sourcePath> /data modify storage <target> <targetPath> insert <index> string block <source> <sourcePath> <start> /data modify storage <target> <targetPath> insert <index> string block <source> <sourcePath> <start> <end> /data modify storage <target> <targetPath> insert <index> string entity <source> /data modify storage <target> <targetPath> insert <index> string entity <source> <sourcePath> /data modify storage <target> <targetPath> insert <index> string entity <source> <sourcePath> <start> /data modify storage <target> <targetPath> insert <index> string entity <source> <sourcePath> <start> <end> /data modify storage <target> <targetPath> insert <index> string storage <source> /data modify storage <target> <targetPath> insert <index> string storage <source> <sourcePath> /data modify storage <target> <targetPath> insert <index> string storage <source> <sourcePath> <start> /data modify storage <target> <targetPath> insert <index> string storage <source> <sourcePath> <start> <end> /data modify storage <target> <targetPath> insert <index> value <value> /data modify storage <target> <targetPath> merge compute block <computePos> float <provider> /data modify storage <target> <targetPath> merge compute block <computePos> integer <provider> /data modify storage <target> <targetPath> merge compute default float <provider> /data modify storage <target> <targetPath> merge compute default integer <provider> /data modify storage <target> <targetPath> merge compute entity <computeTarget> float <provider> /data modify storage <target> <targetPath> merge compute entity <computeTarget> integer <provider> /data modify storage <target> <targetPath> merge from block <source> /data modify storage <target> <targetPath> merge from block <source> <sourcePath> /data modify storage <target> <targetPath> merge from entity <source> /data modify storage <target> <targetPath> merge from entity <source> <sourcePath> /data modify storage <target> <targetPath> merge from storage <source> /data modify storage <target> <targetPath> merge from storage <source> <sourcePath> /data modify storage <target> <targetPath> merge string block <source> /data modify storage <target> <targetPath> merge string block <source> <sourcePath> /data modify storage <target> <targetPath> merge string block <source> <sourcePath> <start> /data modify storage <target> <targetPath> merge string block <source> <sourcePath> <start> <end> /data modify storage <target> <targetPath> merge string entity <source> /data modify storage <target> <targetPath> merge string entity <source> <sourcePath> /data modify storage <target> <targetPath> merge string entity <source> <sourcePath> <start> /data modify storage <target> <targetPath> merge string entity <source> <sourcePath> <start> <end> /data modify storage <target> <targetPath> merge string storage <source> /data modify storage <target> <targetPath> merge string storage <source> <sourcePath> /data modify storage <target> <targetPath> merge string storage <source> <sourcePath> <start> /data modify storage <target> <targetPath> merge string storage <source> <sourcePath> <start> <end> /data modify storage <target> <targetPath> merge value <value> /data modify storage <target> <targetPath> prepend compute block <computePos> float <provider> /data modify storage <target> <targetPath> prepend compute block <computePos> integer <provider> /data modify storage <target> <targetPath> prepend compute default float <provider> /data modify storage <target> <targetPath> prepend compute default integer <provider> /data modify storage <target> <targetPath> prepend compute entity <computeTarget> float <provider> /data modify storage <target> <targetPath> prepend compute entity <computeTarget> integer <provider> /data modify storage <target> <targetPath> prepend from block <source> /data modify storage <target> <targetPath> prepend from block <source> <sourcePath> /data modify storage <target> <targetPath> prepend from entity <source> /data modify storage <target> <targetPath> prepend from entity <source> <sourcePath> /data modify storage <target> <targetPath> prepend from storage <source> /data modify storage <target> <targetPath> prepend from storage <source> <sourcePath> /data modify storage <target> <targetPath> prepend string block <source> /data modify storage <target> <targetPath> prepend string block <source> <sourcePath> /data modify storage <target> <targetPath> prepend string block <source> <sourcePath> <start> /data modify storage <target> <targetPath> prepend string block <source> <sourcePath> <start> <end> /data modify storage <target> <targetPath> prepend string entity <source> /data modify storage <target> <targetPath> prepend string entity <source> <sourcePath> /data modify storage <target> <targetPath> prepend string entity <source> <sourcePath> <start> /data modify storage <target> <targetPath> prepend string entity <source> <sourcePath> <start> <end> /data modify storage <target> <targetPath> prepend string storage <source> /data modify storage <target> <targetPath> prepend string storage <source> <sourcePath> /data modify storage <target> <targetPath> prepend string storage <source> <sourcePath> <start> /data modify storage <target> <targetPath> prepend string storage <source> <sourcePath> <start> <end> /data modify storage <target> <targetPath> prepend value <value> /data modify storage <target> <targetPath> set compute block <computePos> float <provider> /data modify storage <target> <targetPath> set compute block <computePos> integer <provider> /data modify storage <target> <targetPath> set compute default float <provider> /data modify storage <target> <targetPath> set compute default integer <provider> /data modify storage <target> <targetPath> set compute entity <computeTarget> float <provider> /data modify storage <target> <targetPath> set compute entity <computeTarget> integer <provider> /data modify storage <target> <targetPath> set from block <source> /data modify storage <target> <targetPath> set from block <source> <sourcePath> /data modify storage <target> <targetPath> set from entity <source> /data modify storage <target> <targetPath> set from entity <source> <sourcePath> /data modify storage <target> <targetPath> set from storage <source> /data modify storage <target> <targetPath> set from storage <source> <sourcePath> /data modify storage <target> <targetPath> set string block <source> /data modify storage <target> <targetPath> set string block <source> <sourcePath> /data modify storage <target> <targetPath> set string block <source> <sourcePath> <start> /data modify storage <target> <targetPath> set string block <source> <sourcePath> <start> <end> /data modify storage <target> <targetPath> set string entity <source> /data modify storage <target> <targetPath> set string entity <source> <sourcePath> /data modify storage <target> <targetPath> set string entity <source> <sourcePath> <start> /data modify storage <target> <targetPath> set string entity <source> <sourcePath> <start> <end> /data modify storage <target> <targetPath> set string storage <source> /data modify storage <target> <targetPath> set string storage <source> <sourcePath> /data modify storage <target> <targetPath> set string storage <source> <sourcePath> <start> /data modify storage <target> <targetPath> set string storage <source> <sourcePath> <start> <end> /data modify storage <target> <targetPath> set value <value> /data remove
/data remove (block|entity|storage)Copy
Argument Expects What it does target Block coordinates (x y z) What to read or edit: block coordinates like ~ ~-1 ~, one entity like @s or @n[type=minecraft:zombie], or a storage ID like example:demo. path NBT path NBT path of the value to delete, e.g. CustomName or a key in a storage.
All 3 forms /data remove block <target> <path> /data remove entity <target> <path> /data remove storage <target> <path> Examples Read your health /data get entity @s HealthCopy
Shows your current health as a number, 20 when you are at full health.
Java 26.3
Read your Y position /data get entity @s Pos[1]Copy
Pos is a list of X, Y and Z; index 1 is the height.
Java 26.3
Inspect the block entity below /data get block ~ ~-1 ~Copy
Prints all the data of the container, sign or spawner you stand on.
Java 26.3
Freeze the nearest zombie /data merge entity @n[type=minecraft:zombie] {NoAI:1b}Copy
Turns off the AI of the closest zombie: it stops moving and attacking.
Java 26.3
Save a value in storage /data modify storage example:demo name set value "Steve"Copy
Creates the storage example:demo if needed and writes the text Steve under name.
Java 26.3
Copy the contents of a container /data modify block ~ ~-1 ~ Items set from block ~ ~-2 ~ ItemsCopy
The container under you receives the items of the one just below it.
Java 26.3
Delete a storage value /data remove storage example:demo nameCopy
Removes the key name from the storage example:demo.
Java 26.3
Health into a score /execute store result score @s demo run data get entity @s Health 10Copy
Stores your health times 10 in the demo objective, created first with /scoreboard.
Java 26.3
Build your command Fill in the fields, then copy the command.
Command generator Block, entity or storage /data works on three kinds of targets. A block must be a block entity, such as a Chest , a sign or a spawner, otherwise you get "The target block is not a block entity". Entities are selected one at a time. A storage is a named NBT container saved with the world, ideal for /function variables.
Players are read only /data get entity @s works on a player, but merge, modify and remove fail with "Unable to modify player data". To change a player, use the dedicated commands such as /item for the inventory or /attribute for stats.
get, merge, modify, remove get prints data; with a path and a scale it returns a number for /execute store.merge combines a compound with the existing data.modify sets, appends, prepends, inserts or merges one value, taken literally, copied from a source, cut from a string or computed.remove deletes the value at a path.Paths read like this: Pos[1] is the Y coordinate and Inventory[0] the first stored slot. Reading a key that does not exist answers "Can't get ...; tag doesn't exist". To set up a mob with data right away, /summon accepts the same NBT.
✓ Checked in Java Edition 26.3 · updated 2 November 2026
/data: FAQ Why can't I change a player's NBT with /data? The game blocks merge, modify and remove on players. Use /item, /attribute, /effect or /experience to change what you need.
Where is storage data saved? In the world save, shared by all dimensions. It stays there until you remove it with /data remove storage.
How do I use /data? Type it in the chat with cheats on: /data get (block|entity|storage).
Who can use /data? Cheats on, or operator level 2.