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

Leaves items with incorrect damage/metadata values become oak/acacia instead of their actual species

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.18.2
    • Confirmed
    • Datafixer

      The bug

      minecraft:leaves items with damage values 4 to 15 as well as minecraft:leaves2 items with damage values 2 to 15 become oak and acacia leaves respectively if upgraded to the latest version. This is incorrect in most cases, as they should be upgraded to the species that matches their metadata modulo 4.

      While at first this might seem like a weird wontfix/feature request since these metadata values are unsupported, it is important to consider that they were obtainable in Survival mode due to bugs; all 12 invalid minecraft:leaves were obtainable due to MC-1847, minecraft:leaves2 with metadata 4 and 5 were obtainable due to MC-57973 and metadata 8 and 9 due to MC-62017. As such, it is certain that several players will have unknowingly obtained and retained some of these items at some point.

      How to reproduce

      1. Play in 17w46a or earlier
      2. Obtain minecraft:leaves and minecraft:leaves2 items with extreme metadata values either with commands or historical game bugs
      3. Load the world in the latest version

      Expected results

      The leaves items would be converted accordingly:

      • minecraft:leaves 0, 4, 8 and 12 would become minecraft:oak_leaves
      • minecraft:leaves 2, 6, 10 and 14 would become minecraft:birch_leaves
      • minecraft:leaves 1, 5, 9 and 13 would become minecraft:spruce_leaves
      • minecraft:leaves 3, 7, 11 and 15 would become minecraft:jungle_leaves
      • minecraft:leaves2 0, 4, 8 and 12 would become minecraft:acacia_leaves
      • minecraft:leaves2 1, 5, 9 and 13 would become minecraft:dark_oak_leaves
      • minecraft:leaves2 2, 3, 6, 7, 10, 11, 14 and 15, due to not corresponding to any existing species, would either be deleted entirely, converted to azalea and/or mangrove leaves, or would default to acacia leaves

      Actual results

      minecraft:leaves 0, 4, 8 and 12 do in fact convert to minecraft:oak_leaves and minecraft:leaves2 0, 4, 8 and 12 to minecraft:acacia_leaves as they should. However, the other 12 values of minecraft:leaves also convert to oak leaves and the other 14 values of minecraft:leaves2 to acacia leaves, instead of their expected species.

        1. 2022-03-30_21.13.36.png
          2022-03-30_21.13.36.png
          48 kB
        2. 2022-03-30_21.13.37.png
          2022-03-30_21.13.37.png
          49 kB
        3. 2022-03-30_21.13.38.png
          2022-03-30_21.13.38.png
          50 kB
        4. 2022-03-30_21.13.39_2.png
          2022-03-30_21.13.39_2.png
          51 kB
        5. 2022-03-30_21.13.39.png
          2022-03-30_21.13.39.png
          51 kB
        6. 2022-03-30_21.13.40.png
          2022-03-30_21.13.40.png
          52 kB
        7. 2022-03-30_21.13.41_2.png
          2022-03-30_21.13.41_2.png
          52 kB
        8. 2022-03-30_21.13.41.png
          2022-03-30_21.13.41.png
          52 kB
        9. 2022-03-30_21.13.42.png
          2022-03-30_21.13.42.png
          53 kB
        10. 2022-03-30_21.13.43.png
          2022-03-30_21.13.43.png
          53 kB
        11. 2022-03-30_21.13.44_2.png
          2022-03-30_21.13.44_2.png
          53 kB
        12. 2022-03-30_21.13.44.png
          2022-03-30_21.13.44.png
          54 kB
        13. 2022-03-30_21.13.45.png
          2022-03-30_21.13.45.png
          53 kB
        14. 2022-03-30_21.18.41.png
          2022-03-30_21.18.41.png
          126 kB
        15. 2022-03-30_21.18.42_2.png
          2022-03-30_21.18.42_2.png
          132 kB
        16. 2022-03-30_21.18.42.png
          2022-03-30_21.18.42.png
          131 kB
        17. 2022-03-30_21.18.43_2.png
          2022-03-30_21.18.43_2.png
          132 kB
        18. 2022-03-30_21.18.43.png
          2022-03-30_21.18.43.png
          132 kB
        19. 2022-03-30_21.18.44_2.png
          2022-03-30_21.18.44_2.png
          133 kB
        20. 2022-03-30_21.18.44.png
          2022-03-30_21.18.44.png
          131 kB
        21. 2022-03-30_21.18.45_2.png
          2022-03-30_21.18.45_2.png
          134 kB
        22. 2022-03-30_21.18.45.png
          2022-03-30_21.18.45.png
          134 kB

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            6 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: