The Bug:
Rabbits sometimes don't drop any raw rabbit upon being killed.
Every passive mob drops at least one piece of meat upon being killed, however, this isn't the case for rabbits.
Steps to Reproduce:
Summon a rabbit.
/summon minecraft:rabbit ~ ~ ~ {NoAI:1b,Health:1f}
Kill it and take note of the loot it dropped.
If it dropped some meat, continue to spawn and kill rabbits until one of them doesn't.
Take note as to whether or not rabbits sometimes don't drop any raw rabbit upon being killed.
Observed Behavior:
Rabbits sometimes don't drop any raw rabbit upon being killed.
Expected Behavior:
Rabbits would always drop at least one piece of meat upon being killed.
Code Analysis:
Code analysis by @unknown can be found below.
data > minecraft > loot_tables > entities > rabbit.json
{
"type": "minecraft:entity",
"pools": [
...
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
...
{
"count": {
"type": "minecraft:uniform",
"max": 1.0,
"min": 0.0
},
"function": "minecraft:looting_enchant"
}
],
"name": "minecraft:rabbit"
}
],
"rolls": 1.0
},
...
If we look at the above json file, we can see that rabbits can drop a maximum of 1 raw rabbit and a minimum of 0 upon being killed, disregarding the use of the looting enchantment. This means that there is a 50% chance of a rabbit dropping raw rabbit upon death, thus resulting in this problem. Every other animal throughout the game such as cows, pigs, sheep, etc... have their minimum respective meat drop set to 1, meaning that they always have a guaranteed chance of dropping meat upon being killed, however, this isn't the case with rabbits as shown above.
Linked issues
Attachments
Comments 21
Can confirm this behavior in 21w40a. Here are some extra details regarding this problem.
The Bug:
Rabbits sometimes don't drop meat upon being killed.
Steps to Reproduce:
Summon a rabbit.
/summon minecraft:rabbit ~ ~ ~ {NoAI:1b,Health:1f}
Kill it and take note of the loot it dropped.
If it dropped some meat, continue to spawn and kill rabbits until one of them doesn't.
Observed Behavior:
Rabbits sometimes don't drop meat upon being killed.
Expected Behavior:
Rabbits would always drop meat upon being killed, just like how every other animal does.
Can confirm in 21w42a. I'd like to request ownership of this ticket since the current reporter has been inactive for over a year. I've willing to continue to provide all of the necessary information and will keep this report updated.
Rabbits are very small.