Board Thread:General Mod Discussion/@comment-71.136.226.164-20150708031245/@comment-27723099-20150708131134

There are a lot of misconceptions about structure generation. The current structure generation code works basically like this:

To set a block, a function is called with relative block coordinates (based on the struture origin), eg:  This function rotates the relative coordinates to the desired rotation of the structure and changes metadata values if they represent a block facing (for example stairs).

This function sets only one block but as always in programming, you can place it in a loop. To generate a stone wall of 5 blocks length and 3 blocks height, starting at the coordinates 0/0/0, you could use this code:

And you have 15 blocks generated with only one  command. As you can see, simple shapes are much easier than very detailed structures or complex patterns.