{
  "type": "minecraft:range_choice",
  "input": "minecraft:y",
  "min_inclusive": 32,
  "max_exclusive": 2048,
  "when_in_range": {
    "type": "minecraft:clamp",
    "input": {
      "type": "minecraft:add",
      "argument1": 0,
      "argument2": "tectonic:depth"
    },
    "min": -64,
    "max": 0.8
  },
  "when_out_of_range": "tectonic:depth"
}