{
  "type": "minecraft:simple_random_selector",
  "config": {
    "features": [
      {
        "feature": {
          "type": "minecraft:tree",
          "config": {
            "ignore_vines": true,
            "force_dirt": false,
            "minimum_size": {
              "type": "minecraft:two_layers_feature_size",
              "limit": 2,
              "lower_size": 0,
              "upper_size": 2
            },
            "dirt_provider": {
              "type": "minecraft:simple_state_provider",
              "state": {
                "Name": "minecraft:dirt"
              }
            },
            "trunk_provider": {
              "type": "minecraft:simple_state_provider",
              "state": {
                "Name": "minecraft:mangrove_log",
                "Properties": {
                  "axis": "y"
                }
              }
            },
            "foliage_provider": {
              "type": "minecraft:simple_state_provider",
              "state": {
                "Name": "minecraft:mangrove_leaves",
                "Properties": {
                  "distance": "7",
                  "persistent": "false",
                  "waterlogged": "false"
                }
              }
            },
            "root_placer": {
              "type": "minecraft:mangrove_root_placer",
              "root_provider": {
                "type": "minecraft:simple_state_provider",
                "state": {
                  "Name": "minecraft:mangrove_roots",
                  "Properties": {
                    "waterlogged": "false"
                  }
                }
              },
              "trunk_offset_y": {
                "type": "minecraft:uniform",
                  "min_inclusive": 1,
                  "max_inclusive": 3
              },
              "above_root_placement": {
                "above_root_provider": {
                  "type": "minecraft:simple_state_provider",
                  "state": {
                    "Name": "minecraft:moss_carpet"
                  }
                },
                "above_root_placement_chance": 0.5
              },
              "mangrove_root_placement": {
                "max_root_width": 8,
                "max_root_length": 15,
                "random_skew_chance": 0.2,
                "can_grow_through": "#minecraft:mangrove_roots_can_grow_through",
                "muddy_roots_in": [
                  "minecraft:mud",
                  "minecraft:muddy_mangrove_roots"
                ],
                "muddy_roots_provider": {
                  "type": "minecraft:simple_state_provider",
                  "state": {
                    "Name": "minecraft:muddy_mangrove_roots",
                    "Properties": {
                      "axis": "y"
                    }
                  }
                }
              }
            },
            "trunk_placer": {
              "type": "minecraft:upwards_branching_trunk_placer",
              "base_height": 2,
              "height_rand_a": 1,
              "height_rand_b": 4,
              "extra_branch_steps": {
                "type": "minecraft:uniform",
                  "min_inclusive": 1,
                  "max_inclusive": 4
              },
              "extra_branch_length": {
                "type": "minecraft:uniform",
                  "min_inclusive": 0,
                  "max_inclusive": 1
              },
              "place_branch_per_log_probability": 0.5,
              "can_grow_through": "#minecraft:mangrove_logs_can_grow_through"
            },
            "foliage_placer": {
              "type": "minecraft:random_spread_foliage_placer",
              "radius": 3,
              "offset": 0,
              "foliage_height": 2,
              "leaf_placement_attempts": 70
            },
            "decorators": [
              {
                "type": "minecraft:attached_to_leaves",
                "probability": 0.14,
                "exclusion_radius_xz": 1,
                "exclusion_radius_y": 0,
                "required_empty_blocks": 2,
                "block_provider": {
                  "type": "minecraft:randomized_int_state_provider",
                  "property": "age",
                  "values": {
                    "type": "minecraft:uniform",
                      "min_inclusive": 0,
                      "max_inclusive": 4
                  },
                  "source": {
                    "type": "minecraft:simple_state_provider",
                    "state": {
                      "Name": "minecraft:mangrove_propagule",
                      "Properties": {
                        "age": "0",
                        "hanging": "true",
                        "stage": "0",
                        "waterlogged": "false"
                      }
                    }
                  }
                },
                "directions": [
                  "down"
                ]
              },
              {
                "type": "minecraft:beehive",
                "probability": 0.01
              }
            ]
          }
        },
        "placement": [
          {
            "type": "minecraft:block_predicate_filter",
            "predicate": {
              "type": "minecraft:not",
              "predicate": {
                "type": "minecraft:matching_block_tag",
                "offset": [
                  0,
                  -1,
                  0
                ],
                "tag": "clifftree:sapling_cannot_grow_warm"
              }
            }
          }
        ]
      }
    ]
  }
}
