Skip to content

code-explorer786/MSchemGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MSchemGen

An unfinished project about schematic generation outside Mindustry.

USAGE (Parsed JSON Data)

{
    "name" : "hello-world", // name of schematic
    "description" : "hi-description", // desc. of schematic
    "tags" : ["tag1","tag2","useless"] // tags
    "width" : 2, // width
    "height" : 2, // height
    "blocks" : [
        {
            "type" : "router", // Type
            "x" : 0, // X
            "y" : 0, // Y
            "rotation" : 0, // Rotation
            "config" : 0 // Config (NOT SUPPORTED YET)
        },{
            "type" : "micro-processor",
            "x" : 1,
            "y" : 1,
            "rotation" : 0,
            "code" : "op add a a 1" // code of processor
            // or you can do "code:your-file"
            // processor links
            "links" : [{"x":0,"y":0,"name":"router1"},
                       {"x":0,"y":0,"name":"router2"}
                       // ...
                       ]
        }
    ]
}

USAGE (Command Line)

  • For the blueprint version:

    python blueprint/main.py <your-json-file-here>
    

    no debug:

    python blueprint/main.py <your-json-file-here> > /dev/null
    

    a file named a.msch will appear.

About

A permanently unfinished project about schematic generation outside Mindustry.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages