-- add to registered_plants
farming.register_plant("better_farming:potatoes",{
	description = "Potato Seed",
	harvest_description = "Potato",
	inventory_image = "better_farming_potatoes_seed.png",
	minlight = better_farming.minlight,
	maxlight = better_farming.maxlight,
	steps = 4,
	groups = { flammable = 2, grassland = 1 },
	fertility = {"grassland"},
})

-- needed
minetest.override_item("better_farming:potatoes", {
	on_use = minetest.item_eat(1),
})

minetest.register_decoration(asuna.features.crops.potatoes.inject_decoration({
	name = "better_farming:potatoes_4",
	deco_type = "simple",
	sidelen = 16,
	noise_params = {
		offset = -0.1,
		scale = 0.1,
		spread = {x = 50, y = 50, z = 50},
		seed = 2008,
		octaves = 3,
		persist = 0.7
	},
	y_max = 31000,
	y_min = 1,
	decoration = "better_farming:potatoes_4",
	param2 = 3,
}))


minetest.register_craftitem("better_farming:chips", {
	description = "Chips",
	on_use = minetest.item_eat(1),
	inventory_image = "chips.png",
})

minetest.register_craft({
	type = "cooking",
	output = "better_farming:chips 3",
	recipe = "better_farming:potatoes",
})
