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

Unflattened enchanted golden apple ID is used for rarity in vanilla resources, causing issues changing rarity with flattened ID

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.60.21 Preview, 1.21.50.22 Preview, 1.21.40.25 Preview, 1.21.40.21 Preview, 1.21.30.24 Preview, 1.21.30.23 Preview, 1.21.30
    • Confirmed
    • Multiple
    • 1291505

      The Enchanted Golden Apple was changed to be Rare in 1.21.30 instead of Epic. The item files in the vanilla and vanilla_1.21.30 resources still use its original item ID, appleEnchanted, instead of its flattened ID, enchanted_golden_apple.

      Despite not being affected by MCPE-185729, the enchanted golden apple cannot have its rarity overwritten using a file named enchanted_golden_apple.json with an identifier using the current ID. Instead, resource packs must use appleEnchanted.json with the alias ID.

      For some reason, the rarity property is affected by this bug, but the hover_text_color property is not. This may be because the original appleEnchanted file does not contain this field at all.

      Two sample packs are included with this report. Both attempt to change the Enchanted Golden Apple rarity to Epic. The pack which uses the appleEnchanted ID works correctly; the pack which uses the enchanted_golden_apple ID does not.

      Old ID Result (Using Epic Rarity) New ID Result (Using Epic Rarity)

      Expected Result

      The flattened enchanted_golden_apple ID can be used to change its rarity in a resource pack. Both sample packs work identically.

      Observed Result

      The flattened enchanted_golden_apple ID is ignored in resource packs when changing rarity in favor of the old alias ID appleEnchanted. Only one sample pack works correctly.

        1. BUGGED_Sample_Pack.mcpack
          1 kB
          AgentMindStorm2
        2. image-2024-08-18-13-23-31-231.png
          40 kB
          AgentMindStorm2
        3. image-2024-08-18-13-24-10-936.png
          20 kB
          AgentMindStorm2
        4. WORKING_Sample_Pack.mcpack
          1 kB
          AgentMindStorm2

            AgentMindStorm2 AgentMindStorm2
            Votes:
            11 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: