Formations (Structure Library)
Formations adds utilities for structure datapacks!
Formations is a library mod which adds additional features to datapacks for generating structures!
Features
Structure Types
Formations adds two new structure types: formations: and formations:. 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 structure at the bottom layer of solid blocks |
on_ |
Will place the structure at the top layer of blocks if those blocks are water |
on_ |
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_ |
Will place the structure between the top and bottom layers of blocks, at the bottom of an open area |
underground_ |
Will place the structure between the top and bottom layers of blocks, at the top of an open area |
underground_ |
Will place the structure between the top and bottom layers of blocks, such that it is not exposed to any open area |
underground_ |
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:. 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_ key.
Structure Processors
Formations adds a bunch of new structure processors.
| Identifier | Parameters | Description |
|---|---|---|
formations: |
- | Randomizes the color of any beds |
formations: |
- | Replaces certain blocks, such as wood, bricks and grass, based on the biome |
formations: |
slotFillChance, maxBlazePowder |
Fills brewing stands with random potions and blaze powder |
formations: |
slotFillChance |
Fills chiseled bookshelves with enchanted books |
formations: |
mossiness, degradation, disintegration |
Randomly replaces regular blocks with mossy or cracked variants, full blocks with slabs or stairs, and random blocks with air |
formations: |
minGrowth, maxGrowth |
Randomizes the growth stage of any crops |
formations: |
minCharges, maxCharges |
Randomizes the number of charges of any respawn anchors |
formations: |
handling |
Determines whether waterloggable blocks are waterlogged, options can be found on GitHub |
Examples
For examples of how to use these features, you can check out Formations Overworld and Formations Nether
Frequently asked questions
Can I use your mod in my modpack?
Yes, feel free to use my mod in your modpack.