The zero-dependency pure-Java Wavefront .obj Importer converts arbitrary triangle/polygon 3D meshes into optimized Minecraft cube models using barycentric surface voxelization, 3D Greedy Meshing, and 6-direction interior face culling.

#1. Preparing Your Files (.obj + .mtl + .png)

Place your .obj, .mtl, and .png/.jpg textures side by side inside plugins/L-Items/objmodels/. Verify that your .mtl file contains a map_Kd line pointing to your texture:

objmodels/WoodenChair.mtl
newmtl Material_0
Kd 1.000000 1.000000 1.000000
d 1.000000
map_Kd WoodenChair.png
Blender Export Settings
For .blend or .fbx models, open them in Blender and export via File -> Export -> Wavefront (.obj). Enable UV Coordinates and Export Materials, and set Path Mode to Strip Path.

#2. Import Command & Resolution (8..48)

Usage
/li obj WoodenChair.obj 32 litems furniture
/li obj MagicSword.obj 32 litems item
/li reload
/li pack build
ResolutionRecommended Use
16Classic Minecraft voxel density, lightest JSON
24Best default balance of visual detail and FPS
32Detailed weapons, shields, and furniture
48Maximum detail for thin planks, nails, and fine trim

#3. Generated Outputs (4 Files)

  • assets/<ns>/textures/item/<id>.png — Bleed-free 2x2-cell color palette PNG atlas.
  • assets/<ns>/models/item/<id>.json — Strict 0..16 Minecraft 3D JSON model.
  • bbmodels/<id>.bbmodel — Editable Blockbench copy for fine repainting.
  • contents/obj_<id>.yml — Ready-to-use YAML (solid: true and safe_dismount: true enabled in furniture mode).