User Tools

Site Tools


items:item_components:use_duration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
items:item_components:use_duration [2024/04/19 13:27] – removed - external edit (Unknown date) 127.0.0.1items:item_components:use_duration [2024/04/19 13:27] (current) – ↷ Links adapted because of a move operation errorcraft
Line 1: Line 1:
 +====== 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 [[items:item_components:consumable|minecraft:consumable]] and [[items:item_components:food|minecraft:food]].
  
 +
 +===== Fields =====
 +^  Name  ^  Description  ^  Type  ^  Default Value  ^
 +| ''ticks'' | How long to use the item for before finishing. | A positive integer | |
 +
 +
 +===== Example =====
 +<code javascript>
 +{
 +  "ticks": 40
 +}
 +</code>