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:
newmtl Material_0
Kd 1.000000 1.000000 1.000000
d 1.000000
map_Kd WoodenChair.png.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)
/li obj WoodenChair.obj 32 litems furniture
/li obj MagicSword.obj 32 litems item
/li reload
/li pack build| Resolution | Recommended Use |
|---|---|
16 | Classic Minecraft voxel density, lightest JSON |
24 | Best default balance of visual detail and FPS |
32 | Detailed weapons, shields, and furniture |
48 | Maximum 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— Strict0..16Minecraft 3D JSON model.bbmodels/<id>.bbmodel— Editable Blockbench copy for fine repainting.contents/obj_<id>.yml— Ready-to-use YAML (solid: trueandsafe_dismount: trueenabled infurnituremode).