ServerEvents.recipes(event => {
    event.custom({
        type: 'create:sequenced_assembly',
        ingredient: { item: 'createaddition:copper_spool' },
        loops: 8,
        results: [
            { chance: 1.0, item: 'create_optical:copper_coil' },
            { chance: 0.1, item: 'create:copper_sheet' }
        ],
        sequence: [
            {
                type: 'create:deploying',
                ingredients: [
                    { item: 'create_optical:incomplete_copper_coil' },
                    { item: 'create:copper_sheet' }
                ],
                results: [{ item: 'create_optical:incomplete_copper_coil' }]
            },
            {
                type: 'create:filling',
                ingredients: [
                    { item: 'create_optical:incomplete_copper_coil' },
                    { fluid: 'minecraft:lava', amount: 250 }
                ],
                results: [{ item: 'create_optical:incomplete_copper_coil' }]
            },
            {
                type: 'create:pressing',
                ingredients: [{ item: 'create_optical:incomplete_copper_coil' }],
                results: [{ item: 'create_optical:incomplete_copper_coil' }]
            }
        ],
        transitionalItem: { item: 'create_optical:incomplete_copper_coil' }
    });
    event.custom({
        type: 'create:sequenced_assembly',
        ingredient: { item: 'createaddition:gold_spool' },
        loops: 16,
        results: [
            { chance: 1.0, item: 'create_optical:golden_coil' },
            { chance: 0.1, item: 'create:golden_sheet' }
        ],
        sequence: [
            {
                type: 'create:deploying',
                ingredients: [
                    { item: 'create_optical:incomplete_golden_coil' },
                    { item: 'create:golden_sheet' }
                ],
                results: [{ item: 'create_optical:incomplete_golden_coil' }]
            },
            {
                type: 'create:filling',
                ingredients: [
                    { item: 'create_optical:incomplete_golden_coil' },
                    { fluid: 'minecraft:lava', amount: 250 }
                ],
                results: [{ item: 'create_optical:incomplete_golden_coil' }]
            },
            {
                type: 'create:pressing',
                ingredients: [{ item: 'create_optical:incomplete_golden_coil' }],
                results: [{ item: 'create_optical:incomplete_golden_coil' }]
            }
        ],
        transitionalItem: { item: 'create_optical:incomplete_golden_coil' }
    });
    event.custom({
        type: 'create:sequenced_assembly',
        ingredient: { item: 'createaddition:electrum_spool' },
        loops: 4,
        results: [
            { chance: 100.0, item: 'create_optical:rose_quartz_catalyst_coil' },
            { chance: 10.0, item: 'create:rose_quartz' }
        ],
        sequence: [
            {
                type: 'create:deploying',
                ingredients: [
                    { item: 'create_optical:incomplete_rose_quartz_catalyst_coil' },
                    { item: 'create:rose_quartz' }
                ],
                results: [
                    { item: 'create_optical:incomplete_rose_quartz_catalyst_coil' }
                ]
            },
            {
                type: 'create:filling',
                ingredients: [
                    { item: 'create_optical:incomplete_rose_quartz_catalyst_coil' },
                    { fluid: 'minecraft:lava', amount: 250 }
                ],
                results: [
                    { item: 'create_optical:incomplete_rose_quartz_catalyst_coil' }
                ]
            },
            {
                type: 'create:pressing',
                ingredients: [
                    { item: 'create_optical:incomplete_rose_quartz_catalyst_coil' }
                ],
                results: [
                    { item: 'create_optical:incomplete_rose_quartz_catalyst_coil' }
                ]
            },
            {
                type: 'create_optical:focusing',
                ingredients: [
                    { item: 'create_optical:incomplete_rose_quartz_catalyst_coil' }
                ],
                results: [
                    { item: 'create_optical:rose_quartz_catalyst_coil' }
                ]
            }
        ],
        transitionalItem: { item: 'create_optical:incomplete_rose_quartz_catalyst_coil' }
    });
    event.custom({
        type: 'create:sequenced_assembly',
        ingredient: { item: 'tfmg:rgb_light_bulb' },
        loops: 5,
        results: [
            { chance: 100.0, item: 'create_optical:optical_device' }
        ],
        sequence: [
            {
                type: 'create:deploying',
                ingredients: [
                    { item: 'create_optical:incomplete_optical_device' },
                    { item: 'create:iron_sheet' }
                ],
                results: [
                    { item: 'create_optical:incomplete_optical_device' }
                ]
            },
            {
                type: 'create:deploying',
                ingredients: [
                    { item: 'create_optical:incomplete_optical_device' },
                    { item: 'minecraft:glass' }
                ],
                results: [
                    { item: 'create_optical:incomplete_optical_device' }
                ]
            },
            {
                type: 'create:filling',
                ingredients: [
                    { item: 'create_optical:incomplete_optical_device' },
                    { fluid: 'minecraft:water', amount: 500 }
                ],
                results: [
                    { item: 'create_optical:incomplete_optical_device' }
                ]
            },
            {
                type: 'create:pressing',
                ingredients: [
                    { item: 'create_optical:incomplete_optical_device' }
                ],
                results: [
                    { item: 'create_optical:incomplete_optical_device' }
                ]
            }
        ],
        transitionalItem: { item: 'create_optical:incomplete_optical_device' }
    });
});
