Item Attribute
Provides the value of an attribute from an item.
Type ID: kaya:item/attribute
Format
| Field | Type | Default | Description |
|---|---|---|---|
attribute |
Identifier | The ID of the attribute. | |
item |
Item Provider | The item to get the attribute from. | |
entity |
Entity Provider | optional | If specified, the base value of the attribute will be queried from this entity. |
Example
This example will provide the value of the minecraft:armor attribute from the item provided by the kaya:item_in_container context parameter.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |