name

var name: Component

The display name of the item.

If not explicitly set, defaults to a translatable component using the pattern item.{namespace}.{path}. For example, an item with id "mymod:custom_sword" would default to the translation key "item.mymod.custom_sword".