Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-167093

Rabbits don't always drop raw rabbit upon being killed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.80.20 Preview, 1.19.70.22 Preview, 1.19.60, 1.19.63, 1.20.0.21 Preview, 1.19.73, 1.20.0, 1.20.1 Hotfix
    • Confirmed
    • Multiple
    • 733981

      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. This was fixed on Java, however this fix hasn't carried over to Bedrock so far. (MC-96449)

      Step to Reproduce

      1. Summon a rabbit
      2. Kill it and take notice of the loot it dropped.
      3. If it dropped some raw rabbit, continue to spawn and kill rabbits until one of them doesn't.
      4. Take note as to whether or not rabbits sometimes don't drop any raw rabbit upon being killed.

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

      Expected Result
      Rabbits would always drop at least one piece of meat upon being killed.

      Code Analysis, based on the loot table of the Rabbit

      {
          "pools": [
              {
                  "rolls": 1,
                  "entries": [
                      {
                          "type": "item",
                          "name": "minecraft:rabbit_hide",
                          "weight": 1,
                          "functions": [
                              {
                                  "function": "set_count",
                                  "count": {
                                      "min": 0,
                                      "max": 1
                                  }
                              },
                              {
                                  "function": "looting_enchant",
                                  "count": {
                                      "min": 0,
                                      "max": 1
                                  }
                              }
                          ]
                      }
                  ]
              },
              {
                  "rolls": 1,
                  "entries": [
                      {
                          "type": "item",
                          "name": "minecraft:rabbit",
                          "weight": 1,
                          "functions": [
                              {
                                  "function": "set_count",
                                  "count": {
                                      "min": 0,
                                      "max": 1
                                  }
                              },
                              {
                                  "function": "furnace_smelt",
                                  "conditions": [
                                      {
                                          "condition": "entity_properties",
                                          "entity": "this",
                                          "properties": {
                                              "on_fire": true
                                          }
                                      }
                                  ]
                              }
                          ]
                      }
                  ]
              },
              {
                  "conditions": [
                      {
                          "condition": "killed_by_player"
                      },
                      {
                          "condition": "random_chance_with_looting",
                          "chance": 0.1,
                          "looting_multiplier": 0.03
                      }
                  ],
                  "rolls": 1,
                  "entries": [
                      {
                          "type": "item",
                          "name": "minecraft:rabbit_foot",
                          "weight": 1
                      }
                  ]
              }
          ]
      }
      

      Analyzing the json file above, we can see that rabbits can drop a maximum of 1 raw rabbit (referred as minecraft:rabbit on Bedrock) and a minimum of 0 upon being killed. This means that there is only 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 here.

            MCPE4theBeacon [Helper] lillybeacon
            Votes:
            9 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: