編輯

共用方式為


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.

Display Name Properties

Name Default Value Type Description Example Values
value not set 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"
}

Trial Key

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

Wind Charge

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

Bag o Leaves

"minecraft:display_name": {
  "value": "Bag o' Leaves"
}

Chestplate

"minecraft:display_name": {
  "value": "My Custom Armor"
}

Goo

"minecraft:display_name": {
  "value": "Weird Goo"
}

My Boots

"minecraft:display_name": {
  "value": "My Custom Boots"
}

My Helm

"minecraft:display_name": {
  "value": "My Custom Helmet"
}