Mojira Archive
MC-275674

Snapped goat horns don't have a pickup cooldown

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

Unresolved

Lord Baryhobal

2024-08-19, 07:57 PM

2024-08-23, 09:31 AM

1

1

Confirmed

Low

Gameplay

Items

1.21.1, 24w34a

-