This PR fixes #518 by replacing village templates that spawn vanilla trees with ones that spawn dynamic versions.
Features
PatternModifier interface with general implementation RegularPatternModifier that can be used to replace or remove templates from selected pools.
TreeJigsawPiece which places a seed item in place of generating a whole tree. The seed item has force plant set to true, lifespan to 0, and code to a random integer between 2 and 8. This effectively just spawns a random dynamic tree once the chunk with the seed item loads in.
Replacement of all trees in vanilla villages (including plains, savanna, taiga, and snowy villages as well as their zombie counterparts).
Replacement of oak tree in minecraft:village/plains/town_centers/plains_meeting_point_3 template (and zombie village counterpart) with a randomised dynamic tree.
Supporting Changes
The Code tag for seeds now accepts an integer. This can be set to 2-8 and will generate a tree using a random JoCode of that radius.
This PR fixes #518 by replacing village templates that spawn vanilla trees with ones that spawn dynamic versions.
Features
PatternModifier
interface with general implementationRegularPatternModifier
that can be used to replace or remove templates from selected pools.TreeJigsawPiece
which places a seed item in place of generating a whole tree. The seed item has force plant set totrue
, lifespan to0
, and code to a random integer between2
and8
. This effectively just spawns a random dynamic tree once the chunk with the seed item loads in.minecraft:village/plains/town_centers/plains_meeting_point_3
template (and zombie village counterpart) with a randomised dynamic tree.Supporting Changes
Code
tag for seeds now accepts an integer. This can be set to2
-8
and will generate a tree using a random JoCode of that radius.