{
  "feature": {
    "type": "minecraft:ore",
    "config": {
      "size": 15,
      "discard_chance_on_air_exposure": 0,
      "targets": [
        {
          "target": {
            "predicate_type": "minecraft:tag_match",
            "tag": "terralith:special_ice_replaceable"
          },
          "state": {
            "Name": "minecraft:ice"
          }
        }
      ]
    }
  },
  "placement": [
    {
      "type": "minecraft:count",
      "count": 4
    },
    {
      "type": "minecraft:count",
      "count": 256
    },
    {
      "type": "minecraft:in_square"
    },
    {
      "type": "minecraft:heightmap",
      "heightmap": "WORLD_SURFACE_WG"
    },
    {
      "type": "minecraft:random_offset",
      "xz_spread": 0,
      "y_spread": -1
    },
    {
      "type": "minecraft:environment_scan",
      "direction_of_search": "down",
      "max_steps": 32,
      "target_condition": {
        "type": "minecraft:all_of",
        "predicates": [
                    {
            "type": "minecraft:matching_blocks",
            "offset": [
              0,
              -4,
              0
            ],
            "blocks": "minecraft:air"
          },
                    {
            "type": "minecraft:matching_blocks",
            "offset": [
              0,
              -3,
              0
            ],
            "blocks": "minecraft:air"
          },
                    {
            "type": "minecraft:matching_blocks",
            "offset": [
              0,
              -2,
              0
            ],
            "blocks": "minecraft:air"
          },
                    {
            "type": "minecraft:matching_blocks",
            "offset": [
              0,
              -1,
              0
            ],
            "blocks": "minecraft:air"
          },
          {
            "type": "minecraft:matching_blocks",
            "offset": [
              0,
              0,
              0
            ],
            "blocks": "minecraft:air"
          },
          {
            "type": "minecraft:matching_blocks",
            "offset": [
              0,
              1,
              0
            ],
            "blocks": [
              "minecraft:packed_ice",
              "minecraft:blue_ice",
              "minecraft:ice",
              "minecraft:stone"
            ]
          }
        ]
      }
    }
  ]
}
