Command block

Minecraft Data Merge Command Generator

Summoning an entity again resets it. /data merge edits the one that is already there, which is what you want for a boss mid-fight or an armor stand you have already positioned. Compose the NBT payload here and target the entity precisely.

  • Merge NBT into an existing entity without re-summoning it
  • Typed fields for CustomName, Health, Tags and attributes
  • Precise entity targeting through a selector

FAQ

How is /data merge entity different from summoning again?

Summoning a fresh entity resets it. /data merge entity edits the one already in the world -- a boss mid-fight, an armor stand you have positioned -- so its state and location stay put while you change name, health, tags or attributes.

How do I target exactly one entity?

Use a precise selector: @e[type=...,limit=1,sort=nearest] or a named tag. /data merge entity applies to every entity the selector matches, so an unbounded selector can edit more than you intend.

Can I read an entity value instead of writing one?

Yes -- /data get entity <selector> <path> returns a value, and /data merge writes one. This tool builds the merge (write) form; use /data get for inspection.