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

Snapped goat horns don't have a pickup cooldown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.1, 24w34a
    • None
    • Confirmed
    • Items
    • Low
    • Gameplay

      When a goat's horn is snapped and drops as an item, it does not have a pickup cooldown. This means the player can pick it up instantly. Consequently, datapacks are not able to detect it because it doesn't even spend a single tick as an item entity.

      Steps to reproduce:

      1. Place a repeating, always active, unconditional command block with the command
        execute if entity @n[type=item, nbt={Item:{id:"minecraft:goat_horn"}}] run say Goat Horn detected
      2. Summon a goat
      3. Let the goat ram into a block with the tag #minecraft:snaps_goat_horn but stay very close

      Expected behavior:
      The horn should drop with a pickup cooldown of 10 ticks, like other mob drops. "Goat Horn detected" should thus print to the chat (at least once, preferably 10)

      Observed behavior:
      The horn is instantly picked up by the player, and no message is printed

            Unassigned Unassigned
            Baryhobal Lord Baryhobal
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: