Skip to content

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.

Vanilla data components are exposed via the VanillaItemComponent class.

Vanilla Component NameUCX Definition
minecraft:item_modelVanillaItemComponent.ITEM_MODEL

Custom data components can be created and used to pass custom data into the item.