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

Potions in worlds from before 1.9 become water bottles when upgraded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 18w19a, 1.18.2, 1.19.3, 23w04a, 1.21.1, 24w36a, 1.21.3
    • Confirmed
    • Datafixer
    • Normal
    • Platform

      The bug

      Potions in worlds which were last loaded in 1.8.9 or an earlier version will become water bottles if loaded in the latest version instead of staying the potion they were.

      How to reproduce

      1. Create a world in a pre-1.9 version
      2. Obtain a potion via your desired method
      3. Load this world in 1.18.2 or whatever the latest major release is
      4. Note what the potion is

      Alternatively, I've attached four world files:

      • one is a base world from 1.3.2
      • one is the base world loaded in 1.8.9
      • one is the base world loaded in 1.12.2
      • one is the base world loaded in 1.8.9 and then 1.12.2
        These worlds can be used to reproduce this issue (as well as MC-249700 and MC-232104) instead of creating such a world yourself.

      Expected results

      The potion would... remain a potion?

      Actual results

      It becomes a water bottle.

      Further notes

      This is without a doubt related to the major refactoring done to potion formatting in 1.9.

      Code analysis

      Code analysis by Gaming32 in duplicate MC-277902.

        1. 1.12.2 World.zip
          2.69 MB
        2. 1.3.2 World.zip
          2.61 MB
        3. 1.8.9 and 1.12.2 World.zip
          2.76 MB
        4. 1.8.9 World.zip
          2.75 MB
        5. 2022-03-30_20.12.18.png
          2022-03-30_20.12.18.png
          103 kB
        6. 2022-03-30_20.13.57.png
          2022-03-30_20.13.57.png
          88 kB
        7. 2022-03-30_20.22.39.png
          2022-03-30_20.22.39.png
          188 kB
        8. 2022-03-30_20.23.07.png
          2022-03-30_20.23.07.png
          239 kB

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

              Created:
              Updated:
              CHK: