onEvent('ie.multiblock.form', (event) => {

    let requiredGameStage = new Map([
        ['immersivepetroleum:multiblocks/pumpjack', 'pumpjack_blueprint'],
        ['immersiveengineering:multiblocks/excavator', 'excavator_blueprint'],
        ['immersiveengineering:multiblocks/bucket_wheel', 'excavator_blueprint'],
        ['immersiveengineering:multiblocks/excavator_full', 'excavator_blueprint'],
        ['immersiveengineering:multiblocks/mixer', 'mixer_blueprint'],
        ['immersiveengineering:multiblocks/sawmill', 'sawmill_blueprint'],
        ['immersiveengineering:multiblocks/metal_press', 'metal_press_blueprint'],
        ['immersiveengineering:multiblocks/diesel_generator', 'diesel_generator_blueprint'],
        ['immersiveengineering:multiblocks/refinery', 'refinery_blueprint'],
        ['immersiveengineering:multiblocks/fermenter', 'fermenter_blueprint'],
        ['immersiveengineering:multiblocks/squeezer', 'squeezer_blueprint'],
        ['immersiveengineering:multiblocks/auto_workbench', 'auto_workbench_blueprint'],
        ['immersiveengineering:multiblocks/arcfurnace', 'arc_furnace_blueprint'],
        ['immersiveengineering:multiblocks/assembler', 'assembler_blueprint'],
        ['immersiveengineering:multiblocks/crusher', 'crusher_blueprint'],
        ['immersiveengineering:multiblocks/lightning_rod', 'lightning_rod_blueprint'],
        ['immersiveengineering:multiblocks/bottling_machine', 'bottling_machine_blueprint'],
        ['immersivepetroleum:multiblocks/cokerunit', 'cokerunit_blueprint'],
        ['immersivepetroleum:multiblocks/distillationtower', 'distillationtower_blueprint'],
        ['immersivepetroleum:multiblocks/hydrotreater', 'hydrotreater_blueprint']
    ]);

    const name = `${event.getMultiblock()}`; 
    if (requiredGameStage.has(name)) {
        if (!event.getEntity().stages.has(requiredGameStage.get(name))) {
            event.cancel();
        }
    }

});
