Skip to content

Importing a farm

You can inspect and preview a downloaded build in MCSchemora without running Minecraft. This example uses AChromoss v0.4, a .litematic moss-based bonemeal farm by OpenBagTwo, based on Chromoss by maidofmoss.

Download the original schematic and import_farm.py into the same directory, then run:

uv run --with mcschemora import_farm.py achromoss-v0.4.litematic

Load the farm

Load the file with an unpacked-size limit, then inspect its version and regions:

from mcschemora import Schematic

scene = Schematic.load("achromoss-v0.4.litematic", max_unpacked_bytes=64 * 1024 * 1024)
print(scene.version)
print(scene.inspect()["regions"])

The file identifies itself as Java 1.21.4. Its single region is 15 × 14 × 15 blocks and contains 1,487 non-air blocks. Loading preserves the region origin, block states, inventories, and entity data. Choose the decompression limit for the files your application accepts.

scene.inspect() separates placed blocks from stored inventory items. This farm has 157 hoppers and 44 composters; its inventories hold 3,632 bone meal. The report records inspection completeness and diagnostics to help identify unsupported payloads.

For this file, scene.validate() found no structural errors or warnings. One sign-support check remains unknown because it needs surrounding blocks. These checks do not simulate redstone or measure farm output, so they cannot establish whether the farm will operate correctly.

Preview

Render the loaded scene and inspect the returned diagnostics:

diagnostics = scene.export_png("farm.png", size=(1400, 1200))
for diagnostic in diagnostics:
    print(diagnostic)

Rendering leaves the schematic unchanged and uses the shared Java 1.21.6 visual assets. This preview has four diagnostics: three grass states lack evaluated tint colors, and the item-frame entity is outside the renderer's supported entity coverage. Check the complete report for those diagnostics alongside inspection and validation results.

Read the complete script
import_farm.py
import argparse
import json
from pathlib import Path

from mcschemora import Schematic


def main():
    parser = argparse.ArgumentParser(description="Inspect and render a downloaded Litematica farm.")
    parser.add_argument("source", type=Path)
    parser.add_argument("--output", type=Path, default=Path("output/imported-farm"))
    args = parser.parse_args()
    scene = Schematic.load(args.source, max_unpacked_bytes=64 * 1024 * 1024)
    inspection = scene.inspect()
    validation = scene.validate()
    args.output.mkdir(parents=True, exist_ok=True)
    diagnostics = scene.export_png(args.output / "preview.png", size=(1400, 1200))
    report = {
        "inspection": inspection,
        "import_diagnostics": scene.import_diagnostics,
        "validation": {
            "errors": validation.errors,
            "warnings": validation.warnings,
            "unknown": validation.unknown,
        },
        "render_diagnostics": diagnostics,
    }
    (args.output / "report.json").write_text(json.dumps(report, indent=2) + "\n", encoding="utf-8")
    print(f"Loaded Java {scene.version}: {inspection['regions']}")
    print(f"Validation: {validation}")
    print(f"Render diagnostics: {diagnostics}")
    print(f"Saved preview and report to {args.output}")


if __name__ == "__main__":
    main()

MCSchemora render of the imported AChromoss moss farm

Download the schematic Download the PNG