The id that represents this custom component. Must have a namespace. This id can be specified in a item's JSON configuration under the 'minecraft:custom_components' item component.
The collection of event functions that will be called when the event occurs on an item using this custom component id.
The collection of event functions that will be called when the event occurs on an item using this custom component id.
Readonly
typeThe id that represents this custom component. Must have a namespace. This id can be specified in a item's JSON configuration under the 'minecraft:custom_components' item component.
Define a custom item component.
Example