Litematica

Litematica

9M Downloads

NBT schematics do not work in 1.16.2

rebane2001 opened this issue ยท 3 comments

commented

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).
javaw_2020-08-23_23-57-51
Trying to load a schematic from MapartCraft.
javaw_2020-08-23_23-58-17
Loading the MapartCraft schematic with a structure block instead of Litematica.
image

commented

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...

commented

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.

commented

I'd be really thankful if you did that, I've been getting lots of support requests from people not being able to load MapartCraft schematics in 1.16.2.