var vanilla_blocks = ["portal", "fire", "water", "lava", "mob_spawner"];
if (vanilla_enabled) {
    for each(block in vanilla_blocks){
        // Vanilla items and blocks have special handlers.
        NEI.hide("minecraft", block);
    }
}