{
    "type": "minecraft:find_top_surface",
    "cell_height": 8,
    "density": {
        "type": "minecraft:add",
        "left": -0.390625,
        "right": {
            "type": "minecraft:add",
            "left": 0.1171875,
            "right": {
                "type": "minecraft:mul",
                "left": {
                    "type": "minecraft:y_clamped_gradient",
                    "from_value": 0.0,
                    "from_y": -688,
                    "to_value": 1.0,
                    "to_y": -40
                },
                "right": {
                    "type": "minecraft:add",
                    "left": -0.1171875,
                    "right": {
                        "type": "minecraft:add",
                        "left": -0.078125,
                        "right": {
                            "type": "minecraft:mul",
                            "left": {
                                "type": "minecraft:y_clamped_gradient",
                                "from_value": 1.0,
                                "from_y": 1920,
                                "to_value": 0.0,
                                "to_y": 2032
                            },
                            "right": {
                                "type": "minecraft:add",
                                "left": 0.078125,
                                "right": {
                                    "type": "minecraft:clamp",
                                    "input": {
                                        "type": "minecraft:add",
                                        "left": -0.703125,
                                        "right": {
                                            "type": "minecraft:mul",
                                            "left": 4.0,
                                            "right": {
                                                "type": "minecraft:quarter_negative",
                                                "input": {
                                                    "type": "minecraft:mul",
                                                    "left": {
                                                        "type": "minecraft:interpolated",
                                                        "input": {
                                                            "type": "minecraft:add",
                                                            "left": {
                                                                "type": "minecraft:y_clamped_gradient",
                                                                "from_value": 1.5,
                                                                "from_y": -576,
                                                                "to_value": -2.575,
                                                                "to_y": 2032
                                                            },
                                                            "right": "minecraft:overworld/offset"
                                                        }
                                                    },
                                                    "right": {
                                                        "type": "minecraft:cache_2d",
                                                        "input": "minecraft:overworld/factor"
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "max": 64.0,
                                    "min": -688.0
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "lower_bound": -688,
    "upper_bound": {
        "type": "minecraft:clamp",
        "input": {
            "type": "minecraft:add",
            "left": 128.0,
            "right": {
                "type": "minecraft:mul",
                "left": -128.0,
                "right": {
                    "type": "minecraft:add",
                    "left": {
                        "type": "minecraft:mul",
                        "left": 0.2734375,
                        "right": {
                            "type": "minecraft:invert",
                            "input": {
                                "type": "minecraft:cache_2d",
                                "input": "minecraft:overworld/factor"
                            }
                        }
                    },
                    "right": {
                        "type": "minecraft:mul",
                        "left": -1.0,
                        "right": {
                            "type": "minecraft:cache_2d",
                            "input": "minecraft:overworld/offset"
                        }
                    }
                }
            }
        },
        "max": 2032.0,
        "min": -688.0
    }
}