const banIEMultiblocks = (event) => {
    let mbWhitelist = {
        "immersiveengineering" : [
            "feedthrough",
            "multiblocks/fermenter",
            "multiblocks/mixer",
            "multiblocks/squeezer",
            "multiblocks/crusher",
            "multiblocks/silo",
            "multiblocks/sheetmetal_tank",
            "multiblocks/refinery",
        ],
        "advancedtfctech" : [
            "multiblocks/grist_mill",
            "multiblocks/thresher",
            "multiblocks/beamhouse",
            "multiblocks/power_loom"

        ],
        "immersivegeology" : [
            "multiblocks/alternator",
            "multiblocks/ballmill",
            "multiblocks/centrifuge",
            "multiblocks/chemical_reactor",
            "multiblocks/coredrill",
            "multiblocks/crystallizer",
            // "multiblocks/geothermal_exchanger",
            "multiblocks/gravity_separator",
            "multiblocks/pelletizer",
            "multiblocks/reverberation_furnace",
            "multiblocks/rotary_kiln",
            "multiblocks/small_chemical_reactor",
            "multiblocks/steam_turbine"
        ]
    }
    
    let namespace = event.getMultiblock().getUniqueName().namespace;
    let multiblock = event.getMultiblock().getUniqueName().path;

    if (mbWhitelist[namespace] != null && (
        mbWhitelist[namespace].includes(multiblock) || 
        mbWhitelist[namespace].length == 0)
    ) {}
    else {
        event.setCanceled(true)
        console.error("Multiblock not allowed! " + event.getMultiblock().getUniqueName())
        event.getEntity().setStatusMessage(Text.red("Multiblock not allowed!"))
    }
        
}
