
Formations - Library for Extending Structure Datapack Capabilities
Formations is a library mod that significantly expands the possibilities of structure generation through datapacks in Minecraft.

Main Features
Structure Types
The library adds two new structure types: formations:simple and formations:pieced. These types correspond to standard vanilla structures but offer improved placement and a more understandable JSON format.
Both types support the following placement options:
surface- placement on the top layer of solid blocksceiling- placement on the bottom layer of solid blockson_water- placement on the top layer of blocks if those blocks are wateron_lava- placement on the top layer of blocks if those blocks are lavaunderground- underground placement between top and bottom block layersunderground_surface- underground placement at the bottom of an open areaunderground_ceiling- underground placement at the top of an open areaunderground_buried- completely buried underground placement without access to open areasunderground_on_lava- underground placement in an open area above lava
Structure Pool Elements
Added a new type of structure pool element - formations:single_pool_element. This element allows setting an arbitrary ground level instead of the standard level 0 in vanilla game through the ground_level parameter.
Structure Processors
Formations includes numerous new structure processors:
formations:random_bed_color- random bed color changesformations:biome_replacements- replacement of certain blocks (wood, bricks, grass) depending on the biomeformations:fill_brewing_stands- filling brewing stands with random potions and blaze powder with parametersslotFillChanceandmaxBlazePowderformations:fill_chiseled_bookshelves- filling chiseled bookshelves with enchanted books with parameterslotFillChanceformations:block_age- adding block aging effect with parametersmossiness,degradation,disintegration, replacing regular blocks with mossy or cracked variantsformations:random_plant_growth- random change of plant growth stage with parametersminGrowthandmaxGrowthformations:respawn_anchor_charges- randomization of respawn anchor charges with parametersminChargesandmaxChargesformations:waterlogging- management of block waterlogging with parameterhandling

Usage Examples
To study the practical application of library functions, you can explore the Formations Overworld and Formations Nether projects.

Frequently Asked Questions
Can I use your mod in my modpack? Yes, you are free to include this mod in your modpacks.

