Minecraft:Use cooldown: Difference between revisions
More actions
Fix template calls: add MC/ prefix |
Sync: updated from Minecraft |
||
| Line 1: | Line 1: | ||
{{About|the mechanic used by certain items|the attack cooldown mechanic in {{ | {{About|the mechanic used by certain items|the attack cooldown mechanic in {{JE}}|Attack cooldown|other uses|Cooldown}} | ||
[[File:Use cooldown.gif|thumb|An example of an item being affected by the use cooldown.]] | [[File:Use cooldown.gif|thumb|An example of an item being affected by the use cooldown.]] | ||
The '''use cooldown''' (also known as '''recharge''', '''item cooldown''', or simply '''cooldown''') is a mechanic that delays {{ | The '''use cooldown''' (also known as '''recharge''', '''item cooldown''', or simply '''cooldown''') is a mechanic that delays {{control|using}} an item for a given time. It is represented by a transparent white bar that appears over the item in the [[Minecraft:hotbar]] and [[Minecraft:inventory]]. | ||
== Mechanic == | == Mechanic == | ||
For most items that are affected by it, the use cooldown triggers after using the item, and is represented by a transparent white bar that decreases in height as the cooldown nears the end of its duration. The use cooldown affects all instances of a given item type that a player has, not just the one that was used. For [[Minecraft:shield]]s specifically, the use cooldown activates when the shield has been disabled by an [[Minecraft:axe]]. For [[Minecraft:spear]]s in {{ | For most items that are affected by it, the use cooldown triggers after using the item, and is represented by a transparent white bar that decreases in height as the cooldown nears the end of its duration. The use cooldown affects all instances of a given item type that a player has, not just the one that was used. For [[Minecraft:shield]]s specifically, the use cooldown activates when the shield has been disabled by an [[Minecraft:axe]]. For [[Minecraft:spear]]s in {{BE}} specifically, the use cooldown activates after performing a [[Minecraft:jab attack]]. | ||
== Affected items == | == Affected items == | ||
The following is a list of items that have a use cooldown: | The following is a list of items that have a use cooldown: | ||
* {{ | * {{ItemLink|Ender Pearl}} (1 second / 20 ticks) | ||
* {{ | * {{ItemLink|Chorus Fruit}} (1 second / 20 ticks) | ||
* {{ | * {{ItemLink|Ice Bomb}} (1 second / 20 ticks){{Only|Bedrock|Education}} | ||
* {{ | * {{ItemLink|Wind Charge}} (1 second / 20 ticks) | ||
* {{ | * {{ItemLink|Goat Horn}} (7 seconds / 140 ticks) | ||
* {{ | * {{ItemLink|Shield}} (5 seconds / 100 ticks) | ||
* {{ | * {{ItemLink|Spear}}{{Only|Bedrock}} | ||
** {{ItemLink|Wooden Spear}} (0.65 seconds / 13 ticks){{Only|Bedrock}} | |||
** {{ | ** {{ItemLink|Stone Spear}} (0.75 seconds / 15 ticks){{Only|Bedrock}} | ||
** {{ | ** {{ItemLink|Copper Spear}} (0.85 seconds / 17 ticks){{Only|Bedrock}} | ||
** {{ | ** {{ItemLink|Golden Spear}} (0.95 seconds / 19 ticks){{Only|Bedrock}} | ||
** {{ | ** {{ItemLink|Iron Spear}} (0.95 seconds / 19 ticks){{Only|Bedrock}} | ||
** {{ | ** {{ItemLink|Diamond Spear}} (1.05 seconds / 21 ticks){{Only|Bedrock}} | ||
** {{ | ** {{ItemLink|Netherite Spear}} (1.15 seconds / 23 ticks){{Only|Bedrock}} | ||
** {{ | * {{ItemLink|Snowball}} (0.2 seconds / 4 ticks){{Upcoming|Java Combat Tests|nocat=1}} | ||
* {{ | * {{ItemLink|Egg}} (0.2 seconds / 4 ticks){{Upcoming|Java Combat Tests|nocat=1}} | ||
* {{ | |||
=== Removed === | |||
* {{ItemLink|Copper Horn}} (7 seconds / 140 ticks) | |||
== Attribute == | == Attribute == | ||
In {{ | In {{JE}}, the use cooldown of a given item is controlled by its [[Minecraft:Data_component_format#use_cooldown|use cooldown data component]]: | ||
<div class="treeview"> | <div class="treeview"> | ||
* {{ | * {{nbt|compound|components}}: Parent tag. | ||
{{:Data_component_format/use_cooldown}} | {{:Data_component_format/use_cooldown}} | ||
</div> | </div> | ||
| Line 38: | Line 40: | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|Java}} | ||
|{{ | |{{HistoryLine||1.9|dev=15w34c|Added the use cooldown, currently only used by ender pearls, chorus fruit, and shields.}} | ||
|{{ | |{{HistoryLine||1.21.2|dev=24w34a|Made the <code>use_cooldown</code> component a [[Minecraft:data component]].}} | ||
|{{ | |{{HistoryLine|foot}} | ||
}} | }} | ||
== Navigation == | == Navigation == | ||
{{ | {{Navbox combat|general}} | ||
{{ | {{Navbox gameplay}} | ||
[[Category:Gameplay]] | [[Category:Gameplay]] | ||
fr:Temps de chargement d'utilisation | [[Minecraft:fr:Temps de chargement d'utilisation]] | ||
pt:Tempo de uso | [[Minecraft:pt:Tempo de uso]] | ||
zh:物品冷却 | [[Minecraft:zh:物品冷却]] | ||
Revision as of 11:11, 14 April 2026
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
The use cooldown (also known as recharge, item cooldown, or simply cooldown) is a mechanic that delays Template:Control an item for a given time. It is represented by a transparent white bar that appears over the item in the Minecraft:hotbar and Minecraft:inventory.
Mechanic
For most items that are affected by it, the use cooldown triggers after using the item, and is represented by a transparent white bar that decreases in height as the cooldown nears the end of its duration. The use cooldown affects all instances of a given item type that a player has, not just the one that was used. For Minecraft:shields specifically, the use cooldown activates when the shield has been disabled by an Minecraft:axe. For Minecraft:spears in Template:BE specifically, the use cooldown activates after performing a Minecraft:jab attack.
Affected items
The following is a list of items that have a use cooldown:
- Template:ItemLink (1 second / 20 ticks)
- Template:ItemLink (1 second / 20 ticks)
- Template:ItemLink (1 second / 20 ticks)Template:Only
- Template:ItemLink (1 second / 20 ticks)
- Template:ItemLink (7 seconds / 140 ticks)
- Template:ItemLink (5 seconds / 100 ticks)
- Template:ItemLinkTemplate:Only
- Template:ItemLink (0.65 seconds / 13 ticks)Template:Only
- Template:ItemLink (0.75 seconds / 15 ticks)Template:Only
- Template:ItemLink (0.85 seconds / 17 ticks)Template:Only
- Template:ItemLink (0.95 seconds / 19 ticks)Template:Only
- Template:ItemLink (0.95 seconds / 19 ticks)Template:Only
- Template:ItemLink (1.05 seconds / 21 ticks)Template:Only
- Template:ItemLink (1.15 seconds / 23 ticks)Template:Only
- Template:ItemLink (0.2 seconds / 4 ticks)Template:Upcoming
- Template:ItemLink (0.2 seconds / 4 ticks)Template:Upcoming
Removed
- Template:ItemLink (7 seconds / 140 ticks)
Attribute
In Template:JE, the use cooldown of a given item is controlled by its use cooldown data component:
- Template:Nbt: Parent tag.
History
Template:Navbox combat Template:Navbox gameplay
Minecraft:fr:Temps de chargement d'utilisation Minecraft:pt:Tempo de uso Minecraft:zh:物品冷却