{
  "type": "lithostitched:add_surface_rule",
  "predicate": {
    "type": "lithostitched:true"
  },
  "levels": ["minecraft:overworld"],
  "surface_rule": {
    "type": "minecraft:sequence",
    "sequence": [
      {
        "type": "minecraft:condition",
        "if_true": {
          "type": "minecraft:biome",
          "biome_is": ["minecraft:river", "minecraft:frozen_river"]
        },
        "then_run": {
          "type": "minecraft:sequence",
          "sequence": [
            {
              "type": "minecraft:condition",
              "if_true": {
                "type": "minecraft:noise_threshold",
                "noise": "angel_islands:ridges",
                "min_threshold": -0.095,
                "max_threshold": 0.095
              },
              "then_run": {
                "type": "minecraft:condition",
                "if_true": {
                  "type": "minecraft:stone_depth",
                  "offset": 0,
                  "surface_type": "floor",
                  "add_surface_depth": false,
                  "secondary_depth_range": 0
                },
                "then_run": {
                  "type": "minecraft:block",
                  "result_state": {
                    "Name": "minecraft:water",
                    "Properties": {
                      "level": "0"
                    }
                  }
                }
              }
            },
            {
              "type": "minecraft:condition",
              "if_true": {
                "type": "minecraft:noise_threshold",
                "noise": "angel_islands:ridges",
                "min_threshold": -0.04,
                "max_threshold": 0.04
              },
              "then_run": {
                "type": "minecraft:condition",
                "if_true": {
                  "type": "minecraft:stone_depth",
                  "offset": 1,
                  "surface_type": "floor",
                  "add_surface_depth": false,
                  "secondary_depth_range": 0
                },
                "then_run": {
                  "type": "minecraft:block",
                  "result_state": {
                    "Name": "minecraft:water",
                    "Properties": {
                      "level": "0"
                    }
                  }
                }
              }
            },
            {
              "type": "minecraft:condition",
              "if_true": {
                "type": "minecraft:noise_threshold",
                "noise": "angel_islands:ridges",
                "min_threshold": -0.03,
                "max_threshold": 0.03
              },
              "then_run": {
                "type": "minecraft:condition",
                "if_true": {
                  "type": "minecraft:stone_depth",
                  "offset": 2,
                  "surface_type": "floor",
                  "add_surface_depth": false,
                  "secondary_depth_range": 0
                },
                "then_run": {
                  "type": "minecraft:block",
                  "result_state": {
                    "Name": "minecraft:water",
                    "Properties": {
                      "level": "0"
                    }
                  }
                }
              }
            },
            {
              "type": "minecraft:condition",
              "if_true": {
                "type": "minecraft:noise_threshold",
                "noise": "angel_islands:ridges",
                "min_threshold": -0.02,
                "max_threshold": 0.02
              },
              "then_run": {
                "type": "minecraft:condition",
                "if_true": {
                  "type": "minecraft:stone_depth",
                  "offset": 3,
                  "surface_type": "floor",
                  "add_surface_depth": false,
                  "secondary_depth_range": 0
                },
                "then_run": {
                  "type": "minecraft:block",
                  "result_state": {
                    "Name": "minecraft:water",
                    "Properties": {
                      "level": "0"
                    }
                  }
                }
              }
            },
            {
              "type": "minecraft:condition",
              "if_true": {
                "type": "minecraft:noise_threshold",
                "noise": "angel_islands:ridges",
                "min_threshold": -0.01,
                "max_threshold": 0.01
              },
              "then_run": {
                "type": "minecraft:condition",
                "if_true": {
                  "type": "minecraft:stone_depth",
                  "offset": 4,
                  "surface_type": "floor",
                  "add_surface_depth": false,
                  "secondary_depth_range": 0
                },
                "then_run": {
                  "type": "minecraft:block",
                  "result_state": {
                    "Name": "minecraft:water",
                    "Properties": {
                      "level": "0"
                    }
                  }
                }
              }
            },
            {
              "type": "minecraft:condition",
              "if_true": {
                "type": "minecraft:stone_depth",
                "offset": 0,
                "surface_type": "floor",
                "add_surface_depth": false,
                "secondary_depth_range": 0
              },
              "then_run": {
                "type": "minecraft:block",
                "result_state": {
                  "Name": "minecraft:grass_block",
                  "Properties": {
                    "snowy": "false"
                  }
                }
              }
            },
            {
              "type": "minecraft:condition",
              "if_true": {
                "type": "minecraft:stone_depth",
                "offset": 4,
                "surface_type": "floor",
                "add_surface_depth": true,
                "secondary_depth_range": 0
              },
              "then_run": {
                "type": "minecraft:block",
                "result_state": {
                  "Name": "minecraft:dirt"
                }
              }
            }
          ]
        }
      }
    ]
  }
}
