Block Documentation - minecraft:display_name
minecraft:display_name
is a String
component that specifies the language file key that maps to what text will be displayed when you hover over the block in your inventory and hotbar. If the string given can not be resolved as a loc string, the raw string given will be displayed. If this component is omitted, the name of the block will be used as the display name.
Default Value of the Component
This component is specified as a Localization String
. If this component is omitted, the default value for this component is the name of the block.
Example
"minecraft:display_name": "customBlock"
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