Edit

Feature Documentation - minecraft:tree_feature

Contents

Places a tree in the world. A tree consists of a column that is anchored to a base block with set parameters for what it can be placed on and canopy that extends from the column. The trunk height can be randomized with a min and max value, as well as the canopy offset.

Note

This item requires a format version of at least 1.20.30.

Tree Feature Properties

Name Default Value Type Description
acacia_canopy not set Acacia Canopy item
acacia_trunk not set Acacia Trunk item
base_block not set Array of strings
base_cluster not set Base Cluster item Clusters of blocks randomly replaced with "base_block" around the base of the tree.
canopy not set Canopy item
cherry_canopy not set Cherry Canopy item
cherry_trunk not set Cherry Trunk item
description not set Description item
fallen_trunk not set Fallen Trunk item
fancy_canopy not set Fancy Canopy item
fancy_trunk not set Fancy Trunk item
format_version not set String
mangrove_canopy not set Key/item pairs of Mangrove Canopy items
mangrove_roots not set Mangrove Roots item
mangrove_trunk not set Mangrove Trunk item
may_grow_on not set Array of strings
may_grow_through not set Array of strings
may_replace not set Array of strings
mega_canopy not set Mega Canopy item
mega_pine_canopy not set Mega Pine Canopy item
mega_trunk not set Mega Trunk item
pine_canopy not set Pine Canopy item
poplar_canopy not set Poplar Canopy item
poplar_trunk not set Poplar Trunk item
random_spread_canopy not set Key/item pairs of Random Spread Canopy items
roofed_canopy not set Roofed Canopy item
spruce_canopy not set Object
trunk not set Trunk item

Acacia Canopy

Acacia Canopy Properties

JSON path: acacia_canopy

Name Default Value Type Description
canopy_size not set Integer number The size of the canopy.
simplify_canopy not set Boolean true/false If true the canopy uses a simple pattern.

Acacia Trunk

Acacia Trunk Properties

JSON path: acacia_trunk

Name Default Value Type Description
branches not set Branches item Configuration object for branches.
trunk_decoration not set Trunk Decoration item Configuration object for the trunk decoration.
trunk_height not set Trunk Height item Configuration object for the trunk height.
trunk_lean not set Trunk Lean item Configuration object for diagonal branches.
trunk_width not set Integer number The width of the tree trunk.

Branches

Branches Properties

JSON path: acacia_trunk > branches

Name Default Value Type Description
branch_canopy not set Branch Canopy item Configuration object for the canopy.
Branch Canopy
Branch Canopy Properties

JSON path: acacia_trunk > branches > branch_canopy

Name Default Value Type Description
acacia_canopy not set Acacia Canopy item
canopy not set Canopy item
cherry_canopy not set Cherry Canopy item
fancy_canopy not set Fancy Canopy item
mangrove_canopy not set Key/item pairs of Mangrove Canopy items
mega_canopy not set Mega Canopy item
mega_pine_canopy not set Mega Pine Canopy item
pine_canopy not set Pine Canopy item
roofed_canopy not set Roofed Canopy item
spruce_canopy not set Object
Canopy
Canopy Properties

JSON path: acacia_trunk > branches > branch_canopy > canopy

Name Default Value Type Description
canopy_decoration not set Canopy Decoration item Configuration object for the canopy decoration.
canopy_offset not set Canopy Offset item Canopy position offset relative to the block above the trunk.
canopy_slope not set Canopy Slope item Configuration object for the canopy slope.
min_width not set Integer number Min width for the canopy.
variation_chance not set Array of strings
Canopy Decoration
Canopy Decoration Properties

JSON path: acacia_trunk > branches > branch_canopy > canopy > canopy_decoration

Name Default Value Type Description
decoration_blocks_sequence not set Array of objects
decoration_blocks_sequence (as Array of strings) not set Array of strings
num_steps not set Integer number Number of decoration blocks to place. (Will not be used if "decoration_blocks_sequence" given)
step_direction"<"down", "up", "out", "away" not set String Directions to spread decoration blocks.
Canopy Offset
Canopy Offset Properties

JSON path: acacia_trunk > branches > branch_canopy > canopy > canopy_offset

Name Default Value Type Description
max not set Integer number Max canopy position offset.
min not set Integer number Min canopy position offset.
Canopy Slope
Canopy Slope Properties

JSON path: acacia_trunk > branches > branch_canopy > canopy > canopy_slope

Name Default Value Type Description
rise not set Integer number The numerator for the slope fraction.
run not set Integer number The denominator for the slope fraction.
Cherry Canopy
Cherry Canopy Properties

JSON path: acacia_trunk > branches > branch_canopy > cherry_canopy

Name Default Value Type Description
trunk_width not set Integer number The width of the tree trunk.
Fancy Canopy
Fancy Canopy Properties

