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

Enchanted Apples do not generate in worlds due to loot table discrepancy

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.2.9.1, 1.2.10.1
    • Fix Version/s: 1.2.13.12
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Platform:
      Windows 10 - PC
    • VSO:
      98569

      Description

      Verification builds:
      1.2.10.1 | Windows 10: Yes

      Summary:
      Enchanted apples can no longer be found in worlds because the vanilla loot tables still name them as "minecraft:golden_apple" with a data value of 1, instead of their newer name "minecraft:appleEnchanted". This was tested and confirmed by editing a behaviour pack to reflect this change in item naming.

      According to the wiki:

      Golden apples (enchanted) can be found in 2.6% of desert temple chests, 3.1% of dungeon chests, 1.4% of chest minecarts in abandoned mineshafts, and 3.1% of woodland mansion chests, all in stacks of 1.

      Therefore the vanilla loot tables should be changed to allow the items to be generated and found in worlds again, which is especially important now that they can no longer be crafted.

      Steps to Reproduce:

      1. Start any new world
      2. Explore any of the above mentioned places where enchanted apples could be found as loot

      Observed Results:
      None will be found, because they do not appear correctly in the loot tables.

      Expected Results:
      Enchanted apples should be able to be obtained as loot from treasure chests in various places in the world.

      Screenshots/Videos attached: No

      Notes:

      Current vanilla loot table snippet, taken from woodland_mansion.json:

      {
                "type": "item",
                "name": "minecraft:golden_apple",
                "weight": 75
              },
              {
                "type": "item",
                "name": "minecraft:golden_apple",
                "weight": 10,
                "functions": [
                  {
                    "function": "set_data",
                    "data": 1
                  }
                ]
              },
      

      Example of corrected loot table snippet, expected for woodland mansions:

      {
                "type": "item",
                "name": "minecraft:golden_apple",
                "weight": 75
              },
              {
                "type": "item",
                "name": "minecraft:appleEnchanted",
                "weight": 10
              },
      

        Attachments

          Activity

            People

            • Reporter:
              Mega_Spud [Minecraft] Mega_Spud (Jay Wells)
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: