Mojira Archive
MC-174507

Various JSON files needlessly change each update

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

Awaiting Response

PancakeIdentity

2020-03-11, 09:07 PM

2022-05-15, 12:01 AM

2022-05-15, 12:01 AM

6

2

Confirmed

Advancements, Loot tables

1.15.2 - 1.17 Pre-release 21.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

-