JSON path: acacia_trunk > branches > branch_canopy > fancy_canopy

Name Default Value Type Description
height not set Integer number Number of layers for the canopy.
radius not set Integer number The radius of the canopy.
Mangrove Canopy
Mangrove Canopy Properties

JSON path: acacia_trunk > branches > branch_canopy > mangrove_canopy

Name Default Value Type Description
canopy_decoration not set Canopy Decoration item Configuration object for the canopy decoration.
leaf_blocks not set Array of strings
leaf_placement_attempts not set Integer number Max number of attempts to create leaf blocks.
Mega Canopy
Mega Canopy Properties

JSON path: acacia_trunk > branches > branch_canopy > mega_canopy

Name Default Value Type Description
base_radius not set Integer number Radius of the canopy.
core_width not set Integer number Width of the tree trunk.
simplify_canopy not set Boolean true/false If true the canopy uses a simple pattern.
Mega Pine Canopy
Mega Pine Canopy Properties

JSON path: acacia_trunk > branches > branch_canopy > mega_pine_canopy

Name Default Value Type Description
base_radius not set Integer number Radius of the canopy.
core_width not set Integer number Width of the tree trunk.
Pine Canopy
Pine Canopy Properties

JSON path: acacia_trunk > branches > branch_canopy > pine_canopy

Name Default Value Type Description
base_radius not set Integer number Radius of the canopy.
Roofed Canopy
Roofed Canopy Properties

JSON path: acacia_trunk > branches > branch_canopy > roofed_canopy

Name Default Value Type Description
canopy_height not set Integer number Roofed canopies feature a base and a top layer, and an extra cap layer on some occasions, this value controls the number of layers in the middle.
core_width not set Integer number Width of the tree trunk.
inner_radius not set Integer number Radius used for the middle layers.
outer_radius not set Integer number Radius used for the base and top layers.

Trunk Decoration

Trunk Decoration Properties

JSON path: acacia_trunk > trunk_decoration

Name Default Value Type Description
decoration_blocks_sequence not set Array of objects
decoration_blocks_sequence (as Array of strings) not set Array of strings
num_steps not set Integer number Number of decoration blocks to place. (Will not be used if "decoration_blocks_sequence" given)
step_direction"<"down", "up", "out", "away" not set String Directions to spread decoration blocks.

Trunk Height

Trunk Height Properties

JSON path: acacia_trunk > trunk_height

Name Default Value Type Description
base not set Integer number Min height for the trunk.
intervals not set Array of strings
min_height_for_canopy not set Integer number Min height where the canopy can be placed.

Trunk Lean

Trunk Lean Properties

JSON path: acacia_trunk > trunk_lean

Name Default Value Type Description
allow_diagonal_growth not set Boolean true/false If true, diagonal branches will be created.

Base Cluster

Base Cluster Properties

JSON path: base_cluster

Name Default Value Type Description
cluster_radius not set Integer number The radius of each cluster.
may_replace not set Array of strings
num_clusters not set Integer number Number of clusters to generate.

Cherry Trunk

Cherry Trunk Properties

JSON path: cherry_trunk

Name Default Value Type Description
branches not set Branches item Configuration object for branches.
trunk_height not set Trunk Height item Configuration object for the trunk height.

Description

Description Properties

JSON path: description

Name Default Value Type Description
identifier not set String The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.

Fallen Trunk

Fallen Trunk Properties

JSON path: fallen_trunk

Name Default Value Type Description
trunk_decoration not set Trunk Decoration item Configuration object for the trunk decoration.

Fancy Trunk

Fancy Trunk Properties

JSON path: fancy_trunk

Name Default Value Type Description
branches not set Object Configuration object for branches.
trunk_height not set Trunk Height item Configuration object for the trunk height.
trunk_width not set Integer number The width of the tree trunk.

Mangrove Roots

Mangrove Roots Properties

JSON path: mangrove_roots

Name Default Value Type Description
above_root not set Object Configuration object for blocks decorating the top of the roots.
max_root_length not set Integer number Max length for the roots.
max_root_width not set Integer number Max width that the roots can occupy. The width increases up to the max width while moving downwards. When a max width is reached, roots will grow vertically.
root_decoration not set Root Decoration item Configuration object for the root decoration.
roots_may_grow_through not set Array of strings

Root Decoration

Root Decoration Properties

JSON path: mangrove_roots > root_decoration

Name Default Value Type Description
decoration_blocks_sequence not set Array of objects
decoration_blocks_sequence (as Array of strings) not set Array of strings
num_steps not set Integer number Number of decoration blocks to place. (Will not be used if "decoration_blocks_sequence" given)
step_direction"<"down", "up", "out", "away" not set String Directions to spread decoration blocks.

Mangrove Trunk

Mangrove Trunk Properties

