maruohon / litematica

A modern client-side schematic mod for Minecraft
GNU Lesser General Public License v3.0
686 stars 190 forks source link

Schematic not loading #812

Closed hidebuff closed 5 months ago

hidebuff commented 5 months ago

I recently installed litematica for my bigger builds and machines, but I ran into an issue. Every schematic I use just appears as one block and idk how to fix it.

2024-02-01_17 38 27

maruohon commented 5 months ago

It says Regions: 0, so it was either generated or saved incorrectly. It doesn't contain any sub-regions and thus it doesn't have blocks. Also the name seems to be empty (unless you renamed the placement).

Did you save this schematic, or download it from somewhere?

hidebuff commented 5 months ago

Alright I fixed the issue. I was renaming the file names to .litematic from .schem and that was corrupting the file in return, leaving me with no schematic. Thanks for the help!

maruohon commented 5 months ago

Ah. It doesn't really "corrupt" it, but Litematica currently assumes the file name extension indicates the schematic format, and it doesn't have a fallback "format snooper" yet. So if you change the file name extension then it doesn't recognize it as the format that it actually is, and thus it won't load it properly either.

This also affects a number of schematics downloaded from some web sites, as they may have them renamed for whatever reason (maybe the site doesn't allow the correct file name extension for example). And those then usually fail to load as-is.

In case you ever need it, here are a couple of "image guides" on how to tell the correct format, if you open the schematic file for example with NBTExplorer: