🧬
Advanced
/data
View or change the hidden NBT data of entities and blocks.
At a glance
Syntax
Syntax
/data get entity <target> [path]commandtargetcoordsvaluerequiredoptional
See it
What it does
/
Command executed
Anatomy
Every part, explained
- 1
CommandRequired/dataGets, merges, or modifies NBT.
- 2
ActionRequiredgetUse get, merge, modify, or remove.
- 3
SourceRequiredentity <target>An entity, block, or storage.
- 4
NBT pathOptional[path]A specific value to read.
Your turn
Try it yourself
Playground
4 tokens · press Enter to run
Copy & paste
Examples
/data get entity @sShow all of your NBT.
/data get entity @s HealthRead your current health.
/data merge entity @s {NoGravity:1b}Disable your gravity.
Avoid these
Common mistakes
✕
/data get @s✓
/data get entity @sSay the source type: entity, block, or storage.
✕
/data entity @s get✓
/data get entity @sThe action comes before the source.
Keep going