{
  "type": "minecraft:tree",
  "config": {
    "ignore_vines": true,
    "force_dirt": false,
    "minimum_size": {
      "type": "minecraft:two_layers_feature_size",
      "limit": 3,
      "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": 3,
          "max_inclusive": 7
      },
      "above_root_placement": {
        "above_root_provider": {
          "type": "minecraft:simple_state_provider",
          "state": {
            "Name": "minecraft:moss_carpet"
          }
        },
        "above_root_placement_chance": 0.85
      },
      "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": 4,
      "height_rand_a": 1,
      "height_rand_b": 9,
      "extra_branch_steps": {
        "type": "minecraft:uniform",
          "min_inclusive": 1,
          "max_inclusive": 6
      },
      "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:cherry_foliage_placer",
      "radius": {
        "type": "minecraft:uniform",
          "min_inclusive": 3,
          "max_inclusive": 3
      },
      "offset": 1,
      "height": {
        "type": "minecraft:uniform",
          "min_inclusive": 4,
          "max_inclusive": 4
      },
      "wide_bottom_layer_hole_chance": 0.5,
      "corner_hole_chance": 0.8,
      "hanging_leaves_chance": 0.5,
      "hanging_leaves_extension_chance": 0.5
    },
    "decorators": [
      {
        "type": "minecraft:attached_to_leaves",
        "probability": 0.06,
        "exclusion_radius_xz": 1,
        "exclusion_radius_y": 0,
        "required_empty_blocks": 2,
        "block_provider": {
          "type": "minecraft:simple_state_provider",
          "state": {
            "Name": "minecraft:mangrove_propagule",
            "Properties": {
              "age": "3",
              "hanging": "true",
              "stage": "0",
              "waterlogged": "false"
            }
          }
        },
        "directions": [
          "down"
        ]
      },
      {
        "type": "minecraft:beehive",
        "probability": 0.01
      }
    ]
  }
}
