Blockenator

Mini Project · Minecraft Tooling

Blockenator

Turn a 3D model into a voxelized Minecraft structure

TauriRustJavaScript

Overview

Load an .obj, .stl, .glb or .gltf model, pick a resolution, and Blockenator rasterizes it into voxels.

Surface voxelization uses exact triangle/box (SAT) rasterization at 8–256 blocks along the longest axis, with optional solid fill of enclosed interiors.

Colors are sampled from materials and textures and either kept (quantized via weighted k-means to a 2–256 color limit), matched to the nearest of about 100 full opaque Minecraft blocks by perceptual distance, or replaced by a single chosen block.

Key Features

Input Formats

  • OBJ with MTL materials and diffuse textures
  • Binary & ASCII STL
  • glTF / GLB with transforms, textures and vertex colors
  • Z-up toggle for CAD exports

Coloring Modes

  • True colors, quantized with weighted k-means
  • Minecraft blocks via redmean color distance
  • Single block for the whole model

Exports

  • Voxel .json and gzipped voxel .nbt for mods
  • Vanilla structure .nbt (Minecraft 1.20+)
  • 3D preview with actual block colors