{
  "feature": "terralith:canyon/sandstone/sandstone",
  "placement": [
    {
      "type": "minecraft:count",
      "count": 20
    },
    {
      "type": "minecraft:count",
      "count": 70
    },
    {
      "type": "minecraft:in_square"
    },
    {
      "type": "minecraft:height_range",
      "height": {
        "type": "minecraft:uniform",
        "min_inclusive": {
          "absolute": 62
        },
        "max_inclusive": {
          "absolute": 270
        }
      }
    },
    {
      "type": "minecraft:environment_scan",
      "direction_of_search": "down",
      "max_steps": 16,
      "target_condition": {
        "type": "minecraft:all_of",
        "predicates": [
          {
            "type": "minecraft:matching_blocks",
            "blocks": [
              "minecraft:stone"
            ]
          },
          {
            "type": "minecraft:any_of",
            "predicates": [
              {
                "type": "minecraft:matching_blocks",
                "blocks": [
                  "minecraft:air"
                ],
                "offset": [
                  5,
                  0,
                  0
                ]
              },
              {
                "type": "minecraft:matching_blocks",
                "blocks": [
                  "minecraft:air"
                ],
                "offset": [
                  0,
                  0,
                  5
                ]
              },
              {
                "type": "minecraft:matching_blocks",
                "blocks": [
                  "minecraft:air"
                ],
                "offset": [
                  -5,
                  0,
                  0
                ]
              },
              {
                "type": "minecraft:matching_blocks",
                "blocks": [
                  "minecraft:air"
                ],
                "offset": [
                  0,
                  0,
                  -5
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "type": "minecraft:biome"
    }
  ]
}