Item
Encodes the item as NBT and uses it as the provided value.
Type ID: kaya:item
Info
See Minecraft Wiki: Data component format (Item format) for the format when the item is encoded as NBT.
Format
| Field | Type | Default | Description |
|---|---|---|---|
item |
Item Provider | The item to encode as NBT. |
Example
This example encodes the item provided by the kaya:used_item context parameter and uses it as the provided value.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |