Minecraft structure planner to OpenSCAD Ruby converter by Nudel_P 3d model
3dmdb logo
Thingiverse
Minecraft structure planner to OpenSCAD Ruby converter by Nudel_P

Minecraft structure planner to OpenSCAD Ruby converter by Nudel_P

by Thingiverse
Last crawled date: 3 years ago
I've been working on this Ruby script on and off for a while now, but never felt it was ready for distribution. Then http://minecraftprint.com/ came along, and made me push an early version out. While I see the benefit of being able to search through an entire world and pick out the structure to print, it's not really an option for larger worlds, and the selection method seemed cumbersome.
My idea is to use an established file format as the base for conversion - http://www.minecraftwiki.net/wiki/Schematic_File_Format The worldwide Minecraft communities create and read this format with an assortments of tools. At the server I play on, we use World Edit, with it you can select and save areas of the world to file very easy. To make it simpler to convert I send the schematic file through Minecraft structure planner which exports to xml.
At the moment the script is VERY crude. It runs through a Minecraft Structure Planner xml file and creates a OpenSCAD file where it places a cube(); (and it's block type) every time it finds a block. Warning: This is the first time I've touched Ruby, so if you know how to use it, my sincere apologies in advance.
I hope someone else might want to build upon this work/idea. :-)
Planned improvements:
Converting slabs, stairs, fences and perhaps other objects.
Using a special block for support structure.
Output optimization so it's possible to convert large structures.
Future improvements:
Reading the World Edit schematic files directly.
Exporting to stl directly with World Edit?

Tags