{
  "type": "minecraft:range_choice",
  "input": "terralith:overworld/reference/megacave",
  "min_inclusive": -1000000,
  "max_exclusive": 0.1,
  "when_in_range": {
    "type": "minecraft:mul",
    "argument1": 4.0,
    "argument2": {
      "type": "minecraft:square",
      "argument": {
        "type": "minecraft:noise",
        "noise": "terralith:math/cheese/cave_layer",
        "xz_scale": 0.75,
        "y_scale": 5.0
      }
    }
  },
  "when_out_of_range": 4.0
}