Item Documentation - minecraft:cooldown
minecraft:cooldown
sets an items "Cool down" time. After using an item, it becomes unusable for the duration specified by the 'duration' setting of this component.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
category | not set | JSON Object | The type of cool down for this item. |
duration | not set | Float | The duration of time (in seconds) items with a matching category will spend cooling down before becoming usable again. |
Example
"minecraft:cooldown":{
"category" : "attack",
"duration" : 0.2
}
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