Skip to content

Litematica to structure NBT

Convert the supplied workshop to a Java structure .nbt file without opening Minecraft. Its single region contains a bed and a chest holding 64 stone. Structure NBT drops the Litematica metadata, so first inspect the loss report, then decide whether to write the file.

Check the export

Download convert.py and workshop.litematic together, then run:

uv run --with mcschemora convert.py workshop.litematic output/workshop.nbt

The script checks the destination format and stops before writing:

Edition: java; version: 1.21.1
Regions: main
Loss: Destination does not retain schematic metadata
Export blocked; resolve errors or explicitly accept the reported losses.

If losing schematic metadata is acceptable, repeat the command with the flag that accepts the reported loss:

uv run --with mcschemora convert.py workshop.litematic output/workshop.nbt --allow-loss

The exported structure retains the workshop's supported blocks and chest contents. Compare it with workshop.nbt, then reload and inspect your file before using it in a game or importer:

from mcschemora import Schematic

scene = Schematic.load("output/workshop.nbt")
print(scene.version, scene.inspect()["inventories"])

This verifies vanilla Java structure NBT. Compatibility with Create's schematicannon, modded blocks, or MineColonies formats needs a separate test. The complete conversion script is explained in the WorldEdit example. See files and conversion for supported formats and export behavior.