mojira.dev
MC-111801

Item cooldown resets when re-logging in singleplayer / re-connecting in multiplayer

The bug

When player or mob hits you with an axe while blocking with shield - it gets a few seconds cooldown before it can be used again. If you re-log (reload the world) in singleplayer or disconnect and reconnect in multiplayer server while the cooldown is active - it disappears (resets) and the shield can be used again immediately.

How to reproduce

  1. Block with a shield

  2. Let a mob (for example) with an axe attack you

  3. You will hear the "tool breaking" sound and the shield will get cooldown for a few seconds

  4. When the cooldown is active - reload the world or reconnect in multiplayer
    β†’ ❌ The shield will have no cooldown and will be able to block damage again

Linked issues

Attachments

Comments 15

Does this work in multiplayer?

Surprisingly the bug exists also in multiplayer (server). If a shield is on cooldown and a player disconnects and reconnects the cooldown dissapears / resets.

Hans Husurianto

I'd like to add that it does make sense if it's in multiplayer (server) as the game is running even though a player leaves the game. (The time it takes for a shield to cool down is definitely faster than it takes for a player to disconnect and reconnect).

In singleplayer, however, it should be persistent between playtimes.

Can confirm in 21w03a.

Can confirm in 21w05b.

5 more comments

Can confirm in 1.19.2.

Applies to Goat Horns

Can confirm inΒ 1.20.1

Can confirm in 1.21.2

The cooldown also resets upon a player's death.
Additionally, the bug now affects any custom items with the 'use_cooldown' item component.

VideoklipBG

(Unassigned)

Confirmed

Platform

Low

Items

cooldown, shield

Minecraft 1.11.2, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12.2, Minecraft 17w45b, ..., 23w04a, 24w35a, 1.21.2, 1.21.4 Release Candidate 3, 1.21.7 Release Candidate 2

Retrieved