//priority: 1010

// Used to determine which materials to unify
const materialsToUnify = [
    'iron',
    'gold',
    'copper',
    'silver',
    'zinc',
    'brass',
    'lead',
    'tin',
    'nickel',
    'aluminum',
    'uranium',
    'bronze',
    'electrum',
    'constantan',
    'steel',
    'osmium',
    'diamond',
    'lapis',
    'emerald',
    'quartz',
    'obsidian',
    // 'fluix',
    // 'fluorite',
    'invar',
    // 'signalum',
    // 'lumium',
    'enderium',
    // 'sulfur',
    // 'cinnabar',
    // 'potassium_nitrate',
    // 'apatite',
    'redstone',
    // 'glowstone',
    'certus_quartz',
    // 'dimensional',
    'cobalt',
    'queens_slime',
    'rose_gold',
    'tinkers_bronze',
    // 'knightslime',
    'slimesteel',
    'manyullyn',
    'hepatizon',
    // 'thallasium',
    // 'bitumen',
    'coal',
    // 'terminite',
    // 'aeternium',
    // 'coal_coke'
];

// Used to determine which material types to unify
const typesToUnify = ['nugget', 'ingot', 'gem', 'storage_block', 'ore', 'dust', 'gear', 'plate', 'rod', 'wire'];

// Used for creating tags on custom ore processing materials
const metals = [
    'aluminum',
    'cobalt',
    'copper',
    'gold',
    'iron',
    'lead',
    'nickel',
    'osmium',
    'silver',
    'tin',
    'uranium',
    'zinc'
];

// Used for custom 8x, 16x, 32x ore processing
const metalsProcessing = [
    'aluminum',
    'cobalt',
    'copper',
    'gold',
    'iron',
    'lead',
    'nickel',
    'osmium',
    'silver',
    'tin',
    'uranium',
    'zinc'
];


// Defines melting point of various materials
const meltingPoints = {
    // signalum: { temp: 9999 },
    // lumium: { temp: 9999 },
    enderium: { temp: 9999 },
    // sulfur: { temp: 9999 },
    // redstone: { temp: 1939 },
    lapis: { temp: 829 },
    // fluorite: { temp: 9999 },
    // dimensional: { temp: 9999 },
    coal: { temp: 247 },
    certus_quartz: { temp: 1657 },
    tin: { temp: 9999 },
    lead: { temp: 9999 },
    aluminum: { temp: 9999 },
    silver: { temp: 9999 },
    bronze: { temp: 9999 },
    //gold: { temp: 9999 },
    //copper: { temp: 9999 },
    //iron: { temp: 9999 },
    //nickel: { temp: 9999 },
    //cobalt: { temp: 9999 },
    steel: { temp: 9999 },
    //platinum: { temp: 9999 },
    // tungsten: { temp: 9999 },
    //netherite_scrap: { temp: 9999 }
};

// Defines the secondary metal each metal type will produce.
// const oreProcessingSecondaries = {
//     iron: {
//         secondary: 'nickel',
//         createProcessingTime: 400
//     },
//     nickel: {
//         secondary: 'iron',
//         createProcessingTime: 350
//     },
//     gold: {
//         secondary: 'zinc',
//         createProcessingTime: 300
//     },
//     copper: {
//         secondary: 'gold',
//         createProcessingTime: 350
//     },
//     aluminum: {
//         secondary: 'iron',
//         createProcessingTime: 300
//     },
//     lead: {
//         secondary: 'silver',
//         createProcessingTime: 300
//     },
//     silver: {
//         secondary: 'lead',
//         createProcessingTime: 300
//     },
//     uranium: {
//         secondary: 'lead',
//         createProcessingTime: 400
//     },
//     osmium: {
//         secondary: 'tin',
//         createProcessingTime: 400
//     },
//     tin: {
//         secondary: 'osmium',
//         createProcessingTime: 350
//     },
//     zinc: {
//         secondary: 'gold',
//         createProcessingTime: 350
//     },
//     cobalt: {
//         secondary: 'iron',
//         createProcessingTime: 400
//     },
//     thallasium: {
//         secondary: 'thallasium',
//         createProcessingTime: 300
//     }
// };

// Used to drive Unify_Materials outputs for gem processing.
const gemProcessingProperties = {
    redstone: {
        output: 'dust',
        mekanism: {
            count: 6
        }
    },
    coal: {
        output: 'gem',
        mekanism: {
            count: 2
        }
    },
    diamond: {
        output: 'gem',
        mekanism: {
            count: 2
        }
    },
    emerald: {
        output: 'gem',
        mekanism: {
            count: 2
        }
    },
    lapis: {
        output: 'gem',
        mekanism: {
            count: 9
        }
    },
    quartz: {
        output: 'gem',
        mekanism: {
            count: 3
        }
    },
    fluorite: {
        output: 'gem',
        mekanism: {
            count: 6
        }
    },
};