JSON path: mangrove_trunk

Name Default Value Type Description
branches not set Object Configuration object for branches.
trunk_decoration not set Trunk Decoration item Configuration object for the trunk decoration.
trunk_height not set Trunk Height item Configuration object for the trunk height.
trunk_width not set Integer number The width of the tree trunk.

Mega Trunk

Mega Trunk Properties

JSON path: mega_trunk

Name Default Value Type Description
branches not set Branches item Configuration object for branches.
trunk_decoration not set Trunk Decoration item Configuration object for the trunk decoration.
trunk_height not set Trunk Height item Configuration object for the trunk height.

Poplar Canopy

Poplar Canopy Properties

JSON path: poplar_canopy

Name Default Value Type Description
radius not set Array of Radius items
radius (as Array of strings) not set Array of strings Randomly selects a radius from this list based on their weighted value.
trunk_width not set Integer number The width of the tree trunk.

Radius

Radius Properties

JSON path: poplar_canopy > radius

Name Default Value Type Description
value not set Integer number Radius of canopy.
weight not set Integer number Weight for this entry.

Poplar Trunk

Same structure as Fallen Trunk.

Random Spread Canopy

Random Spread Canopy Properties

JSON path: random_spread_canopy

Name Default Value Type Description
leaf_blocks not set Array of strings
leaf_placement_attempts not set Integer number Max number of attempts to create leaf blocks.

Trunk

Trunk Properties

JSON path: trunk

Name Default Value Type Description
can_be_submerged not set Can Be Submerged item Specifies if the trunk can be submerged.
can_be_submerged (as Boolean true/false) not set Boolean true/false Specifies if the trunk can be submerged.
trunk_decoration not set Trunk Decoration item Configuration object for the trunk decoration.

Can Be Submerged

Can Be Submerged Properties

JSON path: trunk > can_be_submerged

Name Default Value Type Description
max_depth not set Integer number Defines the max depth at which the trunk can be submerged.

Samples

Example

"minecraft:tree_feature": {
  "format_version": "1.13.0",
  "minecraft:tree_feature": {
    "description": {
      "identifier": "example:azalea_tree_feature"
    },
    "acacia_trunk": {
      "trunk_width": 1,
      "trunk_height": {
        "base": 4,
        "intervals": [
          2
        ],
        "min_height_for_canopy": 3
      },
      "trunk_block": {
        "name": "minecraft:log",
        "states": {
          "old_log_type": "oak"
        }
      },
      "trunk_lean": {
        "allow_diagonal_growth": true,
        "lean_height": {
          "range_min": 2,
          "range_max": 3
        },
        "lean_steps": {
          "range_min": 3,
          "range_max": 4
        },
        "lean_length": {
          "range_min": 1,
          "range_max": 2
        }
      }
    },
    "random_spread_canopy": {
      "canopy_height": 2,
      "canopy_radius": 3,
      "leaf_placement_attempts": 50,
      "leaf_blocks": [
        [
          "minecraft:azalea_leaves",
          3
        ],
        [
          "minecraft:azalea_leaves_flowered",
          1
        ]
      ]
    },
    "base_block": [
      "minecraft:dirt_with_roots"
    ],
    "may_grow_on": [
      "minecraft:dirt",
      "minecraft:grass_block",
      "minecraft:podzol",
      "minecraft:dirt",
      "minecraft:farmland",
      "minecraft:dirt_with_roots",
      "minecraft:moss_block",
      "minecraft:clay",
      "minecraft:mycelium",
      "minecraft:mud",
      "minecraft:muddy_mangrove_roots"
    ],
    "may_replace": [
      "minecraft:oak_leaves",
      "minecraft:spruce_leaves",
      "minecraft:birch_leaves",
      "minecraft:jungle_leaves",
      "minecraft:acacia_leaves",
      "minecraft:dark_oak_leaves",
      "minecraft:azalea",
      "minecraft:flowering_azalea",
      "minecraft:azalea_leaves",
      "minecraft:azalea_leaves_flowered",
      "minecraft:mangrove_leaves",
      "minecraft:water",
      "minecraft:flowing_water",
      "minecraft:moss_carpet",
      "minecraft:tallgrass",
      "minecraft:grass_block",
      "minecraft:air",
      "minecraft:sunflower",
      "minecraft:lilac",
      "minecraft:tall_grass",
      "minecraft:large_fern",
      "minecraft:rose_bush",
      "minecraft:peony"
    ],
    "may_grow_through": [
      "minecraft:dirt",
      "minecraft:grass_block",
      "minecraft:moss_carpet",
      "minecraft:tallgrass",
      "minecraft:sunflower",
      "minecraft:lilac",
      "minecraft:tall_grass",
      "minecraft:large_fern",
      "minecraft:rose_bush",
      "minecraft:peony"
    ]
  }
}