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

Various JSON files needlessly change each update

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.15.2, 20w11a, 20w12a, 20w13a, 20w14a, 20w15a, 20w16a, 20w17a, 20w18a, 20w19a, 20w21a, 20w22a, 1.16 Pre-release 2, 1.16 Pre-release 7, 20w27a, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 21w05a, 21w10a, 21w11a, 21w13a, 21w14a, 1.17 Pre-release 2
    • None
    • Confirmed
    • Advancements, Loot tables

      The bug

      This has been happening for a long time. The affected files are the "all_effects" and "all_potions" advancement files, as well as the "shipwreck_supply" loot table.

      The order of status effects in these files changes between most snapshots and updates.

      Also worth noting that the block model for redstone wire has a similar issue.

      Code analysis

      1.17-pre2, Mojang names

      The following maps use HashMap instead of LinkedHashMap, the order of their entries is therefore arbitrary and can change between versions.

      • net.minecraft.world.level.storage.loot.functions.SetStewEffectFunction.Builder.effectDurationMap
      • net.minecraft.data.models.blockstates.Condition.TerminalCondition.terms

            Unassigned Unassigned
            PancakeIdentity PancakeIdentity
            Votes:
            6 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: