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

Mario

Does this work in multiplayer?

VideoklipBG

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.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w11a.

Avoma

Can confirm in 21w17a.

Avoma

Can confirm in 1.17.1.

[Mod] EVGENSYPERPRO

also applies to the chorus fruit and ender pearl

Avoma

Can confirm in 1.19.2.

Shuddery

Applies to Goat Horns

Soul_luoS

Can confirm inΒ 1.20.1

endsky

Can confirm in 1.21.2

Haikis

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, ..., 1.19.3, 23w04a, 24w35a, 1.21.2, 1.21.4 Release Candidate 3

Retrieved