Using Item
Checks whether the player is using an item (holding right-click, as in drinking a potion or eating food).
Type ID: origins:using_item
Fields:
| Field | Type | Default | Description |
|---|---|---|---|
item_condition |
Item Condition | optional | If specified, the condition will only pass if the item that is being used fulfills this condition. |
Example:
"condition": {
"type": "origins:using_item",
"item_condition": {
"type": "origins:food"
}
}
Checks whether the entity is currently eating food.