Treeplacer
Ever played with a mod, such as Terralith or William Wythers' Overhauled Overworld, that add custom trees to world gen that you can't grow?
Treeplacer allows for the creation of custom datapacks that allow you to change what a sapling grows into based on its growing conditions.
Features include:
- Changing a sapling's tree for all biomes
- Change based on selected biome
- Change based on block grown on, globally or per biome
- Weighted randomization of saplings grown
- Change based on world position such as y level
- Define 2x2 trees even for saplings that do not naturally have them
- Change large mushrooms (they are internally trees)
To get started take a look at the wiki on github.
Create Sapling Override JSONs online here!
Example sapling override json for an oak sapling:
{
"replace": false,
"values": {
"treeplacer:all_biomes":[
{
"feature":"minecraft:birch",
"weird":true
},
{
"feature":"minecraft:fancy_oak",
"weird":false
}
],
"minecraft:plains":[
{
"feature":"minecraft:spruce",
"weight":1,
"y":{
"max":70
},
"weird":false,
"block":[{"id":"minecraft:podzol"},{"id":"minecraft:coarse_dirt"}]
},
{
"feature":"minecraft:jungle_tree",
"weight":2,
"block":[{"id":"minecraft:podzol"}]
}
],
"minecraft:dirt":"minecraft:acacia"
}
}
Add Ons:
Terralith by FusionSwarly (May be out of date)
Old Wyther's by OutrightWings
WWEE by Mic1e
Middgard by SbeevYT
If you would like to feature your addon here let me know!