Hide recipes only in player menu

Place to get help with not working mods / modding interface.
User avatar
Linver
Fast Inserter
Fast Inserter
Posts: 158
Joined: Wed Jan 09, 2019 2:28 pm
Contact:

Hide recipes only in player menu

Post by Linver »

Hi all,
is there a way to hide recipes only player menu but will be displayed and selectable opening the right assembler machine?
sinropa
Inserter
Inserter
Posts: 24
Joined: Sun Jun 09, 2019 12:36 am
Contact:

Re: Hide recipes only in player menu

Post by sinropa »

Note that a recipe can be hidden and enabled:

Code: Select all


data:extend({
  {
    type = "recipe",
    name = "coal",
    energy_required = .1,
    enabled = true,
	hidden = true,
    ingredients =
    {},
    result = "coal"
  }
  })

User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Hide recipes only in player menu

Post by Arch666Angel »

The "e" player crafting menu will always show all recipes, even if they are not craft able by hand. You can hide recipes as mentioned above, but they cannot be selected then in an assembler as well. So in general: no. In special cases there are workarounds.
Post Reply

Return to “Modding help”