Mojira Archive
MC-276141

Instrument component no longer works with use_cooldown

Previously, in 24w34a, I could utilise both instrument and use_cooldown components, which allowed for versatile cooldown programming. In 24w35a, the use_cooldown component no longer triggers on release.

Steps to Reproduce

Acquire a goat horn with a use_cooldown.

/give @s minecraft:goat_horn[minecraft:use_cooldown={seconds:1}]

When it is played, the on-press (instrument) cooldown triggers as normal. However, when releasing right-click, the on-release cooldown does not trigger and override the on-use cooldown as it did back in 24w34a.

Using both components, one can program various sorts of effects. Examples include:

  • A fire breath spell that (on-press) can be channelled for up to 3 seconds, until going on a longer (on-release) cooldown.
  • A wand that can be held indefinitely to aim (like a bow), then fires on release, going on a cooldown.

If another solution is devised in the future that allows for these possibilities, it would be ideal. But for now, goat horns are love, and life.

Unresolved

proppinbags

2024-08-29, 01:11 PM

2024-12-03, 06:21 AM

4

3

Confirmed

Low

1317868

Expansion B

Items

24w35a, 1.21.3, 1.21.4 Release Candidate 1

-