Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

ItemUse

What using an item does, as Minecraft’s consumable and use_cooldown components say it.

Property Type Description
consume? boolean Whether a use spends one copy from the slot it was used from.
cooldownGroup? CooldownKey The key the cooldown runs under in the entity’s CooldownsTrait, from defineCooldown, which every item naming it shares, as Minecraft’s cooldown_group does, and which a game’s own skill may start too, so a potion and a dash share one timer. Left out, the item cools down alone, under item: and its name.
cooldownSeconds? number Simulated seconds before the same entity can use this item again.
effects? ItemEffect[] Run on the entity that uses it, in order.