Formations (Structure Library)

Formations adds utilities for structure datapacks!

5,1M

Formations (Structure Library)

Formations banner

<br> <center>

Formations is a library mod which adds additional features to datapacks for generating structures!

</center> <br> <br>

Separator

Features

Structure Types

Formations adds two new structure types: `formations:simple` and `formations:pieced`. These essentially correspond to the vanilla regular and jigsaw structure types, but with better placement and a clearer json format. Both types can choose from the following placements: | Identifier | Description | | :-- | :-- | | `surface` | Will place the structure at the top layer of solid blocks | | `ceiling` | Will place the at the bottom layer of solid blocks | | `on_water` | Will place the structure at the top layer of blocks if those blocks are water | | `on_lava` | Will place the structure at the top layer of blocks if those blocks are lava | | `underground` | Will place the structure somewhere between the top and bottom layers of blocks | | `underground_surface` | Will place the structure between the top and bottom layers of blocks, at the bottom of an open area | | `underground_ceiling` | Will place the structure between the top and bottom layers of blocks, at the top of an open area | | `underground_buried` | Will place the structure between the top and bottom layers of blocks, such that it is not exposed to any open area | | `underground_on_lava` | Will place the structure between the top and bottom layers of blocks, in an open area on top of lava |

Structure Pool Element Types

Formations adds one new structure pool element type, `formations:single_pool_element`. The element type allows setting a different ground level rather than vanilla's fixed ground level of 0. The ground level can be set through the `ground_level` key.

Structure Processors

Formations adds a bunch of new structure processors. | Identifier | Parameters | Description | | :-- | :-- | :-- | | `formations:random_bed_color` | - | Randomizes the color of any beds | | `formations:biome_replacements` | - | Replaces certain blocks, such as wood, bricks and grass, based on the biome | | `formations:fill_brewing_stands` | `slotFillChance`, `maxBlazePowder` | Fills brewing stands with random potions and blaze powder ` | | `formations:fill_chiseled_bookshelves` | `slotFillChance` | Fills chiseled bookshelves with enchanted books | | `formations:block_age` | `mossiness`, `degradation`, `disintegration` | Randomly replaces regular blocks with mossy or cracked variants, full blocks with slabs or stairs, random blocks with air | | `formations:random_plant_growth` | `minGrowth`, `maxGrowth` | Randomizes the growth stage of any crops | | `formations:respawn_anchor_charges` | `minCharges`, `maxCharges` | Randomizes the number of charges of any respawn anchors | | `formations:waterlogging` | `handling` | Determines whether waterloggable blocks are waterlogged, options can be found on GitHub |

Separator

Examples

For examples usage of the features, you can check out <img width='25' alt='formations overworld logo' src='https://cdn.modrinth.com/data/KX1XC0Oo/623ec34d4dbc1ca9c5aa6477f9043e86bbaa899b.webp'> Formations Overworld and <img width='25' alt='formations nether logo' src='https://cdn.modrinth.com/data/cGvQGRls/2e21f4c247ad58965c320f037c4febfa9cf827bb.webp'> Formations Nether

Separator

FAQ

Can I use your mod in my modpack? Yes, feel free to use my mod in your modpack

Separator

Discord

For future content, upcoming mods, and discussion, feel free to join the SuperMartijn642 discord server! <img width='400' src='https://imgur.com/IG1us6p.png'>

Separator

ADS