Component use_cooldown does not apply to some items
Affected items:
- Shields (being broken by axes)
- Totems of Undying
- Crossbows (goes on cooldown after the arrow is loaded instead of after being fired)
Steps to reproduce:
- Run
/give @s shield[use_cooldown={seconds:0.001}] - Summon a vindicator/piglin brute and let it attack you with its axe
Observed result:
The shield has its standard cooldown.
Expected result:
The shield has no cooldown.
Linked Issues
relates to3
Created Issue:
Component use_cooldown does not apply to some items
give @s shield[use_cooldown=
{seconds:0.001}] can't prevent the shield from being broken
{seconds:0.001}
but give @s ender_pearl[use_cooldown=] can not cooldown teleport
It also works on food and most projectiles
but to totem of undying fireworkrocket trident compass(used to lodestone) There is also an issue where the crossbow goes on cooldown after the arrow is loaded instead of after it is firedEnvironment
Java 21.0.2 Windows 11
give @s shield[use_cooldown=
{seconds:0.001}] can't prevent the shield from being broken
{seconds:0.001}
but give @s ender_pearl[use_cooldown=
] can notcooldown teleport
It also works on food and most projectiles
but to totem of undying fireworkrocket trident compass(used to lodestone)There is also an issue where the crossbow goes on cooldown after the arrow is loaded instead of after it is firedgive @s shield[use_cooldown={seconds:0.001}]can't prevent the shield from being broken, but
/give @s ender_pearl[use_cooldown={seconds:0.001}]removes the cooldown on teleporting.
It also works on food and most projectiles, but does not work on totems of undying, firework rockets, tridents.
There is also an issue where the crossbow goes on cooldown after the arrow is loaded instead of after it is fired.
give @s shield[use_cooldown={seconds:0.001}]can't prevent the shield from being broken, but
/give @s ender_pearl[use_cooldown={seconds:0.001}]removes the cooldown on teleporting.
It also works on food and most projectiles, but does not work on totems of undying, firework rockets, tridents.
There is also an issue where the crossbow goes on cooldown after the arrow is loaded instead of after it is fired.Affected items:
- Shields (being broken by axes)
- Totems of Undying
- Crossbows (goes on cooldown after the arrow is loaded instead of after being fired)
Steps to reproduce:
- Run
/give @s shield[use_cooldown={seconds:0.001}]- Summon a vindicator/piglin brute and let it attack you with its axe
Observed result:
The shield has its standard cooldown.Expected result:
The shield has no cooldown.
Java 21.0.2 Windows 11
relates to
relates to
relates to
When the player uses a fishing rod with the use_cooldown component on it, the cooldown will start upon casting the rod as well as reeling it back in. While this may make sense from an item perspective since the fishing rod is 'used' twice by right-clicking, from a gameplay perspective one 'usage' of the fishing rod would include both casting and reeling in.
If the player has a 10 second cooldown on the fishing rod, this effectively doubles the item cooldown for the item making it 20 seconds until it can be entirely used again.
Steps to Reproduce:
- Get a fishing rod with a cooldown
/give @s minecraft:fishing_rod[minecraft:use_cooldown={seconds:7}] - Cast it
Expected Result:
The fishing rod would not be put on cooldown yet until the player actually makes functional use of the item by pulling in the bobber.
Observed Behavior:
The fishing rod is put on a 7 second cooldown to cast the bobber.
It seems to work correctly on tridents and firework rockets that are used when not launching them from the ground. Launching fireworks from the ground is covered in MC-275796.