Skip to main content

structura-render

Turn a Minecraft Structure NBT into a real photo or a 3D file — using your own game's actual textures and block shapes, not guesses.

No fake textures, no hardcoded block shapes, no bundled game files. Point it at your own Minecraft client and get pixel-accurate PNGs and USDZ out the other end.

This isn't a lookup table of ~50 common blocks with guessed shapes. The resolver walks the same blockstate → multipart/variant → model → element rotation → UV pipeline the Minecraft client itself uses, so ordinary vanilla blocks — stairs, doors, fences, plants, redstone and the rest — come from the game's data rather than per-block guesses. Vanilla's non-model renderers (chests, banners, heads, shulker boxes, conduit, bell, decorated pots, portals and fluids) share a compact textured compound-model layer.

USDZ export of a floating island structure, viewed in a 3D viewer Close-up hero-render detail: windows, timber framing, flower pots

Why it's worth using

  • Data-driven where vanilla is. JSON-modelled blocks use the same blockstate/model data and PNGs as the game. Dynamic blocks use their real entity textures on compact state-aware compound geometry.
  • One mesh, every output. Geometry is resolved once and shared between PNG renders and USDZ export, so what you preview is exactly what you get in 3D — nothing drifts between formats.
  • Clean by design. Zero Mojang assets in this repo or its releases — can't, EULA forbids it. You always supply your own client, so there's no legal grey area to worry about.
  • Version-flexible. Point it at a .jar from Minecraft 1.13 through the latest release and it just works — verified end to end on both 1.21.1 and the newest 26.2. New blocks resolve automatically; no waiting on us to add support.
  • Light by default. Core install is just NumPy, Pillow and SciPy. PyVista/USD only get pulled in if you actually ask for hero renders or USDZ export.
  • Self-updating classification. Which blocks are solid cubes (for occlusion) is computed from real model geometry, not a hand-maintained name list — it doesn't go stale as new blocks ship.

What it does

  • block_model.py — generic blockstate/model resolver: variants, multipart conditions, parent chains, element rotations, UV rotation and UV locking. Builds real geometry for every JSON-modelled vanilla block.
  • textures.py — resolves #variable texture references and samples the real PNG, including per-pixel alpha for correct occlusion (glass, leaves, iron bars).
  • projections.py — six-view orthographic PNGs (top/bottom/N/S/E/W) with envelope/aura/terrain-pod/glass-dome mask overlays, for engineering QA rather than looks.
  • hero.py (hero extra) — one real-textured, real-lit PyVista render of the finished structure — the kind of shot above.
  • usdz.py (usdz extra) — a textured 3D mesh for AR Quick Look or any USDZ viewer, from the same mesh builder as the hero renderer.
  • build_full_cube_list.py / build_opaque_blocks.py — data-derived block classification, described above.
  • docs/block-render-audit-26.2.md — one row for every vanilla blockstate, including explicit dynamic-render limitations.
  • legacy_input.py (legacy extra) — every entry point also accepts a legacy .schematic, sponge .schem, .litematic, or anything else amulet-core recognizes, and converts it to Structure NBT on the fly. No manual conversion step.

Quick start

No clone needed for either package, but structura-core isn't on PyPI yet, so pip can't resolve it as a transitive dependency — install it explicitly first, then structura-render:

export STRUCTURA_MINECRAFT_ASSETS="$HOME/Library/Application Support/minecraft/versions/1.21.1/1.21.1.jar"
pip install 'git+https://github.com/kirimba1024/structura-core.git'
pip install "structura-render[usdz] @ git+https://github.com/kirimba1024/structura-render.git"
structura-render-hero structure.nbt preview.png

Have a legacy .schematic/.schem/.litematic instead of Structure NBT? Add the legacy extra ([usdz,legacy]) and pass it straight in — no separate conversion step:

structura-render-hero house.schematic preview.png

Point STRUCTURA_MINECRAFT_ASSETS at a client .jar (any version from 1.13 up) or an already-extracted assets/minecraft directory. A .jar is extracted once into $XDG_CACHE_HOME/structura-render/jar-assets (~/.cache/... if unset), keyed by its path, size and mtime, so repeat runs and multiple installed versions don't re-extract or collide. When the variable is unset, the package searches parent folders and the current directory for assets/minecraft.

This project's own datapack targets Minecraft Java 1.21.1 specifically (structura_core.version.JAVA_VERSION); if you're previewing its structures, match that version for a guaranteed-correct result. Anything older than 1.13 uses a different asset layout entirely (pre-"flattening") and isn't supported. On load, the package checks for heavy_core (added in 1.21) and warns on stderr if it's missing, as a cheap signal that the pointed-at client predates 1.21 — not exhaustive, just a sanity check.

Use the lighter hero extra when USDZ export isn't needed; plain projection rendering skips PyVista and OpenUSD entirely.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

structura_render-0.2.1.tar.gz (40.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

structura_render-0.2.1-py3-none-any.whl (45.0 kB view details)

Uploaded Python 3

File details

Details for the file structura_render-0.2.1.tar.gz.

File metadata

  • Download URL: structura_render-0.2.1.tar.gz
  • Upload date:
  • Size: 40.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for structura_render-0.2.1.tar.gz
Algorithm Hash digest
SHA256 53c94f49777a60399d35dd6b22024cc91fafe86cbd77e345e551006affc83437
MD5 c8639b4de73b8b18ecb348d202314f23
BLAKE2b-256 ccda315ec57cb22c447ab49573890eabcf71de4e6e58775c018ba3ac44243edd

See more details on using hashes here.

Provenance

The following attestation bundles were made for structura_render-0.2.1.tar.gz:

Publisher: publish.yml on kirimba1024/structura-render

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file structura_render-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for structura_render-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dab56aa861ff9f7c71709e5386cd4d1a287f137e6746289b311a3a6ad00831b7
MD5 1585b42c9878f3b20de8f20bed20f7f6
BLAKE2b-256 f6377ff701ff9d3fc2f74b40bd45a74157b64ebab10a70e6f0498b39811efada

See more details on using hashes here.

Provenance

The following attestation bundles were made for structura_render-0.2.1-py3-none-any.whl:

Publisher: publish.yml on kirimba1024/structura-render

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.8.3

2 files

0.8.2

2 files

0.8.1

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.2

2 files

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page