1. Wiki
  2. /Items
  3. /minecraft:display_name

minecraft:display_name

Don't want to write this by hand? GodCraft sets minecraft:display_name for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
valuestring""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": ""
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more