Skip to main content

structura-render

Minecraft structures, rendered like Minecraft.

Create textured previews, vector plans and portable 3D models from Minecraft structures. Textured previews and mesh exports share one geometry pipeline. Install only the output backends you need.

Seven Minecraft structures with textured renders and six-view projections

Builds: ProMcEngineering, Ohnoitswoody, Arolas, EdCr0w, GameBreaker, Zeira4424, DaveGR.

Quick start

No Minecraft resources or graphics backend are needed for projections and SVG:

pip install structura-render
structura-render examples demo
structura-render projections demo/demo.nbt demo/views.png
structura-render svg demo/demo.nbt demo/floor.svg --view top --depth 1 4

For textured previews and 3D export:

pip install "structura-render[hero,usdz]"
structura-render png demo/demo.nbt demo/house.png --orthographic
structura-render usdz demo/demo.nbt demo/house.usdz

A launcher-installed Minecraft 1.21.1 client is detected automatically. For another client or resource pack, set STRUCTURA_MINECRAFT_ASSETS to its .jar or extracted assets/minecraft directory. Game assets are not bundled.

Outputs

Result Install Command
Six-view technical PNG base structura-render projections in.nbt out.png
SVG plan / cross-section base structura-render svg in.nbt out.svg --view top
WebP image base for projections; [hero] for perspective structura-render projections in.nbt out.webp
Perspective / orthographic PNG [hero] structura-render png in.nbt out.png
USDZ / Apple Quick Look [usdz] structura-render usdz in.nbt out.usdz
USD / USDA / USDC scene [usdz] structura-render usd in.nbt out.usdc
GLB / glTF [gltf] structura-render gltf in.nbt out.glb
Wavefront OBJ [obj] structura-render obj in.nbt out.obj
Binary STL [stl] structura-render stl in.nbt out.stl
MagicaVoxel VOX base structura-render vox in.nbt out.vox

The glTF/USD output extension selects the encoding. WebP uses Pillow's default encoding in the CLI; lossless saving is shown below. SVG and VOX need no game assets. Only [hero] needs PyVista/VTK. Extras can be combined, for example pip install "structura-render[hero,gltf,usdz]".

Inputs

Input Requirement
Java Structure .nbt / text .snbt base
Litematic .litematic, v5–v7 base; --region Main selects one region
Sponge .schem, v1–v3 base; v1 without a DataVersion needs normalization with core first
Bedrock .mcstructure [bedrock]; translation can omit or approximate data
Legacy .schematic [legacy]

These are structure-to-image/model conversions; 3D models and images are not accepted as input. Native Java loading retains the source game version.

Python

from structura_render import export_structure, render_hero, render_projection, render_svg

image = render_projection("house.nbt", view="top", depth=(1, 4))
image.save("floor.webp", lossless=True, method=6)
render_svg("house.nbt", "floor.svg", view="top", depth=(1, 4))
render_hero("house.nbt", "house.png", orthographic=True)
export_structure("house.nbt", "house.glb")

The same functions accept an in-memory structura_core.Structure. PNG, SVG and 3D entry points can write outputs atomically; render_projection returns a Pillow image. WebP requires a Pillow build with WebP support.

Reported render approximations produce RenderWarning; use --strict or strict=True on hero/3D exports to reject them before writing. VOX uses coloured cubes; STL has no textures and may need repair for printing. Entities are static approximations. Keep generated resource directories with glTF, OBJ and plain USD.

Documentation

Every command supports --help. python -m structura_render is equivalent to structura-render; existing dedicated render/export commands remain supported.

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.8.2.tar.gz (312.7 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.8.2-py3-none-any.whl (266.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: structura_render-0.8.2.tar.gz
  • Upload date:
  • Size: 312.7 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.8.2.tar.gz
Algorithm Hash digest
SHA256 357d232770213c0029f9bee94d790bb0465a58479c4cab6fb2fe07363ef6fb73
MD5 15135e49e6aee9cd790bde7ab0a3a9aa
BLAKE2b-256 839fe9a410c36ecb82ef028af4622b7a4b8ba20f451cbcb39267b02852fd4921

See more details on using hashes here.

Provenance

The following attestation bundles were made for structura_render-0.8.2.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.8.2-py3-none-any.whl.

File metadata

File hashes

Hashes for structura_render-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 748559f681752545fb8f80b933d7703949f26de1fb74778cabd0e484dafd2a0b
MD5 9fbbca28acaca59667bf4bcda4e65936
BLAKE2b-256 9017c6a2fdc92a1b84b603742e05c0672c773dbcfe1bc80e4dd477985a1210b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for structura_render-0.8.2-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

This release

0.8.2 This release

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

0.2.1

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