
ServerEvents.recipes((event) => {
    //Inputs
        let Dirt = 'minecraft:dirt'
        let SoulSand = 'minecraft:soul_sand'
        let RedSand = 'minecraft:red_sand'
        let Gravel = 'minecraft:gravel'
        let Sand = 'minecraft:sand'
        let Dust = 'exdeorum:dust'
        let Netherrack = 'exdeorum:crushed_netherrack'
        let EndStone = 'exdeorum:crushed_end_stone'
        let Deepslate = 'exdeorum:crushed_deepslate'
        let Blackstone = 'exdeorum:crushed_blackstone'
        let SplinteredWood = 'skyblockutilities:splintered_wood'

        let StringMesh = 'exdeorum:string_mesh'
        let FlintMesh = 'exdeorum:flint_mesh'
        let IronMesh = 'exdeorum:iron_mesh'
        let GoldMesh = 'exdeorum:golden_mesh'
        let DiamondMesh = 'exdeorum:diamond_mesh'
        let NetheriteMesh = 'exdeorum:netherite_mesh'

    let addHammerFLINT = (input, output) => {
        event.custom(
            {
                type: 'exdeorum:hammer',
                ingredient: [
                    {
                        item: input
                    }
                ],
                result: output,
                result_amount: 7.0
            }
        )
    }
	
	let addHammer = (input, output) => {
        event.custom(
            {
                type: 'exdeorum:hammer',
                ingredient: [
                    {
                        item: input
                    }
                ],
                result: output,
                result_amount: 1.0
            }
        )
    }
	
//hammer recipes
//splintered wood hammer recipe
addHammer('minecraft:oak_log', SplinteredWood)
addHammer('minecraft:birch_log', SplinteredWood)
addHammer('minecraft:spruce_log', SplinteredWood)
addHammer('minecraft:jungle_log', SplinteredWood)
addHammer('minecraft:dark_oak_log', SplinteredWood)
addHammer('minecraft:acacia_log', SplinteredWood)

addHammer('minecraft:mangrove_log', SplinteredWood)
addHammer('minecraft:cherry_log', SplinteredWood)

addHammer('ad_astra:glacian_log', SplinteredWood)

addHammer('justanotherblocksmod:maple_log', SplinteredWood)
addHammer('justanotherblocksmod:redwood_log', SplinteredWood)
addHammer('justanotherblocksmod:greenwood_log', SplinteredWood)
addHammer('justanotherblocksmod:witchwood_log', SplinteredWood)

//charcoal block to flint
addHammerFLINT('skyblockutilities:charcoal_block', 'minecraft:flint')
addHammerFLINT('mekanism:block_charcoal', 'minecraft:flint')
addHammerFLINT('thermal:charcoal_block', 'minecraft:flint')
})