Data Packs World Generation

Big Custom Trees (customisable)

    • 2,505 views • 3 today
    • 149 downloads • 0 today
    • 8
    • 10
    • 13
    Required Resource Pack
    JKuantamechanic
    Level 35 : Artisan Network Architect
    25
    Are you looking to create an epic fantasy landscape but the vanilla trees just don't cut it in terms of scale? Well, this data pack allows you to grow trees to sizes well beyond what's possible with vanilla world gen.

    To grow this tree you must look for a mystical sapling. These saplings are obtained by brushing suspicious gravel and sand in pyramids, wells, ruins etc. You cannot remove the sapling after placing it somewhere, so choose wisely. It will grow into a massive tree after a long time. The tree's height will vary, some will reach above the clouds and some only 50 blocks.



    How to generate the tree in creative:
    Type this command, otherwise the tree will not generate in its entirety if it is too big:

    /gamerule maxCommandChainLength 1000000, or/gamerule max_command_sequence_length 10000000, in the latest version

    Generate the tree by providing your own parameters using this command:
    function xz:generate_tree {branch_length: 10, max_branch_per_segment: 2, min_branch_per_segment: 1, branch_start_height: 2, max_consequtive_0segments:1, generate_branch_chance: 70, trunk_radius: 2, wood_block: "spruce_log"}
    or, if you want the default tree:
    function xz:generate_tree_default


    How the tree generates:
    The tree is composed of segments that build on top of each other, each consecutive segment gets thinner the further away from the root you get. Each segment has a configurable chance to generate a configurable number of branches, and each branch will have more branches iteratively. Finally, leaves are generated at the last segment of all branches.


    Parameters:
    branch_length: determines the length of each branch or trunk segment.
    max_branch_per_segment: Must be one more than min_branch_per_segment, determines the uppermost number of branches possible on a segment * 2 - 2, so max_branch_per_segment = 4 will generate a maximum of 6 branches per segment (which is way too many).
    min_branch_per_segment: determines the minimum number of branches generated per segment * 2.
    branch_start_height: specifies the minimum height from the ground in the number of main trunk segments until branches start generating.
    max_consequtive_0segments: specifies the maximum number of consecutive branch segments of radius 0 (single block columns). Maximum 7.
    generate_branch_chance: determines the chance that an individual branch will generate. (Adds a bit more randomness to the branch generation)
    trunk_radius: the radius of the initial base trunk. 0 = 1 block column, 1= 9 block square, 2 = big tree already, 3 = massive (up to build limit), 4 = time to reduce branches, 5 = ..., 6 = !!!
    wood_block: the block used for the branches/trunk.


    I hope you enjoy the data pack. If you intend on publishing creations built using this data pack, please leave credit, thanks!
    CompatibilityMinecraft 1.21
    Tags

    3 Update Logs

    Update #3 : by JKuantamechanic 02/14/2026 10:55:45 pmFebruary 15 @ 3:55 am UTC

    Fixed for the latest snapshot.
    LOAD MORE LOGS

      Have something to say?

    Ririt700PMC
    02/21/2025 1:26 am
    She/Her • Level 37 : Artisan Aesthetic Sweetheart
    Woah :O
    1
    peA_sh0ter
    02/02/2025 11:36 am
    Level 12 : Journeyman Network
    Nice logo bro!
    1
    JKuantamechanic
    02/02/2025 3:59 pm
    Level 35 : Artisan Network Architect
    Thanks!
    2
    mia1066
    01/28/2025 1:48 pm
    Level 1 : New Miner
    is there a way to stop the leaf decay am running in 1.21.4?
    1
    JKuantamechanic
    01/28/2025 6:59 pm
    Level 35 : Artisan Network Architect
    history
    It should be fixed now.
    1
    JKuantamechanic
    01/28/2025 6:49 pm
    Level 35 : Artisan Network Architect
    I'll see if I can fix that.
    1
    tollcraft
    01/27/2025 1:57 am
    He/Him • Level 50 : Grandmaster Steve Demolitionist
    Quite neat,but why so squarish
    1
    JKuantamechanic
    01/27/2025 1:59 am
    Level 35 : Artisan Network Architect
    I've noticed that generation doesn't work so well when the base of branches is circular. But I'll see if I can make a compromise if you want.
    2
    tollcraft
    01/27/2025 11:04 pm
    He/Him • Level 50 : Grandmaster Steve Demolitionist
    Uhh get it.
    1
    peA_sh0ter
    01/26/2025 4:06 pm
    Level 12 : Journeyman Network
    I'll probably be using this for a tree mod I'm planning. Credit shall be given, forthright!
    1

    Welcome