items:item_components:use_duration
Table of Contents
minecraft:use_duration
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.
Fields
Name | Description | Type | Default Value |
---|---|---|---|
ticks | How long to use the item for before finishing. | A positive integer |
Example
{ "ticks": 40 }
items/item_components/use_duration.txt · Last modified: 2024/04/19 13:27 by errorcraft