Minecraft structure planner to OpenSCAD Ruby converter (Q48948)

From Library of Open Source Hardware
Jump to navigation Jump to search
No description defined
Language Label Description Also known as
English
Minecraft structure planner to OpenSCAD Ruby converter
No description defined

    Statements

    en
    0 references
    thingiverse.com
    0 references
    www.thingiverse.com
    0 references
    Nudel_P
    0 references
    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?
    0 references
    auto
    0 references
    https://spdx.org/licenses/CC-BY-SA-4.0
    0 references
    1.0.0
    0 references
    0 references