{
    "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": -256,
                    "to_value": 1.0,
                    "to_y": 63
                },
                "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": 704,
                                "to_value": 0.0,
                                "to_y": 832
                            },
                            "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:interpolated",
                                                        "argument": {
                                                            "type": "minecraft:add",
                                                            "argument1": {
                                                                "type": "minecraft:y_clamped_gradient",
                                                                "from_value": 1.5,
                                                                "from_y": -256,
                                                                "to_value": -1.5,
                                                                "to_y": 832
                                                            },
                                                            "argument2": {
                                                                "type": "minecraft:mul",
                                                                "argument1": 1.25,
                                                                "argument2": "minecraft:overworld_lite/offset"
                                                            }
                                                        }
                                                    },
                                                    "argument2": {
                                                        "type": "minecraft:cache_2d",
                                                        "argument": "minecraft:overworld_lite/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_lite/factor"
                            }
                        }
                    },
                    "argument2": {
                        "type": "minecraft:mul",
                        "argument1": -1.0,
                        "argument2": {
                            "type": "minecraft:cache_2d",
                            "argument": "minecraft:overworld_lite/offset"
                        }
                    }
                }
            }
        },
        "max": 832.0,
        "min": -128.0
    }
}