Add Piece Pool System#1
Conversation
|
Here's the text in the pool guide markdown Guide to Piece Pools
IntroductionWhen making chunk generators that use NbtGroups, you may realize that adding more nbt pieces to your chunk generator's The Solution? We create a datapack-definable and datapack-modifiable object that gets converted into a Nbt-GroupThis is the purpose of the Piece-Pool system: to create a dynamically-referencable object that can be modified via For Mod DevelopersPreparationThe first step is to prepare our chunk generator to use a Piece Pool. This is done by making it either extend You may use AbstractDynamicChunkGeneratorWhen extending Next, we override Once you have done these steps, your chunk generator will be ready for Piece Pool usage. Note: to actually use your nbt-group, simply use
|
Add the Piece Pool system to allow for addon and modpack developers to add their own nbt pieces to Nbt Groups used by chunk generators
For more details on the Piece Pool system, as well as how to prepare (and migrate) a chunk generator to make use of it, read the POOL_GUIDE.md file (found in api/worldgen/pools)
This pull request targets the 1.21.1 version of the library, but if desired, a version that targets the 1.20.1 version can be made