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:
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
Summon a goat
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
Comments 0
No comments.