Recipe enable=false doesn't disable recipe

Place to get help with not working mods / modding interface.
Post Reply
M.Colcko
Inserter
Inserter
Posts: 20
Joined: Sun Dec 04, 2016 7:23 am
Contact:

Recipe enable=false doesn't disable recipe

Post by M.Colcko »

I've looked up this post viewtopic.php?f=25&t=58203 and done that but the recipe is still available at the start of the game.

Code: Select all

data:extend({
{
    type = "recipe",
    name = "electric-mining-drill-mk2",
	normal =
    {
		enabled = false,
		energy_required = 4,
		ingredients =
		{
			{"speed-module-2", 2},
			{"steel-plate", 20},
			{"processing-unit", 5},
			{"electronic-circuit", 20}
		},
		result = "electric-mining-drill-mk2"
    },
    expensive =
    {
		enabled = false,
		energy_required = 4,
		ingredients =
		{
			{"speed-module-2", 2},
			{"steel-plate", 20},
			{"processing-unit", 5},
			{"electronic-circuit", 20}
		},
		result = "electric-mining-drill-mk2"
    }
}
})

Post Reply

Return to “Modding help”