PT-BR EN ES
Channel Icon

Crazy Ozz

Official Channel Website

Command Block

Minecraft Data Command Generator Java Edition

Use this Data Command Generator to read, copy, edit, or remove NBT values from entities, blocks, and storages in Minecraft Java Edition. Choose the operation, the target, and the NBT path below and copy your ready-to-use command.

Operation

get read
merge merge
modify modify
remove remove

Target

entity Entity or player
block Block with NBT
storage Virtual storage
@s (yourself) Nearest zombie All players By tag

Use ~ for coordinates relative to the execution position.

Mode (modify)

Read (get)

health position inventory name tags item [0] motion X

Leave blank to read the full NBT. Use dot notation to access nested keys. The scale multiplies the returned numerical value (only applies when a path is provided).

NBT Data (merge)

The provided data is merged with the existing NBT on the target, overwriting only the specified keys.

Path (modify)

name health inventory tags
entity Entity or player
block Block with NBT
storage Virtual storage

Path (remove)

name tags inventory

The path is required: remove deletes a specific key from the NBT, never the entire target.

NBT Explorer

Click on a path field (get/modify/remove) and then click on an item in the tree to insert the path automatically.

Build a custom NBT structure field by field and insert it directly into the Merge or the Modify Value fields.

Generated Data Command

data get entity @s

Want to create a cheap and lag-free Minecraft server?

I highly recommend Sparked Host: affordable plans, great performance, easy-to-use panel, and fast support.

🚀 Create a server on Sparked Host

How to Use the Data Command Generator

This generator creates /data commands, which are used to read, merge, modify, and remove NBT data from entities, blocks with NBT (such as chests and signs), and storages (virtual data storages).

Example of a generated command:

/data get entity @s Inventory[0].id 1

This command reads the item ID in the first slot of the inventory of the player executing the command.

Supported Operations

get

Reads and displays the NBT value of a specific path in the chat, without making changes.

merge

Merges new NBT data with the existing data on the target.

modify

Modifies the value of an NBT path, either by setting a literal value or copying from another target.

remove

Removes a specific key from the target's NBT.

Frequently Asked Questions

What is the Data command used for in Minecraft?

The Data command allows you to read (get), copy (merge), edit (modify), and remove (remove) NBT values from entities, blocks with NBT, and virtual storages.

What is the difference between /data get and /data modify?

The /data get command only reads and displays an NBT value in chat, whereas /data modify actually changes the value of that NBT path on the target.

What is a storage in the /data command?

Storage is a virtual NBT storage identified by a namespace, used to save data without needing an associated entity or block.

How do I copy a value from one place to another using /data modify?

Use /data modify <target> <path> <mode> from <source> <source path>, choosing the target and the path from which the value will be copied.

Does the /data command work in Bedrock Edition?

No. The /data command with this syntax is exclusive to Java Edition; Bedrock Edition does not have a direct equivalent command.

Related Generators