{
  "type": "minecraft:range_choice",
  "input": "minecraft:y",
  "max_exclusive": 50.0,
  "min_inclusive": 0.0,
  "when_in_range": {
    "type": "minecraft:range_choice",
    "input": "minecraft:overworld/ore_vein/mask",
    "max_exclusive": 1000000.0,
    "min_inclusive": 0.0,
    "when_in_range": {
      "type": "minecraft:range_choice",
      "input": {
        "type": "minecraft:add",
        "left": {
          "type": "minecraft:sub",
          "left": "minecraft:overworld/ore_vein/toggle",
          "right": 0.4000000059604645
        },
        "right": {
          "type": "minecraft:add",
          "left": -0.2,
          "right": {
            "type": "minecraft:mul",
            "left": 0.01,
            "right": {
              "type": "minecraft:clamp",
              "input": {
                "type": "minecraft:cache_once",
                "input": {
                  "type": "minecraft:min",
                  "left": {
                    "type": "minecraft:sub",
                    "left": 50.0,
                    "right": "minecraft:y"
                  },
                  "right": {
                    "type": "minecraft:sub",
                    "left": "minecraft:y",
                    "right": 0.0
                  }
                }
              },
              "max": 20.0,
              "min": 0.0
            }
          }
        }
      },
      "max_exclusive": 1000000.0,
      "min_inclusive": 0.0,
      "when_in_range": 0.699999988079071,
      "when_out_of_range": -1.0
    },
    "when_out_of_range": -1.0
  },
  "when_out_of_range": -1.0
}