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:
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)
If you would like to feature your addon here let me know!