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

Rabbits sometimes don't drop any raw rabbit upon being killed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 22w42a
    • Minecraft 1.8.9, Minecraft 16w04a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, 1.15.2, 1.16.1, 1.16.4, 20w48a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w11a, 21w16a, 21w17a, 1.17, 1.17.1, 21w40a, 21w42a, 21w43a, 21w44a, 1.18 Pre-release 1, 1.18 Pre-release 7, 1.18, 1.18.1, 22w03a, 22w05a, 22w06a, 1.18.2 Release Candidate 1, 1.18.2, 22w17a, 1.19, 1.19.2
    • Confirmed
    • Loot tables
    • Normal

      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 Avoma 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.

        1. MC-96449.mp4
          3.59 MB
          [Mod] Avoma
        2. MC-96449 - rabbit.json.png
          26 kB
          [Mod] Avoma

            juvanoort Justin van Oort
            Avoma [Mod] Avoma
            Votes:
            17 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: