{
  "feature": {
    "type": "minecraft:root_system",
    "config": {
      "required_vertical_space_for_tree": 7,
      "root_radius": 3,
      "root_placement_attempts": 20,
      "root_column_max_height": 100,
      "hanging_root_radius": 3,
      "hanging_roots_vertical_span": 2,
      "hanging_root_placement_attempts": 20,
      "allowed_vertical_water_for_tree": 4,
      "root_replaceable": "#minecraft:azalea_root_replaceable",
      "root_state_provider": {
        "type": "minecraft:simple_state_provider",
        "state": {
          "Name": "minecraft:diorite"
        }
      },
      "hanging_root_state_provider": {
        "type": "minecraft:simple_state_provider",
        "state": {
          "Name": "minecraft:diorite"
        }
      },
      "allowed_tree_position": {
        "type": "minecraft:matching_blocks",
        "offset": [
          0,
          13,
          0
        ],
        "blocks": [
          "minecraft:air"
        ]
      },
      "feature": {
        "feature": {
          "type": "minecraft:random_selector",
          "config": {
            "features": [
              {
                "chance": 0.4,
                "feature": "terralith:cave/stone/diorite_clearing_large"
              }
            ],
            "default": "terralith:cave/stone/diorite_clearing_small"
          }
        },
        "placement": []
      }
    }
  },
  "placement": [
    {
      "type": "minecraft:rarity_filter",
      "chance": 14
    },
    {
      "type": "minecraft:in_square"
    },
    {
      "type": "minecraft:height_range",
      "height": {
        "type": "minecraft:uniform",
        "min_inclusive": {
          "absolute": -64
        },
        "max_inclusive": {
          "absolute": 128
        }
      }
    },
    {
      "type": "minecraft:environment_scan",
      "direction_of_search": "up",
      "max_steps": 32,
      "target_condition": {
        "type": "minecraft:all_of",
        "predicates": [
          {
            "type": "minecraft:matching_blocks",
            "offset": [
              0,
              1,
              0
            ],
            "blocks": [
              "minecraft:diorite"
            ]
          },
          {
            "type": "minecraft:matching_blocks",
            "offset": [
              0,
              0,
              0
            ],
            "blocks": [
              "minecraft:air",
              "minecraft:cave_air"
            ]
          }
        ]
      }
    },
    {
      "type": "minecraft:biome"
    }
  ]
}
