mojira.dev
MC-299193

Use cooldown of crossbows can be bypassed since 1.21.5 [Regression]

You can bypass the use cooldown of a crossbow (that has been set to have a cooldown) by letting go of the use button right as it’s about to charge. See attachment for demonstration.

Steps to Reproduce:

  1. Give yourself a crossbow with a use_cooldown flag and arrows running these commands

    /give @s minecraft:crossbow[minecraft:use_cooldown={seconds:5}]
    /give @s minecraft:arrow 64
  2. Hold the use button and let go of it just as the crossbow charging animation is about to finish

  3. If you’ve loaded the crossbow without making the crossbow enter the cooldown (you should not be able to shoot for 5 seconds after loading it), you’ve reproduced the bug!

Expected Result:

  • The crossbow should enter cooldown consistently when it is loaded.

Actual Result:

  • The crossbow does not enter cooldown if you let go of your use button at the last moment, making the crossbow load without it entering cooldown.

This issue has appeared in 1.21.5 and it persists up to 1.21.8.

Linked issues

Attachments

Comments 6

[media]

here’s a slightly smaller file sized video if you are having issues playing the original one

I’ve just tested this issue in 1.21.7 rc2, it is also behaving the same way, can still bypass cooldown.

I’ve tested this issue in 1.21.7 stable, it has not been fixed.

Can confirm in 1.21.7

I’d like to clarify a mistake i made, this issue appeared in 1.21.5! I didn’t realise as i had updated to to 1.21.6 from 1.21.4, skipping 1.21.5. sorry about that.

Not fixed in 1.21.8

Mineatom

(Unassigned)

Confirmed

Gameplay

Normal

Combat, Commands, Items

1.21.6, 1.21.7 Release Candidate 2, 1.21.7, 1.21.8 Release Candidate 1, 1.21.8, 25w31a

Retrieved