NBT schematics do not work in 1.16.2
rebane2001 opened this issue ยท 3 comments
Minecraft version
1.16.2
Mod version and malilib version
fabric-api-0.19.0+build.398-1.16.jar
litematica-fabric-1.16.2-0.0.0-dev.20200812.031039.jar
malilib-fabric-1.16.2-0.10.0-dev.21+arne.1.jar
Description of the bug
NBT schematics do not work in 1.16.2, they just show the outline but no blocks. Tested with nbt files from both mapartcraft AND the official structure block. I have included nbt files from both cases that you can use to reproduce the issue.
example_nbt_files.zip
Screenshots
Trying to load a schematic using Litematica (left) that was made with the structure block (right).
Trying to load a schematic from MapartCraft.
Loading the MapartCraft schematic with a structure block instead of Litematica.
I had to add a bunch of hacky code to deal with differences in the palette handling in regards to air, but I now uploaded a new build which restores the ability to load vanilla structure files. All the schematic code will get completely replaced anyway once the next merge from 1.12.2 happens, so the hacky temporary code is kinda whatever for now...
Unfortunately I had to comment out the code that converts vanilla structure block templates to the Litematica format in the 1.16.2 version, because in 1.16.2 the vanilla method that places a structure into a world now requires a ServerWorld
, and the custom world I use in the mod is not a ServerWorld
.
I think I should just re-implement that method temporarily to get this working again, since it will still take a bunch of time before I can merge the newer schematic code from 1.12.2, which does not require the vanilla classes anymore at all, nor even the temporary world for the conversion.