
ServerEvents.recipes(event => {

    const materials = ['iridium', 'lead', 'nickel', 'osmium', 'platinum', 'silver', 'tin', 'invar', 'enderium', 'lumium', 'signalum', 'constantan', 'bronze', 'netherite', 'diamond', 'allthemodium', 'vibranium', 'unobtainium' ];
    
    materials.forEach(material => {
        event.custom({
            type: 'create:pressing',
            ingredients: [
            {
                tag: `c:ingots/${material}`
            }
            ],
            results: [
            {
                id: `alltheores:${material}_plate`
            }
            ]
        })
    })

    materials.forEach(material => {
        event.custom({
            type: 'create:pressing',
            ingredients: [
            {
                tag: `c:ingots/${material}`
            }
            ],
            results: [
            {
                id: `allthemodium:${material}_plate`
            }
            ]
        })
    })

    event.shaped(Item.of('allthemodium:allthemodium_plate'), [
        'DS ', 
        'S  ', 
        '   '  
        ], {
        D: '#alltheores:ore_hammers', 
        S: 'allthemodium:allthemodium_ingot'
    })

    event.shaped(Item.of('allthemodium:unobtainium_plate'), [
        'DS ', 
        'S  ', 
        '   '  
        ], {
        D: '#alltheores:ore_hammers', 
        S: 'allthemodium:unobtainium_ingot'
    })

    event.shaped(Item.of('allthemodium:vibranium_plate'), [
        'DS ', 
        'S  ', 
        '   '   
        ], {
        D: '#alltheores:ore_hammers', 
        S: 'allthemodium:vibranium_ingot'
    })

    event.shaped(Item.of('allthemodium:allthemodium_gear'), [
        ' S ', 
        'SDS', 
        ' S ' 
        ], {
        D: 'minecraft:iron_nugget', 
        S: 'allthemodium:allthemodium_ingot'
    })

    event.shaped(Item.of('allthemodium:unobtainium_gear'), [
        ' S ', 
        'SDS', 
        ' S ' 
        ], {
        D: 'minecraft:iron_nugget', 
        S: 'allthemodium:unobtainium_ingot'
    })

    event.shaped(Item.of('allthemodium:vibranium_gear'), [
        ' S ', 
        'SDS', 
        ' S '   
        ], {
        D: 'minecraft:iron_nugget', 
        S: 'allthemodium:vibranium_ingot'
    })

    event.shaped(Item.of('allthemodium:allthemodium_rod'), [
        '  S', 
        'DS ', 
        '   '  
        ], {
        D: '#alltheores:ore_hammers', 
        S: 'allthemodium:allthemodium_ingot'
    })

    event.shaped(Item.of('allthemodium:unobtainium_rod'), [
        '  S', 
        'DS ', 
        '   '  
        ], {
        D: '#alltheores:ore_hammers', 
        S: 'allthemodium:unobtainium_ingot'
    })

    event.shaped(Item.of('allthemodium:vibranium_rod'), [
        '  S', 
        'DS ', 
        '   '   
        ], {
        D: '#alltheores:ore_hammers', 
        S: 'allthemodium:vibranium_ingot'
    })

})
