I have a python script that is used to place structures (png representations) in a generated form similar to jigsaw blocks to expand out. (See image 1)
Image 2: Is a simple structure representation where each pixel is a block. The 4 unique colors of: red, yellow, green, blue, are directional attachments in this example (2 more for down and up).
For each of the structures generated, they have their own respective X, Y, and Z values for the size. My script currently places components based on available connecting pieces (if there is space allotted for it, and has a respective connecting piece (S->N, for example).
The problem: I have it working for X and Z placements, but in order to keep track of the Y placements, it would be a lot faster if I was able to generate the custom mcstructure files from the python script rather than having to make the png metadata for the structure file I make in minecraft.
TLDR: Does anyone know if it's possible to generate a mcstructure file from code?