minecraft:display_name for you with a switch.Get GodCraftOverview
minecraft:display_name is an item component: it goes in the components object of a custom item. Sets the name players see for the item, for example in the tooltip and when they switch to it. You can use a translation key so the name changes with the game language.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
value | string | "" | The name text, or a localization key from your .lang file. |
Example
Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):
BP/items/<name>.json
{
"minecraft:display_name": {
"value": ""
}
}