Link to tree-tweaker
Tree Tweaker is a CraftTweaker addon that allows you to add custom trees to world generation. The shape, height, leaves, logs, frequency, biome, and more can all be customized through zenscript. Trees can use modded blocks and be set to generate in modded biomes.
Link to crafttweaker-integration
Tree Tweaker issues should be discussed at the Tree Tweaker issue tracker.
Link to package
Link to script-requirements
create a new tree called
newtree, using the variable
var newtree = TreeFactory.createTree("newtree");
Link to newtreesettreetypetree_type
set which type of tree shape to generate as. Accepts OAK, SPRUCE, JUNGLE, BIRCH, ACACIA, and DARK_OAK.
Link to newtreeregister
register tree to add to worldgen. Make sure to call this method last.
Link to optional-syntaxes
Link to newtreesetlogmodid
set what log to use
Link to newtreesetleafmodid
set what leaf to use
Link to newtreesetminheightint
set the minimum height of the tree.
Link to newtreesetextraheightint
Extra height randomly added when tree generates
Link to newtreesetgenfrequencyint
Used to control how often a tree generates, successfully spawning at a rate of 1 in N attempts
Link to newtreesetgenattemptsint
How many trees should try to spawn during a successful generation attempt. Can be used to make clusters of trees
Link to newtreeextrathickboolean
Makes tree trunk generate as 2x2 thick. Only valid on LARGE_OAK, PINE, CANOPY, and SPRUCE trees
Link to newtreesetgenbiomestring
Set the biome of spawning, ignoring typical biome rules.
If not set, the tree will generate in all biomes that normally contain trees.
Link to newtreesetgenbiomebytagstring
Biome tag tree can generate in (HOT, SWAMP, SNOWY...), ignoring typical biome tree rules . Will not function unless spawnBiome is null.
Link to newtreesetbaseblockmodid
What block the tree should generate on top of. If not set, will default to blocks valid for vanilla trees (grass, dirt, farmland)
Link to newtreesetdimwhitelistint
Either single int or array of ints listing dimension IDs the tree may generate in. If null, may generate in any dimension