Consume Item
Reduces the count of an item.
Type ID: kaya:consume_item
Format
| Field | Type | Default | Description |
|---|---|---|---|
amount |
Int Provider | 1 |
The amount to subtract from the item's count. |
slot |
Slot Provider | The slot of the item to consume. |
Example
{
"type": "kaya:consume_item",
"slot": {
"type": "kaya:entity",
"entity": "this",
"slot": {
"type": "kaya:slot_id",
"slot": "hotbar.0"
}
}
}
This example will consume the item from the first hotbar slot of the entity provided by the kaya:this_entity context parameter.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |