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

Polar bears killed by fire/lava does not drop cooked fish

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.21.40.20 Preview, 1.21.40
    • 1.18.10.21 Beta, 1.18.10.20 Beta, 1.18.0.22 Beta, 1.17.30.23 Beta, 1.17.30.20 Beta, 1.17.11 Hotfix, 1.17.10, 1.17.20.20 Beta, 1.17.10.21 Beta, 1.17.10.20 Beta, 1.16.220, 1.16.220.52 Beta, 1.16.210, 1.16.221 Hotfix, 1.17.0, 1.17.2 Hotfix, 1.17.30, 1.17.40, 1.17.41 Hotfix, 1.18.0, 1.18.30.30 Beta, 1.18.30.31 Preview, 1.18.12 Hotfix, 1.19.60
    • Confirmed
    • Multiple
    • 494962

      When you kill a polar bear with lava or fire aspect sword, it does not drop cooked fish, but instead raw fish. This bug is fixed in the next Java snapshot. (MC-102269)

      Step to Reproduce
      1. Spawn a polar bear (preferably an adult one, baby doesn't drop anything)
      2. Get a sword enchanted with fire aspect or a bucket of lava
      3. Kill the polar bear.
      ---> It drops raw cod/salmon, instead of cooked one.

      The Fix
      In polar_bear.json file in the loot_table/entities folder, you can add these functions to get the cooked one:

      {
          "pools": [
           {
              "rolls": 1,
              "entries": [
                {
                  "type": "item",
                  "name": "minecraft:fish",
                  "weight": 3,
                  "functions": [
                    {
                      "function": "set_count",
                      "count": {
                        "min": 0,
                        "max": 2
                      }
                    },
                    {
                      "function": "looting_enchant",
                      "count": {
                        "min": 0,
                        "max": 1
                      }
                    },
                    {
                      "function": "furnace_smelt",
                      "conditions": [
                        {
                          "condition": "entity_properties",
                          "entity": "this",
                          "properties": {
                            "on_fire": true
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
            "rolls": 1,
              "entries": [
                      {
                          "type": "item",
                          "name": "minecraft:salmon",
                          "weight": 1,
                        "functions": [
                          {
                            "function": "set_count",
                            "count": {
                              "min": 0,
                              "max": 2
                            }
                          },
                          {
                            "function": "looting_enchant",
                            "count": {
                              "min": 0,
                              "max": 1
                            }
                          },
                          {
                            "function": "furnace_smelt",
                            "conditions": [
                              {
                                "condition": "entity_properties",
                                "entity": "this",
                                "properties": {
                                  "on_fire": true
                                }
                              }
                            ]
                          }
                        ]
                      }
                  ]
              }
          ]
      }
      

        1. polar_bear.json
          2 kB
          [Helper] lillybeacon

            MCPE4theBeacon [Helper] lillybeacon
            Votes:
            17 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: