News
Game
Guides
Downloads
Versions
/data
COMMANDS MOBS & ENTITIES CHEATS · LEVEL 2 4 SUBCOMMANDS Added in 1.14 or earlier

/data command in Minecraft

The /data command reads and changes the NBT data of block entities, entities and command storage. It is the tool for checking what a mob or a chest holds, changing a property no other command reaches, or keeping variables for a data pack.

Syntax

/data get (block|entity|storage)
/data merge (block|entity|storage)
/data modify (block|entity|storage)
/data remove (block|entity|storage)
All 390 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 block <target> <nbt>
  • /data merge entity <target> <nbt>
  • /data merge storage <target> <nbt>
  • /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 block <target> <path>
  • /data remove entity <target> <path>
  • /data remove storage <target> <path>
/data get
/data get (block|entity|storage)
ArgumentExpectsWhat it does
targetBlock 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.
pathoptionalNBT pathNBT path to one value, e.g. Health, Pos[1] or Inventory[0]. Without it, all data is shown.
scaleoptionalNumberMultiplier 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)
ArgumentExpectsWhat it does
targetBlock 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.
nbtNBT compoundSNBT 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)
ArgumentExpectsWhat it does
targetBlock 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.
targetPathNBT pathNBT path of the value to change in the target, e.g. CustomName or Items.
computePosBlock coordinates (x y z)Block position used as context by the number provider after compute block.
providerNumber or providerNumber to write after compute: a plain number or a number provider in SNBT, as float or integer.
computeTargetEntity selectoroneOne entity used as context by the number provider after compute entity.
sourceBlock coordinates (x y z)Where to copy from with from or string: a block position, one entity or a storage ID.
sourcePathoptionalNBT pathNBT path in the source. Without it, all the data of the source is used.
startoptionalWhole numberWith string: index of the first character to keep, 0 being the first one.
endoptionalWhole numberWith string: index where the copy stops; that character itself is not included.
valueNBT valueLiteral SNBT value to write, e.g. 5, 1b, "Steve" or an empty compound {}.
indexWhole numberPosition 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)
ArgumentExpectsWhat it does
targetBlock 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.
pathNBT pathNBT 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 Health

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]

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 ~

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}

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"

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 ~ Items

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 name

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 10

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.

Related commands