// priority: 2

onEvent('item.tooltip', (event) => {

    /*colors
    §1 - dark blue
    §2 - dark green
    §3 - dark aqua
    §4 - dark red
    §5 - purple
    §6 - orange
    §8 - dark gray
    §9 - blue
    §0 - black
    §a - light green
    §b - light aqua
    §c - light red
    §d - pink
    §e - light yellow
    §f - white*/

    const recipes = [
        {
            items: [
                /minecraft:iron_.+/,
                /emendatusenigmatica:iron.+/,
                "appliedenergistics2:iron_dust",
            ],
            temp: '1538'
        },
        {
            items: [
                /minecraft:gold_.+/,
                /minecraft:golden_.+/,
                /emendatusenigmatica:gold.+/,
                "appliedenergistics2:gold_dust",
            ],
            temp: '1064'
        },
        {
            items: [
                /emendatusenigmatica:copper.+/,
                "tconstruct:seared_drain",,
                "tconstruct:seared_chute",
                "tconstruct:smeltery_controller",
            ],
            temp: '723'
        },
        {
            items: [
                /emendatusenigmatica:zinc.+/
            ],
            temp: '419,5'
        },
        {
            items: [
                /emendatusenigmatica:cobalt.+/,
                "tconstruct:seared_duct",
                "tconstruct:scorched_duct",
            ],
            temp: '1495'
        },
        {
            items: [
                /emendatusenigmatica:nickel.+/
            ],
            temp: '1455'
        },
        {
            items: [
                /emendatusenigmatica:silver.+/
            ],
            temp: '961,8'
        },
        {
            items: [
                /emendatusenigmatica:aluminum.+/
            ],
            temp: '425'
        },
        {
            items: [
                'exnihilosequentia:ingot_platinum',
                'exnihilosequentia:chunk_platinum'
            ],
            temp: '1768'
        },
        {
            items: [
                /emendatusenigmatica:constantan.+/
            ],
            temp: '1210'
        },
        {
            items: [
                'minecraft:ancient_debris',
                'minecraft:netherite_scrap',
                'tconstruct:debris_nugget',
            ],
            temp: '1175'
        },
        {
            items: [
                /minecraft:diamond.+/,
                'minecraft:diamond',
                /emendatusenigmatica:diamond.+/
            ],
            temp: '1450'
        },
        {
            items: [
                /minecraft:emerald.+/,
                'minecraft:emerald',
                /emendatusenigmatica:emerald.+/
            ],
            temp: '1034'
        },
        {
            items: [
                'minecraft:netherite_ingot',
                /emendatusenigmatica:netherite.+/
            ],
            temp: '1250'
        },
        {
            items: [
                /emendatusenigmatica:invar.+/
            ],
            temp: '1427'
        },
        {
            items: [
                /emendatusenigmatica:electrum.+/
            ],
            temp: '1061,9'
        },
        {
            items: [
                /emendatusenigmatica:brass.+/
            ],
            temp: '1927'
        },
        {
            items: [
                /emendatusenigmatica:osmium.+/
            ],
            temp: '3933'
        },
        {
            items: [
                /emendatusenigmatica:lead.+/
            ],
            temp: '3327,5'
        },
        {
            items: [
                /emendatusenigmatica:tin.+/
            ],
            temp: '3231,9'
        },
        {
            items: [
                /emendatusenigmatica:uranium.+/
            ],
            temp: '3132'
        },
        {
            items: [
                /emendatusenigmatica:steel.+/,
                "boss_tools:compressed_steel",
            ],
            temp: '3370'
        },
        {
            items: [
                /emendatusenigmatica:enderium.+/
            ],
            temp: '2999'
        },
        {
            items: [
                /emendatusenigmatica:bronze.+/
            ],
            temp: '700'
        },
        {
            items: [
                /boss_tools:desh.+/,
                "boss_tools:compressed_desh",
                /boss_tools:\b.*_desh_ore/,
            ],
            temp: '4724'
        },
        {
            items: [
                /boss_tools:silicon.+/,
                "boss_tools:compressed_silicon",
                /boss_tools:\b.*_silicon_ore/,
            ],
            temp: '4917'
        },
        {
            items: [
                "industrialforegoing:pink_slime_ingot",
            ],
            temp: '1622'
        },
        {
            items: [
                "create:refined_radiance",
            ],
            temp: '2863'
        },
        {
            items: [
                "create:shadow_steel",
            ],
            temp: '2756'
        },
        {
            items: [
                "mekanism:nugget_refined_obsidian",
                "mekanism:ingot_refined_obsidian",
                "mekanism:block_refined_obsidian",
            ],
            temp: '2991'
        },
        {
            items: [
                "mekanism:nugget_refined_glowstone",
                "mekanism:ingot_refined_glowstone",
                "mekanism:block_refined_glowstone",
            ],
            temp: '2711'
        },
        {
            items: [
                "appliedenergistics2:fluix_block",
                "appliedenergistics2:fluix_crystal",
            ],
            temp: '1500'
        },
        {
            items: [
                "appliedenergistics2:quartz_block",
                "appliedenergistics2:certus_quartz_crystal",
                "appliedenergistics2:charged_certus_quartz_crystal",
                "appliedenergistics2:certus_quartz_dust",
                "appliedenergistics2:quartz_ore",
                "appliedenergistics2:charged_quartz_ore",
            ],
            temp: '1657'
        },
        {
            items: [
                /emendatusenigmatica:ruby.+/
            ],
            temp: '1000'
        },
        {
            items: [
                /emendatusenigmatica:sapphire.+/
            ],
            temp: '1000'
        },
        {
            items: [
                /bettercompat:aurinium.*/,
            ],
            temp: '1500'
        },
        {
            items: [
                /materialis:fairy.*/,
            ],
            temp: '750'
        },
        {
            items: [
                /tinkersarchery:tantalum.*/,
            ],
            temp: '1060'
        },
        {
            items: [
                /tinkersarchery:cobalt_tantalum.*/,
            ],
            temp: '1600'
        },
        {
            items: [
                /tinkersarchery:galaxy_alloy.*/,
            ],
            temp: '1400'
        },
        {
            items: [
                /tconstruct:hepatizon.*/,
            ],
            temp: '1400'
        },
        {
            items: [
                /tconstruct:manyullyn.*/,
            ],
            temp: '1200'
        },
        {
            items: [
                /tconstruct:queens_slime.*/,
            ],
            temp: '1150'
        },
        {
            items: [
                /tconstruct:pig_iron.*/,
            ],
            temp: '811'
        },
        {
            items: [
                /tconstruct:rose_gold.*/,
            ],
            temp: '550'
        },
        {
            items: [
                /tconstruct:slimesteel.*/,
            ],
            temp: '900'
        },
        {
            items: [
                /tconstruct:tinkers_bronze.*/,
            ],
            temp: '700'
        },
        {
            items: [
                /minecraft:quartz/,
                /minecraft:smooth_quartz/,
                /minecraft:chiseled_quartz/,
                /emendatusenigmatica:quartz.+/
            ],
            temp: '637'
        },
        {
            items: [
                "minecraft:blaze_powder",
                "tconstruct:blaze_head",
            ],
            temp: '921'
        },
        {
            items: [
                "minecraft:zombie_head",
                "minecraft:rotten_flesh",
                "tconstruct:piglin_head",
                "tconstruct:zombified_piglin_head",
                "tconstruct:husk_head",
                "tconstruct:piglin_brute_head",
                "tconstruct:blood_slime_ball",
                "tconstruct:blood_slime",
                "tconstruct:blood_congealed_slime",
            ],
            temp: '36'
        },
        {
            items: [
                "minecraft:slime_ball",
                "minecraft:slime_block",
                "tconstruct:earth_congealed_slime",
                "tconstruct:earth_slime_crystal",
                "tconstruct:earth_slime_sapling",
            ],
            temp: '50'
        },
        {
            items: [
                "tconstruct:ender_slime_ball",
                "tconstruct:ender_slime",
                "tconstruct:ender_congealed_slime",
                "tconstruct:ender_slime_crystal",
                "tconstruct:ender_slime_sapling",
            ],
            temp: '70'
        },
        {
            items: [
                "tconstruct:sky_slime_ball",
                "tconstruct:sky_slime",
                "tconstruct:sky_congealed_slime",
                "tconstruct:sky_slime_crystal",
                "tconstruct:sky_slime_sapling",
            ],
            temp: '10'
        },
        {
            items: [
                "tconstruct:soul_glass",
                "tconstruct:soul_glass_pane",
                "minecraft:soul_sand",
            ],
            temp: '400'
        },
        {
            items: [
                "minecraft:magma_cream",
                "minecraft:magma_block",
            ],
            temp: '300'
        },
        {
            items: [
                /minecraft:\b.*terracotta/,
                "minecraft:clay_ball",
                "minecraft:clay",
                "minecraft:brick",
                "minecraft:flower_pot",
                /ceramics:clay(?!_bucket)/,
                /ceramics:unfired_(cistern|faucet|channel|clay)/,
                /ceramics:\b.*terracotta/,
            ],
            temp: '450'
        },
        {
            items: [
                /(minecraft|quark|create):\b.*glass(?!_item_frame)/,
                /tconstruct:\b.*clear_glass/,
                /tconstruct:\b.*stained_glass/,
                "minecraft:sand",
                "minecraft:red_sand",
                "tconstruct:blank_sand_cast",
                "tconstruct:blank_red_sand_cast",
            ],
            temp: '750'
        },
        {
            items: [
                /ceramics:\b.*porcelain/,
            ],
            temp: '700'
        },
        {
            items: [
                /tconstruct:\b.*seared(?!_drain|_duct|_chute|_stone_bucket)/,
                "tconstruct:grout",
            ],
            temp: '600'
        },
        {
            items: [
                /tconstruct:\b.*scorched(?!_duct|_stone_bucket)/,
                "tconstruct:nether_grout",
            ],
            temp: '500'
        },
        {
            items: [
                "kubejs:calculation_mechanism",
                /kubejs:(zero|one|two|three|four|five|six|seven|eight|nine)/
            ],
            temp: '2048'
        },
        {
            items: [
                "cagedmobs:milk_drop",
                "tconstruct:drowned_head",
                "minecraft:ice",
                "minecraft:packed_ice",
                "minecraft:blue_ice",
                "minecraft:snow_block",
                "minecraft:packed_ice",
                "minecraft:snow",
                "minecraft:snowball",
            ],
            temp: '0'
        },
        {
            items: [
                "minecraft:charcoal",
                "mekanism:block_charcoal",
                "emendatusenigmatica:charcoal_dust",
            ],
            temp: '247'
        },
        {
            items: [
                /emendatusenigmatica:cast_iron.+/
            ],
            temp: '1782'
        },
        // {
        //     items: [
        //         /emendatusenigmatica:signalum.+/
        //     ],
        //     temp: '1125'
        // },
        // {
        //     items: [
        //         /emendatusenigmatica:lumium.+/
        //     ],
        //     temp: '1050'
        // },
    ];

    recipes.forEach((recipe) => {
        event.add(recipe.items, `§7Melting Point: §6${recipe.temp}°C`);
    });
    
});
