This is how the game itself shows it /help data: in angle brackets - what to substitute, in square brackets - optional, through a line - one of.
On page 6 sections
Briefly
Examples are verified by the game - copy
-
My health
/data get entity @s Health -
What's in the block under your feet
/data get block ~ ~-1 ~ -
Turn off AI for nearby zombies
/data merge entity @e[type=minecraft:zombie,limit=1,sort=nearest] {NoAI:1b}
Rights - game master.
/data merge (entity|block|storage)/data get (entity|block|storage)/data remove (entity|block|storage)/data modify (entity|block|storage)
We need a game master level: Level 2 for the command unit, for the data pack functions and for the guests of the world open to the network with authorized commands. It's written in server consoles without a cross-section.
| What | Meaning |
|---|---|
| command | /data |
| Rights | Playmaster (2) |
| Where is | on the server and in single player with cheats |
| Subcommands | get, merge, modify, remove |
How to use the command /data?
Syntax: /data merge. For example, /data get entity @s Health is my health.
What rights are needed for /data?
We need a game master level: Level 2 for the command unit, for the data pack functions and for the guests of the world open to the network with authorized commands.
Does /data work in the command unit?
Yeah, the command unit's doing right-level 2 commands, and this one doesn't need any more. You don't have to write a line in the block.
According to Minecraft 26.3, the syntax is a clue to /help from the game itself, right from her command report, each example is checked by a review of the game's commands.