{
  "type": "minecraft:range_choice",
  "input": "terralith:overworld/spike/size_spline",
  "min_inclusive": -2,
  "max_exclusive": 1000000,
  "when_in_range": {
    "type": "minecraft:add",
    "argument1": {
      "type": "minecraft:add",
      "argument1": {
        "type": "minecraft:square",
        "argument": {
          "type": "minecraft:abs",
          "argument": {
            "type": "minecraft:shifted_noise",
            "noise": "terralith:math/spikes/noise",
            "shift_x": {
              "type": "minecraft:mul",
              "argument1": 110,
              "argument2": "terralith:overworld/spikes/spike_x"
            },
            "shift_y": 8,
            "shift_z": {
              "type": "minecraft:mul",
              "argument1": 110,
              "argument2": "terralith:overworld/spikes/spike_z"
            },
            "xz_scale": 1.0,
            "y_scale": 0.0
          }
        }
      },
      "argument2": {
        "type": "minecraft:add",
        "argument1": {
          "type": "minecraft:y_clamped_gradient",
          "from_value": -0.2675,
          "from_y": 0,
          "to_value": -3.0,
          "to_y": 320
        },
        "argument2": "terralith:overworld/spikes/base_height"
      }
    },
    "argument2": "terralith:overworld/spike/size_spline"
  },
  "when_out_of_range": -64
}