Data Component
What is a Data Component?
Section titled “What is a Data Component?”A data component is a modular piece of data that can be attached to an item to define its behavior, appearance, or other attributes.
By default, minecraft items come with an existing set of data components that define their basic properties.
Implementation
Section titled “Implementation”Vanilla Data Components
Section titled “Vanilla Data Components”Vanilla data components are exposed via the VanillaItemComponent class.
| Vanilla Component Name | UCX Definition |
|---|---|
minecraft:item_model | VanillaItemComponent.ITEM_MODEL |
Custom Data Components NYI
Section titled “Custom Data Components ”Custom data components can be created and used to pass custom data into the item.