User:PancakeIdentity/BastionGeneration

Groups
For the purpose of simplicity below, the following structures are grouped together.

Replacing Blocks
Upon generation, some block in bastion remnants have a chance of being replaced by other blocks.

Bridge Generation
Bridge generation starts with a single structure and branches off with different jigsaw blocks, represented by the different bullet points.
 * Generation starts with the structure.
 * generates to the left and generates to the right, connected to the base at the bottom.
 * Each wall base generates a random rampart from above it.
 * If is chosen, it generates  on its front near the top.
 * At the back and towards the top, the structure generates.
 * The structure generates directly above.
 * At the back, near the bottom, generates.
 * At the front, also near the bottom, generates.
 * On the bottom of the bridge, two random legs from generate.
 * On the front, generates.

Hoglin Stable Generation
Hoglin stable generation starts with a single structure and branches off with different jigsaw blocks, represented by the different bullet points.
 * Generations starts with the structure.
 * Facing outwards at the front, generates.
 * At the back, on either side a random wall from generates. Each wall has two different places it can connect to the base.
 * Each side wall generates a random rampart from above it.
 * If is chosen, it generates  on its front.
 * The wall base also generates a random rampart above it. See the side wall section for specifics.
 * Starting inwards towards the air base, a random starting stairs is generated from
 * Towards the front left of the starting stairs, a inner small stable from is generated, connected at the right.
 * On the left of the inner small stable, a random outer large stable from is generated. Note that  does not generate.
 * Towards the back left of the starting stairs, the structure is generated, connected at the right.
 * The stair posts generate a random mirrored stairs from.
 * The mirrored stairs generate a random inner large stable from at the back left. Note that  does not generate.
 * On the left of the large stable, a random outer small stable from is generated.
 * The mirrored stairs generate a random inner small stable at the back right. See the starting stairs section for details.
 * At the back at the top, the mirrored stairs generate a random stairs 1 from.
 * The stairs 1 generate a random inner large stable at the front left. See the mirrored stairs section for details.
 * The stairs 1 generate a random inner small stable at the front right. See the starting stairs section for details.
 * These stairs generate a random stairs 2 from at the front on top.
 * These stairs generate a random inner small stable on the left and a random inner large stable on the right. See the above sections for details.
 * These stairs generate a random stairs 3 from at the front on top.
 * These stairs generate a random inner large stable on the left and a random inner small stable on the right. See the above sections for details.
 * At the top of the posts, the structure is generated.
 * At the other end of the connector, the structure is generated.
 * Towards the front right of the starting stairs, a random inner large stable is generated. See the above sections for details.
 * Above the starting stairs, a random stair 1 is generated. See the above sections for details.

Housing Unit Generation
Housing unit generation starts with a single structure and branches off with different jigsaw blocks, represented by the different bullet points.
 * Generation starts with the structure.
 * On the front of the air base, the structure generates.
 * On the back of the wall base, the structure generates.
 * On top of the connected wall, a random rampart from generates.
 * If is chosen, the structure  generates on its back.
 * On top of the wall base, the structure is generated. See above for details.
 * Near the front of the air base, the structure generates.
 * Near the front and back of the large edge, the structure generates, connected at one of many points.
 * On top of the stage 0 filler, a random stage 1 generates from.
 * On top of the stage 1, a random stage 2 from generates.
 * On top of the stage 2, a random stage 3 from generates.
 * To the left of the large edge, the structure generates.
 * To the front of the unit 0, the structure is generated. See above for details.
 * On top of the unit 0, a random stage 1 generates. See above for details.
 * Above the large edge, the structure generates.
 * On top of the stage 1 rot, a random stage 2 generates. See above for details.

Treasure Generation
Treasure generation starts with a single structure and branches off with different jigsaw blocks, represented by the different bullet points.
 * Generations starts with the structure.
 * Roughly in the middle of the structure, generates.
 * In the center of the lava basin, a random center generates from.
 * On each side of the lava basin, a random bottom wall from is generated.
 * On the front of the bottom wall, the structure is generated.
 * On the left and right sides of the bottom wall, a random bottom corner from is generated.
 * On the side opposite and the side left or right of where it connects to the bottom wall, the bottom corner generates the structure.
 * On the left and right sides of the bottom corner wall, the structure generates.
 * If is chosen, two large extensions are generated on the back at either side of the top of the wall. If  is chosen, two more generate roughly beneath the other two. These structures are chosen randomly from  ($1/3$ chance),  ($1/9$ chance),  ($1/9$ chance per bridge), or  ($1/9$ chance).
 * Along the top of the lava basin, the structure generates.
 * At the top center of the lava basin, the structure generates.
 * About $1/6$ of the way up, the structure generates in all four directions.
 * At the opposite end of the connector, a random mid wall generates from.
 * On the front of the mid wall, the structure generates.
 * On the left and right sides of the mid wall, a random middle corner from is generated.
 * On the side opposite and the side left or right of where it connects to the mid wall, the middle corner generates the structure.
 * On the front and back of the outer mid corner wall, the structure generates.
 * If is chosen, a random large extension is generated on the center back of the mid wall. If  is chosen, two more generate on the top back of the mid wall. See the above sections for details.
 * If is chosen, 2 random small extensions are generated about $2/3$ of the way up on the back. If  is chosen, a third generates here as well. If  is chosen, 4 small extensions are generated at the top back of the mid wall. These structures are chosen randomly from  ($2/7$ chance),  ($1/7$ chance), or  ($1/7$ chance per bridge).
 * About $1/2$ of the way up, the structure generates in 3 of 4 directions.
 * On the opposite end of the connector, a random top wall generates from.
 * On the front of the top wall, the structure generates.
 * On the left and right sides of the top wall, a random top corner from is generated.
 * On the side opposite and the side left or right of where it connects to the top wall, the top corner generates the structure.
 * On the left and right sides of the out top corner wall, the structure is generated.
 * On the top of the top corner, the structure generates.
 * If is chosen, 4 small extensions generate along the top back. If  is chosen, 2 small extensions generate about halfway up the back. See above sections for details.
 * If is chosen, a random house generates on the back from.
 * On the top of the top wall, the structure generates.
 * About $1/2$ of the way up, the structure generates in the 4th direction.
 * On the opposite end of the connector, the structure generates.
 * On the front of the main entrance top wall, the structure generates.
 * On the front center of the entrance wall, the structure generates.
 * On the front of the entrance, the structure generates.
 * Under the mid wall main rampart, the structure generates.
 * To the right of the mid wall main rampart, the structure generates.
 * Under the mid wall side rampart, the structure generates.
 * On the back near the bottom, the structure generates.
 * On the back of the lava basin main rampart, the structure generates.
 * On the top, the structure generates.
 * On the back near the bottom, the structure generates.
 * On the back of the lava basin side rampart, the structure generates.
 * On the top, the structure generates.
 * On the left and right of the main entrance top wall, a random top corner is generated. See above for details.
 * On the back about $1/3$ of the way up, 3 small extensions generate. About $2/3$ of the way up, 2 more generate. See above for details.
 * On top, the structure is generated.
 * At the top of the center brain, the structure generates.
 * High up on the left side, the structure generates. See above for details.