ServerEvents.recipes(event => {

	let breaking = (output, input) => {
		event.shapeless(output, [input])
	}
	breaking('2x minecraft:oak_planks', '#backrooms:oak_furniture')
	breaking('2x minecraft:spruce_planks', '#backrooms:spruce_furniture')
	breaking('2x minecraft:birch_planks', '#backrooms:birch_furniture')
	breaking('2x minecraft:jungle_planks', '#backrooms:jungle_furniture')
	breaking('2x minecraft:acacia_planks', '#backrooms:acacia_furniture')
	breaking('2x minecraft:dark_oak_planks', '#backrooms:dark_oak_furniture')
	breaking('2x minecraft:mangrove_planks', '#backrooms:mangrove_furniture')
	breaking('2x minecraft:cherry_planks', '#backrooms:cherry_furniture')
	breaking('2x minecraft:warped_planks', '#backrooms:warped_furniture')
	breaking('2x minecraft:crimson_planks', '#backrooms:crimson_furniture')



	let chopping = (output, input) => {
		event.recipes.farmersdelight.cutting(
			input,
			"#forge:tools/axes",
			[
				output,
				Item.of("minecraft:stick")
                .withChance(0.5)
			],
			"minecraft:block.wood.break");
	}
	chopping('6x minecraft:oak_planks', '#backrooms:oak_furniture')
	chopping('6x minecraft:spruce_planks', '#backrooms:spruce_furniture')
	chopping('6x minecraft:birch_planks', '#backrooms:birch_furniture')
	chopping('6x minecraft:jungle_planks', '#backrooms:jungle_furniture')
	chopping('6x minecraft:acacia_planks', '#backrooms:acacia_furniture')
	chopping('6x minecraft:dark_oak_planks', '#backrooms:dark_oak_furniture')
	chopping('6x minecraft:mangrove_planks', '#backrooms:mangrove_furniture')
	chopping('6x minecraft:cherry_planks', '#backrooms:cherry_furniture')
	chopping('6x minecraft:warped_planks', '#backrooms:warped_furniture')
	chopping('6x minecraft:crimson_planks', '#backrooms:crimson_furniture')
	chopping('4x minecraft:bamboo_planks', 'chimes:carved_bamboo_chimes')

	let cutting = (output, input) => {
		event.recipes.create.cutting(
			[
				output,
				Item.of("mekanism:sawdust")
				.withChance(0.2)
			],
		input
	)}
	cutting('10x minecraft:oak_planks', '#backrooms:oak_furniture')
	cutting('10x minecraft:spruce_planks', '#backrooms:spruce_furniture')
	cutting('10x minecraft:birch_planks', '#backrooms:birch_furniture')
	cutting('10x minecraft:jungle_planks', '#backrooms:jungle_furniture')
	cutting('10x minecraft:acacia_planks', '#backrooms:acacia_furniture')
	cutting('10x minecraft:dark_oak_planks', '#backrooms:dark_oak_furniture')
	cutting('10x minecraft:mangrove_planks', '#backrooms:mangrove_furniture')
	cutting('10x minecraft:cherry_planks', '#backrooms:cherry_furniture')
	cutting('10x minecraft:warped_planks', '#backrooms:warped_furniture')
	cutting('10x minecraft:crimson_planks', '#backrooms:crimson_furniture')

	event.shapeless("minecraft:brown_wool", ["refurbished_furniture:brown_sofa"])
	event.shapeless("minecraft:brown_wool", ["refurbished_furniture:brown_stool"])
	event.shapeless("minecraft:gray_wool", ["refurbished_furniture:gray_sofa"])
	event.shapeless("minecraft:gray_wool", ["refurbished_furniture:gray_stool"])
	event.shapeless("minecraft:light_gray_wool", ["refurbished_furniture:light_gray_sofa"])
	event.shapeless("minecraft:light_gray_wool", ["refurbished_furniture:light_gray_stool"])
	event.shapeless("minecraft:white_wool", ["refurbished_furniture:white_sofa"])
	event.shapeless("minecraft:white_wool", ["refurbished_furniture:white_stool"])
	//add precision sawmill?

	let sofachopping = (input, wool) => {
		event.recipes.farmersdelight.cutting(
			input,
			"#forge:tools/axes",
			[
				"3x minecraft:oak_planks",
				wool
			],
			"minecraft:block.wood.break");
	}
	let sofasawing = (input, wool) => {
		event.recipes.create.cutting(
			[
				"6x minecraft:oak_planks",
				wool
			],
			input)
	}

	sofachopping('refurbished_furniture:brown_sofa', '2x minecraft:brown_wool')
	sofasawing('refurbished_furniture:brown_sofa', '2x minecraft:brown_wool')
	sofachopping('refurbished_furniture:brown_stool', '2x minecraft:brown_wool')
	sofasawing('refurbished_furniture:brown_stool', '2x minecraft:brown_wool')
	sofachopping('refurbished_furniture:gray_sofa', '2x minecraft:gray_wool')
	sofasawing('refurbished_furniture:gray_sofa', '2x minecraft:gray_wool')
	sofachopping('refurbished_furniture:gray_stool', '2x minecraft:gray_wool')
	sofasawing('refurbished_furniture:gray_stool', '2x minecraft:gray_wool')
	sofachopping('refurbished_furniture:light_gray_sofa', '2x minecraft:light_gray_wool')
	sofasawing('refurbished_furniture:light_gray_sofa', '2x minecraft:light_gray_wool')
	sofachopping('refurbished_furniture:light_gray_stool', '2x minecraft:light_gray_wool')
	sofasawing('refurbished_furniture:light_gray_stool', '2x minecraft:light_gray_wool')
	sofachopping('refurbished_furniture:white_sofa', '2x minecraft:white_wool')
	sofasawing('refurbished_furniture:white_sofa', '2x minecraft:white_wool')
	sofachopping('refurbished_furniture:white_stool', '2x minecraft:white_wool')
	sofasawing('refurbished_furniture:white_stool', '2x minecraft:white_wool')


	let crate = (woodtype, output) => {
		event.shaped(output, [
			'ppp',
			'pfp',
			'ppp'
		], { f: 'supplementaries:timber_frame', p: woodtype })
	}

	crate('minecraft:oak_planks', 'refurbished_furniture:oak_crate')
	crate('minecraft:spruce_planks', 'refurbished_furniture:spruce_crate')
	crate('minecraft:birch_planks', 'refurbished_furniture:birch_crate')
	crate('minecraft:jungle_planks', 'refurbished_furniture:jungle_crate')
	crate('minecraft:acacia_planks', 'refurbished_furniture:acacia_crate')
	crate('minecraft:dark_oak_planks', 'refurbished_furniture:dark_oak_crate')
	crate('minecraft:mangrove_planks', 'refurbished_furniture:mangrove_crate')
	crate('minecraft:cherry_planks', 'refurbished_furniture:cherry_crate')
	crate('minecraft:warped_planks', 'refurbished_furniture:warped_crate')
	crate('minecraft:crimson_planks', 'refurbished_furniture:crimson_crate')
})