{
  "aquifers_enabled": false,
  "default_block": {
    "Name": "minecraft:stone"
  },
  "default_fluid": {
    "Name": "minecraft:water",
    "Properties": {
      "level": "0"
    }
  },
  "disable_mob_generation": false,
  "legacy_random_source": false,
  "noise": {
    "height": 256,
    "min_y": -32,
    "size_horizontal": 2,
    "size_vertical": 1
  },
  "noise_router": {
    "barrier": 0.0,
    "continents": 0.0,
    "depth": 0.0,
    "erosion": 0.0,
    "final_density": 0.0,
    "fluid_level_floodedness": 0.0,
    "fluid_level_spread": 0.0,
    "initial_density_without_jaggedness": 0.0,
    "lava": 0.0,
    "ridges": 0.0,
    "temperature": 0.0,
    "vegetation": 0.0,
    "vein_gap": 0.0,
    "vein_ridged": 0.0,
    "vein_toggle": 0.0
  },
  "ore_veins_enabled": false,
  "sea_level": 0,
  "spawn_target": [],
  "surface_rule": {
    "type": "minecraft:sequence",
    "sequence": [
      {
        "type": "minecraft:condition",
        "if_true": {
          "type": "minecraft:vertical_gradient",
          "false_at_and_above": {
            "above_bottom": 5
          },
          "random_name": "minecraft:bedrock_floor",
          "true_at_and_below": {
            "above_bottom": 0
          }
        },
        "then_run": {
          "type": "minecraft:block",
          "result_state": {
            "Name": "minecraft:bedrock"
          }
        }
      },
      {
        "type": "minecraft:sequence",
        "sequence": [
          {
            "type": "minecraft:condition",
            "if_true": {
              "type": "minecraft:biome",
              "biome_is": [
                "twilightforest:highlands"
              ]
            },
            "then_run": {
              "type": "minecraft:condition",
              "if_true": {
                "type": "minecraft:stone_depth",
                "add_surface_depth": false,
                "offset": 0,
                "secondary_depth_range": 0,
                "surface_type": "floor"
              },
              "then_run": {
                "type": "minecraft:sequence",
                "sequence": [
                  {
                    "type": "minecraft:block",
                    "result_state": {
                      "Name": "minecraft:podzol",
                      "Properties": {
                        "snowy": "false"
                      }
                    }
                  },
                  {
                    "type": "minecraft:condition",
                    "if_true": {
                      "type": "minecraft:noise_threshold",
                      "max_threshold": 1.7976931348623157E308,
                      "min_threshold": 0.21212121212121213,
                      "noise": "minecraft:surface"
                    },
                    "then_run": {
                      "type": "minecraft:block",
                      "result_state": {
                        "Name": "minecraft:coarse_dirt"
                      }
                    }
                  },
                  {
                    "type": "minecraft:condition",
                    "if_true": {
                      "type": "minecraft:noise_threshold",
                      "max_threshold": 1.7976931348623157E308,
                      "min_threshold": -0.11515151515151514,
                      "noise": "minecraft:surface"
                    },
                    "then_run": {
                      "type": "minecraft:block",
                      "result_state": {
                        "Name": "minecraft:podzol",
                        "Properties": {
                          "snowy": "false"
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        ]
      },
      {
        "type": "minecraft:sequence",
        "sequence": [
          {
            "type": "minecraft:condition",
            "if_true": {
              "type": "minecraft:biome",
              "biome_is": [
                "twilightforest:thornlands",
                "twilightforest:final_plateau"
              ]
            },
            "then_run": {
              "type": "minecraft:sequence",
              "sequence": [
                {
                  "type": "minecraft:condition",
                  "if_true": {
                    "type": "minecraft:stone_depth",
                    "add_surface_depth": false,
                    "offset": 0,
                    "secondary_depth_range": 0,
                    "surface_type": "floor"
                  },
                  "then_run": {
                    "type": "minecraft:block",
                    "result_state": {
                      "Name": "twilightforest:weathered_deadrock"
                    }
                  }
                },
                {
                  "type": "minecraft:condition",
                  "if_true": {
                    "type": "minecraft:water",
                    "add_stone_depth": true,
                    "offset": -6,
                    "surface_depth_multiplier": -1
                  },
                  "then_run": {
                    "type": "minecraft:sequence",
                    "sequence": [
                      {
                        "type": "minecraft:condition",
                        "if_true": {
                          "type": "minecraft:stone_depth",
                          "add_surface_depth": true,
                          "offset": 0,
                          "secondary_depth_range": 0,
                          "surface_type": "floor"
                        },
                        "then_run": {
                          "type": "minecraft:block",
                          "result_state": {
                            "Name": "twilightforest:cracked_deadrock"
                          }
                        }
                      }
                    ]
                  }
                },
                {
                  "type": "minecraft:block",
                  "result_state": {
                    "Name": "twilightforest:deadrock"
                  }
                }
              ]
            }
          }
        ]
      },
      {
        "type": "minecraft:sequence",
        "sequence": [
          {
            "type": "minecraft:condition",
            "if_true": {
              "type": "minecraft:biome",
              "biome_is": [
                "twilightforest:snowy_forest"
              ]
            },
            "then_run": {
              "type": "minecraft:sequence",
              "sequence": [
                {
                  "type": "minecraft:condition",
                  "if_true": {
                    "type": "minecraft:stone_depth",
                    "add_surface_depth": false,
                    "offset": 0,
                    "secondary_depth_range": 0,
                    "surface_type": "floor"
                  },
                  "then_run": {
                    "type": "minecraft:block",
                    "result_state": {
                      "Name": "minecraft:snow_block"
                    }
                  }
                },
                {
                  "type": "minecraft:condition",
                  "if_true": {
                    "type": "minecraft:water",
                    "add_stone_depth": true,
                    "offset": -6,
                    "surface_depth_multiplier": -1
                  },
                  "then_run": {
                    "type": "minecraft:sequence",
                    "sequence": [
                      {
                        "type": "minecraft:condition",
                        "if_true": {
                          "type": "minecraft:stone_depth",
                          "add_surface_depth": true,
                          "offset": 0,
                          "secondary_depth_range": 0,
                          "surface_type": "floor"
                        },
                        "then_run": {
                          "type": "minecraft:block",
                          "result_state": {
                            "Name": "minecraft:snow_block"
                          }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          }
        ]
      },
      {
        "type": "minecraft:sequence",
        "sequence": [
          {
            "type": "minecraft:condition",
            "if_true": {
              "type": "minecraft:biome",
              "biome_is": [
                "twilightforest:glacier"
              ]
            },
            "then_run": {
              "type": "minecraft:sequence",
              "sequence": [
                {
                  "type": "minecraft:condition",
                  "if_true": {
                    "type": "minecraft:stone_depth",
                    "add_surface_depth": false,
                    "offset": 0,
                    "secondary_depth_range": 0,
                    "surface_type": "floor"
                  },
                  "then_run": {
                    "type": "minecraft:block",
                    "result_state": {
                      "Name": "minecraft:gravel"
                    }
                  }
                },
                {
                  "type": "minecraft:condition",
                  "if_true": {
                    "type": "minecraft:water",
                    "add_stone_depth": true,
                    "offset": -6,
                    "surface_depth_multiplier": -1
                  },
                  "then_run": {
                    "type": "minecraft:sequence",
                    "sequence": [
                      {
                        "type": "minecraft:condition",
                        "if_true": {
                          "type": "minecraft:stone_depth",
                          "add_surface_depth": true,
                          "offset": 0,
                          "secondary_depth_range": 0,
                          "surface_type": "floor"
                        },
                        "then_run": {
                          "type": "minecraft:block",
                          "result_state": {
                            "Name": "minecraft:gravel"
                          }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          }
        ]
      },
      {
        "type": "minecraft:sequence",
        "sequence": [
          {
            "type": "minecraft:condition",
            "if_true": {
              "type": "minecraft:stone_depth",
              "add_surface_depth": false,
              "offset": 0,
              "secondary_depth_range": 0,
              "surface_type": "floor"
            },
            "then_run": {
              "type": "minecraft:sequence",
              "sequence": [
                {
                  "type": "minecraft:condition",
                  "if_true": {
                    "type": "minecraft:biome",
                    "biome_is": [
                      "twilightforest:lake",
                      "twilightforest:stream"
                    ]
                  },
                  "then_run": {
                    "type": "minecraft:sequence",
                    "sequence": [
                      {
                        "type": "minecraft:condition",
                        "if_true": {
                          "type": "minecraft:stone_depth",
                          "add_surface_depth": false,
                          "offset": 0,
                          "secondary_depth_range": 0,
                          "surface_type": "ceiling"
                        },
                        "then_run": {
                          "type": "minecraft:block",
                          "result_state": {
                            "Name": "minecraft:sandstone"
                          }
                        }
                      },
                      {
                        "type": "minecraft:condition",
                        "if_true": {
                          "type": "minecraft:water",
                          "add_stone_depth": false,
                          "offset": -1,
                          "surface_depth_multiplier": 0
                        },
                        "then_run": {
                          "type": "minecraft:block",
                          "result_state": {
                            "Name": "minecraft:grass_block",
                            "Properties": {
                              "snowy": "false"
                            }
                          }
                        }
                      },
                      {
                        "type": "minecraft:block",
                        "result_state": {
                          "Name": "minecraft:sand"
                        }
                      }
                    ]
                  }
                },
                {
                  "type": "minecraft:condition",
                  "if_true": {
                    "type": "minecraft:biome",
                    "biome_is": [
                      "twilightforest:swamp",
                      "twilightforest:fire_swamp"
                    ]
                  },
                  "then_run": {
                    "type": "minecraft:sequence",
                    "sequence": [
                      {
                        "type": "minecraft:condition",
                        "if_true": {
                          "type": "minecraft:water",
                          "add_stone_depth": false,
                          "offset": -1,
                          "surface_depth_multiplier": 0
                        },
                        "then_run": {
                          "type": "minecraft:block",
                          "result_state": {
                            "Name": "minecraft:grass_block",
                            "Properties": {
                              "snowy": "false"
                            }
                          }
                        }
                      },
                      {
                        "type": "minecraft:block",
                        "result_state": {
                          "Name": "minecraft:dirt"
                        }
                      }
                    ]
                  }
                },
                {
                  "type": "minecraft:condition",
                  "if_true": {
                    "type": "minecraft:water",
                    "add_stone_depth": false,
                    "offset": -1,
                    "surface_depth_multiplier": 0
                  },
                  "then_run": {
                    "type": "minecraft:sequence",
                    "sequence": [
                      {
                        "type": "minecraft:condition",
                        "if_true": {
                          "type": "minecraft:y_above",
                          "add_stone_depth": true,
                          "anchor": {
                            "absolute": -4
                          },
                          "surface_depth_multiplier": 1
                        },
                        "then_run": {
                          "type": "minecraft:block",
                          "result_state": {
                            "Name": "minecraft:grass_block",
                            "Properties": {
                              "snowy": "false"
                            }
                          }
                        }
                      }
                    ]
                  }
                },
                {
                  "type": "minecraft:condition",
                  "if_true": {
                    "type": "minecraft:not",
                    "invert": {
                      "type": "minecraft:y_above",
                      "add_stone_depth": true,
                      "anchor": {
                        "absolute": -4
                      },
                      "surface_depth_multiplier": 1
                    }
                  },
                  "then_run": {
                    "type": "minecraft:sequence",
                    "sequence": [
                      {
                        "type": "minecraft:condition",
                        "if_true": {
                          "type": "minecraft:not",
                          "invert": {
                            "type": "minecraft:water",
                            "add_stone_depth": false,
                            "offset": -1,
                            "surface_depth_multiplier": 0
                          }
                        },
                        "then_run": {
                          "type": "minecraft:block",
                          "result_state": {
                            "Name": "minecraft:dirt"
                          }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          {
            "type": "minecraft:condition",
            "if_true": {
              "type": "minecraft:water",
              "add_stone_depth": true,
              "offset": -6,
              "surface_depth_multiplier": -1
            },
            "then_run": {
              "type": "minecraft:sequence",
              "sequence": [
                {
                  "type": "minecraft:condition",
                  "if_true": {
                    "type": "minecraft:y_above",
                    "add_stone_depth": true,
                    "anchor": {
                      "absolute": -4
                    },
                    "surface_depth_multiplier": 1
                  },
                  "then_run": {
                    "type": "minecraft:sequence",
                    "sequence": [
                      {
                        "type": "minecraft:condition",
                        "if_true": {
                          "type": "minecraft:stone_depth",
                          "add_surface_depth": true,
                          "offset": 0,
                          "secondary_depth_range": 0,
                          "surface_type": "floor"
                        },
                        "then_run": {
                          "type": "minecraft:block",
                          "result_state": {
                            "Name": "minecraft:dirt"
                          }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          }
        ]
      }
    ]
  }
}