Page 1 of 1

mining tool recipe

Posted: Sat Apr 01, 2017 5:04 pm
by Arko

Code: Select all

data:extend({
	{
		type = "recipe",
		name = "chestR",
		enabled = "false",
		ingredients = 
		{
		{"wood",40},
		{"steel-plate",40},
		},
		result = "chest"
	},
	
	{
		type = "recipe",
		name = "saltR",
		enabled = "true",
		ingredients = 
		{
		{"electronic-circuit",},
		{"stone-brick",100},
		{"battery",100}
		},
		result = "salt_tool"
	},
})
I've got that in recipe .lua and factorio sends me an error
Error while loading recipe prototype "saltR" (recipe): no such node (name)
Modifications : Chest
Can you explain to me what is wrong in the code please :)

Re: mining tool recipe

Posted: Sat Apr 01, 2017 5:34 pm
by prg

Code: Select all

      {"electronic-circuit",},
That line seems to be missing a number.

Re: mining tool recipe

Posted: Sat Apr 01, 2017 5:46 pm
by Arko
Oh :o

Scuse me I don't see it

Thanks !!