ItemUse
What using an item does, as Minecraft’s consumable and use_cooldown
components say it.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
consume? |
boolean |
Whether a use spends one copy from the slot it was used from. |
cooldownGroup? |
string |
The key the cooldown runs under in the entity’s CooldownsTrait, which every item naming it shares, as Minecraft’s cooldown_group does. Left out, the item cools down alone. |
cooldownSeconds? |
number |
Simulated seconds before the same entity can use this item again. |
effects? |
ItemEffect[] |
Run on the entity that uses it, in order. |