
/data
Reads and edits the NBT data of blocks, entities and command storage. Its basic form is /data get block <target>; it has 40 syntax forms and 12 arguments. Permission: Cheats / op 2.
/data syntax
Game dataEvery form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.
/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 from block <source>/data modify block <target> <targetPath> append from entity <source>/data modify block <target> <targetPath> append from storage <source>/data modify block <target> <targetPath> append string block <source>/data modify block <target> <targetPath> append string entity <source>/data modify block <target> <targetPath> append string storage <source>/data modify block <target> <targetPath> append value <value>/data modify block <target> <targetPath> insert <index> value <value>/data modify block <target> <targetPath> merge from block <source>/data modify block <target> <targetPath> merge from entity <source>/data modify block <target> <targetPath> merge from storage <source>/data modify block <target> <targetPath> merge string block <source>/data modify block <target> <targetPath> merge string entity <source>/data modify block <target> <targetPath> merge string storage <source>/data modify block <target> <targetPath> merge value <value>/data modify block <target> <targetPath> prepend from block <source>/data modify block <target> <targetPath> prepend from entity <source>/data modify block <target> <targetPath> prepend from storage <source>/data modify block <target> <targetPath> prepend string block <source>/data modify block <target> <targetPath> prepend string entity <source>/data modify block <target> <targetPath> prepend string storage <source>/data modify block <target> <targetPath> prepend value <value>/data modify block <target> <targetPath> set from block <source>/data modify block <target> <targetPath> set from entity <source>/data modify block <target> <targetPath> set from storage <source>/data modify block <target> <targetPath> set string block <source>/data modify block <target> <targetPath> set string entity <source>/data modify block <target> <targetPath> set string storage <source>/data examples
Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.
/data get entity @s SelectedItem- Shows the full data of the item in your hand.
/data merge entity @e[type=minecraft:zombie,limit=1,sort=nearest] {NoAI:1b}- Freezes the nearest zombie by turning off its AI.
/data arguments
What each argument expects, with the limits the game enforces.
| Argument | Expects | Limits |
|---|---|---|
<target> | Block coordinates (x y z, ~ relative, ^ local) | — |
<path> | NBT path | — |
<scale> | Number | — |
<nbt> | NBT compound {…} | — |
<targetPath> | NBT path | — |
<computePos> | Block coordinates (x y z, ~ relative, ^ local) | — |
<provider> | Number provider ID | — |
<computeTarget> | Target selector or player name (@s, @p, @a, @e, @r) | one target |
<source> | Block coordinates (x y z, ~ relative, ^ local) | — |
<sourcePath> | NBT path | — |
<value> | NBT value | — |
<index> | Whole number | — |
Other commands
Data: Minecraft Java Edition 26.3 game files. How we source this
Reads and edits the NBT data of blocks, entities and command storage. It has 40 syntax forms and can be run by: Cheats / op 2.
See Also
Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.
/data FAQ (Java 26.3)
What does /data do in Minecraft?
Reads and edits the NBT data of blocks, entities and command storage.
What is the syntax of /data?
The basic form is /data get block <target>. All forms are listed above.
What is an example of /data?
/data get entity @s SelectedItem — Shows the full data of the item in your hand.
Do you need cheats for /data?
Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).