编辑

Items Documentation - minecraft:display_name

Sets the item display name within Minecraft: Bedrock Edition. This component may also be used to pull from the localization file by referencing a key from it.

Note

This item requires a format version of at least 1.20.0.

Item Display Name Properties

Name Default Value Type Description Example Values
value String Name shown for an item. Apple: "item.apple.name", Breeze Rod: "item.breeze_rod.name", Ominous Trial Key: "item.ominous_trial_key.name"

Samples

At sample:

"minecraft:display_name": {
  "value": "secret_weapon"
}

At sample with localication key:

"minecraft:display_name": {
  "value": "item.snowball.name"
}

Apple

"minecraft:display_name": {
  "value": "item.apple.name"
}

Breeze Rod

"minecraft:display_name": {
  "value": "item.breeze_rod.name"
}

Ominous Trial Key

"minecraft:display_name": {
  "value": "item.ominous_trial_key.name"
}

Red Shrub

"minecraft:display_name": {
  "value": "tile.red_shrub.name"
}

Shelf Mushroom

"minecraft:display_name": {
  "value": "tile.shelf_mushroom.name"
}