ServerEvents.recipes(event => {

    //spruce
    event.custom({
        "type": "lychee:random_block_ticking",
        "hide_in_viewer": true,
        "contextual": [
            {
                "type": "location",
                "predicate": {
                    "dimension": "drp:spruce",
                    "light": {
                        "light": {
                            "min": 7,
                            "max": 15
                        }
                    }
                }
            },
            {
                "type": "chance",
                "chance": 0.0065
            }
        ],
        "post": [
            {
                "type": "place",
                "block": {
                    "blocks": [
                        "minecraft:air"
                    ]
                }
            },
            {
                "type": "random",
                "entries": [
                    {
                        "type": "execute",
                        "weight": 4,
                        "command": "place feature minecraft:spruce ~ ~ ~",
                        "hide": true
                    },
                    {
                        "type": "execute",
                        "weight": 3,
                        "command": "place feature minecraft:spruce ~ ~ ~",
                        "hide": true
                    },
                    {
                        "type": "execute",
                        "weight": 2,
                        "command": "place feature minecraft:spruce ~ ~ ~",
                        "hide": true
                    },
                    {
                        "type": "execute",
                        "weight": 1,
                        "command": "place feature minecraft:mega_spruce ~ ~ ~",
                        "hide": true
                    }
                ]
            }
        ],
        "block_in": {
            "blocks": [
                "minecraft:spruce_sapling"
            ]
        }
    })
        .id('lychee:overworld/spruce_growing')

})