mojira.dev
MC-296214

The item component "use_cooldown" resets upon death or exiting the game

Steps to reproduce:

  1. Run

    /give @s minecraft:snowball[use_cooldown={seconds:180,cooldown_group:"snowball"}] 2
  2. Use the given item

  3. Run

    /kill @s

    or
    Leave the game

Expected results:

The cooldown persists

Observed results:

The cooldown is completely reset

Linked issues

Comments

Vikram Upadhye

summon an armor stand with custom name in a format like this {CustomName:'\”Name\”'}

after that use the scoreboard command to tag the armor stand with the respective cooldown. This will stop the cooldown from reseting after the player respawns

Vikram Upadhye

remember to run /scoreboard objectives add Cooldown dummy at the start

[MOD] Greymagic27

Thank you for your report!
We're tracking this issue in https://report.bugs.mojang.com/servicedesk/customer/portal/2/MC-111801 , so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
πŸ““ Bug Tracker Guidelines -- πŸ’¬ Community Support -- πŸ“§ Mojang Support (Technical Issues) -- πŸ“§ Microsoft Support (Account Issues) -- ✍️ Feedback and Suggestions -- πŸ“– Game Wiki

Haikis

(Unassigned)

Unconfirmed

(Unassigned)

1.21.5

Retrieved