Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-276141

Instrument component no longer works with use_cooldown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 24w35a
    • None
    • Confirmed
    • Items
    • Low
    • Expansion B

      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.

            Unassigned Unassigned
            proppinbags proppinbags
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: