The minecraft:use_duration
item component allows its user to start using the item for a given amount of ticks, and finishes using the item afterwards.
This item component is usually combined with minecraft:consumable and minecraft:food.
Name | Description | Type | Default Value |
---|---|---|---|
ticks | How long to use the item for before finishing. | A positive integer |
{ "ticks": 40 }