Data component format/custom name
Minecraft Wiki article. Categories: Top-level_data_pages
📌 Mirrored from Minecraft Wiki
This article is reproduced from Data component format/custom name on the Minecraft Wiki. Mirrored from revision 3573000. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
- [String][NBT List / JSON Array][NBT Compound / JSON Object] minecraft:custom_name: The player-assigned name of this item, block, or entity, typically assigned with an anvil or a name tag. See Text component format.
- If present on an item, this component has highest priority to display as the item's name, and appears italic unless overridden by the text component format.
- If present on an entity, it will replace the entity's name tag, will show the name tag to players when they hover over the entity (unless invisible), and will appear as that entity's name in commands and chat messages.
- If present on a block with a GUI (such as a container), this replaces the name at the top of the GUI.
- If present on a command block, this replaces the execution context name when the command is ran.
Sources
- Data component format/custom name — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3573000.