"Raw wood cannot be smelted", even though there is a recipe?
Posted: Thu Feb 12, 2015 11:28 pm
				
				I'm trying to make a mod to add in two more fuels: charcoal and coal coke.
I followed the first three chapters of the modding tutorial on the wiki, and I have the recipes, graphics, and items set up. I don't need to have it as an entity. control.lua is empty.
the code so far:
			I followed the first three chapters of the modding tutorial on the wiki, and I have the recipes, graphics, and items set up. I don't need to have it as an entity. control.lua is empty.
the code so far:
Code: Select all
--in recipe.lua--
data:extend({
	{
		type = "recipe",
		name = "charcoal",
		category = "smelting",
		energy_required = 3.5,
		ingredients = {{"raw-wood", 1}},
		result = "charcoal"
	},
	{
		type = "recipe",
		name = "coal-coke",
		category = "smelting",
		energy_required = 3.5,
		ingredients = {{"coal", 1}},
		result = "coal-coke"
	},
})Code: Select all
--in item.lua--
data:extend({
	{
		type = "item",
		name = "charcoal",
		icon = "__failure-industries_more-fuels__/graphics/icons/charcoal.png",
		flags = {"goes-to-main-inventory"},
		fuel_value = "6MJ",
		subgroup = "raw-material",
		order = "a[charcoal]",
		stack_size = 50
	}
	{
		type = "item",
		name = "coal-coke",
		icon = "__failure-industries_more-fuels__/graphics/icons/coal-coke.png",
		flags = {"goes-to-main-inventory"},
		fuel_value = "16MJ",
		subgroup = "raw-material",
		order = "b[coal-coke]",
		stack_size = 50
	}
})