ServerEvents.recipes(event => {

    event.custom({
        "type": "lychee:random_block_ticking",
        "hide_in_viewer": true,
        "contextual": [
            {
                "type": "or",
                "contextual": [
                    {
                        "type": "weather",
                        "weather": "rain"
                    },
                    {
                        "type": "weather",
                        "weather": "thunder"
                    }
                ]
            },
            {
                "type": "chance",
                "chance": 0.15
            }
        ],
        "post": [
            {
                "type": "random",
                "entries": [
                    {
                        "type": "execute",
                        "weight": 3,
                        "command": "setblock ~ ~ ~ minecraft:water_cauldron[level=1]"
                    },
                    {
                        "type": "execute",
                        "weight": 2,
                        "command": "setblock ~ ~ ~ minecraft:water_cauldron[level=2]"
                    },
                    {
                        "type": "execute",
                        "weight": 1,
                        "command": "setblock ~ ~ ~ minecraft:water_cauldron[level=3]"
                    }
                ]
            },
        ],
        "block_in": {
            "blocks": [
                "minecraft:cauldron"
            ]
        }
    })
        .id('lychee:cauldron/fill_water')
})