Skip to content

ninix44/Export3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fabric MC Version License

Export3D

A client-side Fabric mod that allows you to export Minecraft builds into .obj 3D model files with textures and proper geometry.

Useful for importing Minecraft structures into Blender, Maya, or preparing models for 3D printing.

Features

  • Accurate Geometry: Supports non-cubic blocks! Stairs, slabs, fences, and walls are exported exactly as they look in-game (using BakedModel).
  • Texture Export: Automatically extracts textures (.png) and generates material files (.mtl) for full-color rendering.
  • Optimization: Implements face culling (hidden faces between blocks are removed) to drastically reduce file size.
  • Wand Selection: Uses a standard Golden Hoe (WorldEdit style) for ease of use.
  • Async Processing: Exports run on a separate thread to prevent game freezing.

Requirements

  • Minecraft 1.21 (Java Edition)
  • Fabric Loader
  • Fabric API

Usage

  1. Equip a Golden Hoe.

  2. Select the region:

    • Left Click a block to set Position 1.
    • Right Click a block to set Position 2. (You will see chat messages confirming the coordinates).
  3. Run the command: /export3d <filename>

    Example: /export3d castle_v1

  4. Find your files: A new folder named export3d_<filename> will be created in your game's main directory (next to options.txt or saves). Inside you will find the .obj, .mtl, and all texture images.

⚠️ Note for 3D Printing (Bambu Studio / Cura)

If you import the .obj file into a 3D slicer (like Bambu Studio, Cura, or PrusaSlicer), the model will likely appear single-colored (without textures).

  • Why? Slicers ignore .png textures and .mtl files because they only read geometry for printing with plastic. They will show the model in the color of the selected filament.
  • How to view textures? To see your model with full textures (grass, wood, stone), open the .obj file using Windows 3D Viewer, Blender, or any dedicated 3D modeling software.
  • How to print in color? You will need to use the "Color Painting" tool in your slicer software to manually assign filament colors to specific blocks.

Completed Tasks

  • Support for non-cubic block shapes (stairs, slabs, fences, etc.).
  • Generate .mtl files for material definitions.
  • Implement texture export and UV mapping.
  • Geometry optimization (remove hidden faces).

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages