console.info('cutting logs for farmers delight')

let byg_logs =['aspen','baobab','blue_enchanted','blue_enchanted','cherry','cika','cypress','ebony','ether','fir','green_enchanted','holly','lament','jacaranda','mahogonay','white_mangrove','maple','nightshade','palm','palo_verde','pine','rainbow_eucalyptus','redwood','skyris','willow','witch_hazel','zelkova']

ServerEvents.recipes(event=>{

    byg_logs.forEach(e=>{
        event.custom({
            "type": "farmersdelight:cutting",
            "ingredients":[
                {
                    "item":"byg:"+e+"_log"
                }
            ],
            "result":[
                {
                    "item":"byg:stripped_"+e+"_log"
                },
                {
                    "item":"farmersdelight:tree_bark"
                }
            ],
            "sound":"minecraft:item.axe.strip",
            "tool":{
                "type":"farmersdelight:tool_action",
                "action":"axe_strip"
            }
        }).id('tomtaru:'+e+'_log_stripping')
    })
    event.custom({
        "type": "farmersdelight:cutting",
        "ingredients":[
            {
                "item":"cobblemon:apricorn_log"
            }
        ],
        "result":[
            {
                "item":"cobblemon:stripped_apricorn_log"
            },
            {
                "item":"farmersdelight:tree_bark"
            }
        ],
        "sound":"minecraft:item.axe.strip",
        "tool":{
            "type":"farmersdelight:tool_action",
            "action":"axe_strip"
        }
    }).id('tomtaru:apricorn_log_stripping')
})