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
Watch for stairs_0_mirrored, and stairs_<2-3>

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.