//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',
    'ruby',
    'sapphire',
    'cast_iron',
    // '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',
    'desh'
];

// 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',
    'cast_iron',
    'desh'
];

// 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 = {
    lapis: { temp: 829 },
    fluorite: { temp: 2367 },
    coal: { temp: 247 },
    certus_quartz: { temp: 2657 }, //actually comes from data/bettercompat/recipes/
    ruby: { temp: 1000 },
    sapphire: { temp: 1000 },
    cast_iron: { temp: 1782 },
};

// 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
        }
    },
};