-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently here's a ItemMirror to handle NBT structure changes between minecraft versions, but it doesnt cover all cases
For example:
Enchantment minecraft:sweeping got renamed to minecraft:sweeping_edge
a sword saved in 1.20.1 with ItemTagStream and loaded in 1.21.1 will lose their enchantment due to missing minecraft:sweeping
[15:48:30 ERROR]: Tried to load invalid item: 'Failed to get element minecraft:sweeping missed input: {"minecraft:sweeping":3} missed input: {"minecraft:enchantments":{levels:{"minecraft:fire_aspect":2,"minecraft:knockback":2,"minecraft:looting":3,"minecraft:sharpness":5,"minecraft:sweeping":3,"minecraft:unbreaking":3}}}'
DataFixerUpper is a tool used by mojang to convert worlds created by older versions of Minecraft to the newer versions, it contains a series of rules to modify the saved world and upgrade any data in it.
Use the official way is a better choice as it's fully cover any situation: the upgrade rule is written by mojang
I've implemented a upgrade utils using DataFixerUpper, if you're interested, see here
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request