{
  "default_block": {
    "Name": "minecraft:stone"
  },
  "default_fluid": {
    "Name": "minecraft:water"
  },
  "sea_level": 63,
  "disable_mob_generation": false,
  "aquifers_enabled": false,
  "ore_veins_enabled": false,
  "legacy_random_source": false,
  "noise": {
    "min_y": -64,
    "height": 384,
    "size_horizontal": 1,
    "size_vertical": 2
  },
    "noise_router": {
    "barrier": {
      "type": "minecraft:noise",
      "noise": "minecraft:aquifer_barrier",
      "xz_scale": 1.0,
      "y_scale": 0.5
    },
    "continents": "minecraft:overworld/continents",
    "depth": "minecraft:overworld/depth",
    "erosion": "minecraft:overworld/erosion",
    "final_density": {
      "type": "minecraft:min",
      "argument1": {
        "type": "minecraft:squeeze",
        "argument": {
          "type": "minecraft:mul",
          "argument1": 0.64,
          "argument2": {
            "type": "minecraft:interpolated",
            "argument": {
              "type": "minecraft:blend_density",
              "argument": {
                "type": "minecraft:add",
                "argument1": 0.1171875,
                "argument2": {
                  "type": "minecraft:mul",
                  "argument1": {
                    "type": "minecraft:y_clamped_gradient",
                    "from_value": 0.0,
                    "from_y": -64,
                    "to_value": 1.0,
                    "to_y": -40
                  },
                  "argument2": {
                    "type": "minecraft:add",
                    "argument1": -0.1171875,
                    "argument2": {
                      "type": "minecraft:add",
                      "argument1": -0.078125,
                      "argument2": {
                        "type": "minecraft:mul",
                        "argument1": {
                          "type": "minecraft:y_clamped_gradient",
                          "from_value": 1.0,
                          "from_y": 240,
                          "to_value": 0.0,
                          "to_y": 256
                        },
                        "argument2": {
                          "type": "minecraft:add",
                          "argument1": 0.078125,
                          "argument2": {
                            "type": "minecraft:range_choice",
                            "input": "minecraft:overworld/sloped_cheese",
                            "max_exclusive": 1.5625,
                            "min_inclusive": -1000000.0,
                            "when_in_range": {
                              "type": "minecraft:min",
                              "argument1": "minecraft:overworld/sloped_cheese",
                              "argument2": {
                                "type": "minecraft:mul",
                                "argument1": 5.0,
                                "argument2": "minecraft:overworld/caves/entrances"
                              }
                            },
                            "when_out_of_range": {
                              "type": "minecraft:max",
                              "argument1": {
                                "type": "minecraft:min",
                                "argument1": {
                                  "type": "minecraft:min",
                                  "argument1": {
                                    "type": "minecraft:add",
                                    "argument1": {
                                      "type": "minecraft:mul",
                                      "argument1": 4.0,
                                      "argument2": {
                                        "type": "minecraft:square",
                                        "argument": {
                                          "type": "minecraft:noise",
                                          "noise": "minecraft:cave_layer",
                                          "xz_scale": 1.0,
                                          "y_scale": 8.0
                                        }
                                      }
                                    },
                                    "argument2": {
                                      "type": "minecraft:add",
                                      "argument1": {
                                        "type": "minecraft:clamp",
                                        "input": {
                                          "type": "minecraft:add",
                                          "argument1": 0.27,
                                          "argument2": {
                                            "type": "minecraft:noise",
                                            "noise": "minecraft:cave_cheese",
                                            "xz_scale": 1.0,
                                            "y_scale": 0.6666666666666666
                                          }
                                        },
                                        "max": 1.0,
                                        "min": -1.0
                                      },
                                      "argument2": {
                                        "type": "minecraft:clamp",
                                        "input": {
                                          "type": "minecraft:add",
                                          "argument1": 1.5,
                                          "argument2": {
                                            "type": "minecraft:mul",
                                            "argument1": -0.64,
                                            "argument2": "minecraft:overworld/sloped_cheese"
                                          }
                                        },
                                        "max": 0.5,
                                        "min": 0.0
                                      }
                                    }
                                  },
                                  "argument2": "minecraft:overworld/caves/entrances"
                                },
                                "argument2": {
                                  "type": "minecraft:add",
                                  "argument1": "minecraft:overworld/caves/spaghetti_2d",
                                  "argument2": "minecraft:overworld/caves/spaghetti_roughness_function"
                                }
                              },
                              "argument2": {
                                "type": "minecraft:range_choice",
                                "input": "minecraft:overworld/caves/pillars",
                                "max_exclusive": 0.03,
                                "min_inclusive": -1000000.0,
                                "when_in_range": -1000000.0,
                                "when_out_of_range": "minecraft:overworld/caves/pillars"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "argument2": "minecraft:overworld/caves/noodle"
    },
    "fluid_level_floodedness": {
      "type": "minecraft:noise",
      "noise": "minecraft:aquifer_fluid_level_floodedness",
      "xz_scale": 1.0,
      "y_scale": 0.67
    },
    "fluid_level_spread": {
      "type": "minecraft:noise",
      "noise": "minecraft:aquifer_fluid_level_spread",
      "xz_scale": 1.0,
      "y_scale": 0.7142857142857143
    },
    "lava": {
      "type": "minecraft:noise",
      "noise": "minecraft:aquifer_lava",
      "xz_scale": 1.0,
      "y_scale": 1.0
    },
    "preliminary_surface_level": {
      "type": "minecraft:find_top_surface",
      "cell_height": 8,
      "density": {
        "type": "minecraft:add",
        "argument1": -0.390625,
        "argument2": {
          "type": "minecraft:add",
          "argument1": 0.1171875,
          "argument2": {
            "type": "minecraft:mul",
            "argument1": {
              "type": "minecraft:y_clamped_gradient",
              "from_value": 0.0,
              "from_y": -64,
              "to_value": 1.0,
              "to_y": -40
            },
            "argument2": {
              "type": "minecraft:add",
              "argument1": -0.1171875,
              "argument2": {
                "type": "minecraft:add",
                "argument1": -0.078125,
                "argument2": {
                  "type": "minecraft:mul",
                  "argument1": {
                    "type": "minecraft:y_clamped_gradient",
                    "from_value": 1.0,
                    "from_y": 240,
                    "to_value": 0.0,
                    "to_y": 256
                  },
                  "argument2": {
                    "type": "minecraft:add",
                    "argument1": 0.078125,
                    "argument2": {
                      "type": "minecraft:clamp",
                      "input": {
                        "type": "minecraft:add",
                        "argument1": -0.703125,
                        "argument2": {
                          "type": "minecraft:mul",
                          "argument1": 4.0,
                          "argument2": {
                            "type": "minecraft:quarter_negative",
                            "argument": {
                              "type": "minecraft:mul",
                              "argument1": {
                                "type": "minecraft:add",
                                "argument1": {
                                  "type": "minecraft:y_clamped_gradient",
                                  "from_value": 1.5,
                                  "from_y": -64,
                                  "to_value": -1.5,
                                  "to_y": 320
                                },
                                "argument2": {
                                  "type": "minecraft:cache_2d",
                                  "argument": "minecraft:overworld/offset"
                                }
                              },
                              "argument2": {
                                "type": "minecraft:cache_2d",
                                "argument": "minecraft:overworld/factor"
                              }
                            }
                          }
                        }
                      },
                      "max": 64.0,
                      "min": -64.0
                    }
                  }
                }
              }
            }
          }
        }
      },
      "lower_bound": -64,
      "upper_bound": {
        "type": "minecraft:clamp",
        "input": {
          "type": "minecraft:add",
          "argument1": 128.0,
          "argument2": {
            "type": "minecraft:mul",
            "argument1": -128.0,
            "argument2": {
              "type": "minecraft:add",
              "argument1": {
                "type": "minecraft:mul",
                "argument1": 0.2734375,
                "argument2": {
                  "type": "minecraft:invert",
                  "argument": {
                    "type": "minecraft:cache_2d",
                    "argument": "minecraft:overworld/factor"
                  }
                }
              },
              "argument2": {
                "type": "minecraft:mul",
                "argument1": -1.0,
                "argument2": {
                  "type": "minecraft:cache_2d",
                  "argument": "minecraft:overworld/offset"
                }
              }
            }
          }
        },
        "max": 320.0,
        "min": -40.0
      }
    },
    "ridges": "minecraft:overworld/ridges",
    "temperature": {
      "type": "minecraft:shifted_noise",
      "noise": "minecraft:temperature",
      "shift_x": "minecraft:shift_x",
      "shift_y": 0.0,
      "shift_z": "minecraft:shift_z",
      "xz_scale": 0.25,
      "y_scale": 0.0
    },
    "vegetation": {
      "type": "minecraft:shifted_noise",
      "noise": "minecraft:vegetation",
      "shift_x": "minecraft:shift_x",
      "shift_y": 0.0,
      "shift_z": "minecraft:shift_z",
      "xz_scale": 0.25,
      "y_scale": 0.0
    },
    "vein_gap": {
      "type": "minecraft:noise",
      "noise": "minecraft:ore_gap",
      "xz_scale": 1.0,
      "y_scale": 1.0
    },
    "vein_ridged": {
      "type": "minecraft:add",
      "argument1": -0.07999999821186066,
      "argument2": {
        "type": "minecraft:max",
        "argument1": {
          "type": "minecraft:abs",
          "argument": {
            "type": "minecraft:interpolated",
            "argument": {
              "type": "minecraft:range_choice",
              "input": "minecraft:y",
              "max_exclusive": 51.0,
              "min_inclusive": -60.0,
              "when_in_range": {
                "type": "minecraft:noise",
                "noise": "minecraft:ore_vein_a",
                "xz_scale": 4.0,
                "y_scale": 4.0
              },
              "when_out_of_range": 0.0
            }
          }
        },
        "argument2": {
          "type": "minecraft:abs",
          "argument": {
            "type": "minecraft:interpolated",
            "argument": {
              "type": "minecraft:range_choice",
              "input": "minecraft:y",
              "max_exclusive": 51.0,
              "min_inclusive": -60.0,
              "when_in_range": {
                "type": "minecraft:noise",
                "noise": "minecraft:ore_vein_b",
                "xz_scale": 4.0,
                "y_scale": 4.0
              },
              "when_out_of_range": 0.0
            }
          }
        }
      }
    },
    "vein_toggle": {
      "type": "minecraft:interpolated",
      "argument": {
        "type": "minecraft:range_choice",
        "input": "minecraft:y",
        "max_exclusive": 51.0,
        "min_inclusive": -60.0,
        "when_in_range": {
          "type": "minecraft:noise",
          "noise": "minecraft:ore_veininess",
          "xz_scale": 1.5,
          "y_scale": 1.5
        },
        "when_out_of_range": 0.0
      }
    }
  },
  "spawn_target": [],
  "surface_rule": {
    "type": "minecraft:sequence",
    "sequence": [
      {
        "type": "minecraft:condition",
        "if_true": {
          "type": "minecraft:biome",
          "biome_is": [
            "hvel:niflheim_wasteland"
          ]
        },
        "then_run": {
          "type": "minecraft:sequence",
          "sequence": [
            {
              "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:sequence",
                "sequence": [
                  {
                    "type": "minecraft:condition",
                    "if_true": {
                      "type": "minecraft:noise_threshold",
                      "noise": "minecraft:surface",
                      "min_threshold": -0.1,
                      "max_threshold": 0.2
                    },
                    "then_run": {
                      "type": "minecraft:block",
                      "result_state": {
                        "Name": "hvel:cobbled_dirt"
                      }
                    }
                  },
                  {
                    "type": "minecraft:condition",
                    "if_true": {
                      "type": "minecraft:noise_threshold",
                      "noise": "minecraft:surface",
                      "min_threshold": 0.2,
                      "max_threshold": 0.5
                    },
                    "then_run": {
                      "type": "minecraft:block",
                      "result_state": {
                        "Name": "minecraft:coarse_dirt"
                      }
                    }
                  },
                  {
                    "type": "minecraft:block",
                    "result_state": {
                      "Name": "hvel:timeless_dirt"
                    }
                  }
                ]
              }
            },
            {
              "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": "hvel:cobbled_dirt"
                }
              }
            }
          ]
        }
      },
      {
        "type": "minecraft:condition",
        "if_true": {
          "type": "minecraft:biome",
          "biome_is": [
            "hvel:permafrost"
          ]
        },
        "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:sequence",
            "sequence": [
              {
                "type": "minecraft:condition",
                "if_true": {
                  "type": "minecraft:noise_threshold",
                  "noise": "minecraft:surface",
                  "min_threshold": 0.45,
                  "max_threshold": 2.0
                },
                "then_run": {
                  "type": "minecraft:block",
                  "result_state": { "Name": "minecraft:packed_ice" }
                }
              },
              {
                "type": "minecraft:condition",
                "if_true": {
                  "type": "minecraft:noise_threshold",
                  "noise": "minecraft:surface",
                  "min_threshold": -0.1,
                  "max_threshold": 2.0
                },
                "then_run": {
                  "type": "minecraft:block",
                  "result_state": { "Name": "minecraft:snow_block" }
                }
              },
              {
                "type": "minecraft:block",
                "result_state": { "Name": "minecraft:blue_ice" } 
              }
            ]
          }
        }
      },
      {
        "type": "minecraft:condition",
        "if_true": {
          "type": "minecraft:biome",
          "biome_is": [
            "hvel:magnus_forest",
            "hvel:niflheim_plains"
          ]
        },
        "then_run": {
          "type": "minecraft:sequence",
          "sequence": [
            {
              "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": "hvel:niflheim_grass_block"
                }
              }
            },
            {
              "type": "minecraft:condition",
              "if_true": {
                "type": "minecraft:stone_depth",
                "offset": 1,
                "surface_type": "floor",
                "add_surface_depth": true,
                "secondary_depth_range": 0
              },
              "then_run": {
                "type": "minecraft:block",
                "result_state": {
                  "Name": "hvel:niflheim_soil"
                }
              }
            }
          ]
        }
      }
    ]
  }
}