A recipe category that a player cannot craft

Place to get help with not working mods / modding interface.
User avatar
DRY411S
Filter Inserter
Filter Inserter
Posts: 736
Joined: Sun Mar 13, 2016 9:48 am
Contact:

A recipe category that a player cannot craft

Post by DRY411S »

In a bug report I made, I've been told that it is possible to have a recipe category that can only appear in a 'machine' not the player's crafting menu (when you press the 'E' key).

Can anybody help me with how I do this please?

The bug report where I was told this, is at this link
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: A recipe category that a player cannot craft

Post by bobingabout »

Crafting categories is a method of restricting certain things to certain machines. the "crafting" category is the one the player AND Assembling machine can craft. "crafting-with-fluid" is an example of an assembling machine category that the player can't craft.

You can add your own custom categories (defined in the game files) and make your newly created machines use that category.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: A recipe category that a player cannot craft

Post by DaveMcW »

crafting-with-fluid still appears in the player menu though. I don't think it's possible to hide a recipe.
User avatar
DRY411S
Filter Inserter
Filter Inserter
Posts: 736
Joined: Sun Mar 13, 2016 9:48 am
Contact:

Re: A recipe category that a player cannot craft

Post by DRY411S »

My 'Reverse recipe' for my recycling machines all are assigned to a category that my recycling machines can craft. That I understand and it all works perfectly.

The recipes can only be crafted in the recycling machines. So why do they appear in the players crafting menu, when the player cannot craft them? That's the bit I don't understand.

And before anybody suggests that the recipes must not be in a vanilla item-group or item-subgroups, they aren't! I've created new groups and subgroups for them, and added them to the recipe definitions.

It appears to me that every recipe-category that is assigned to an assembling machine also appears in the players crafting menu. Is it only recipes used in smelting machines that don't?
User avatar
DedlySpyder
Filter Inserter
Filter Inserter
Posts: 254
Joined: Fri Jun 20, 2014 11:42 am
Contact:

Re: A recipe category that a player cannot craft

Post by DedlySpyder »

DRY411S wrote:My 'Reverse recipe' for my recycling machines all are assigned to a category that my recycling machines can craft. That I understand and it all works perfectly.

The recipes can only be crafted in the recycling machines. So why do they appear in the players crafting menu, when the player cannot craft them? That's the bit I don't understand.

And before anybody suggests that the recipes must not be in a vanilla item-group or item-subgroups, they aren't! I've created new groups and subgroups for them, and added them to the recipe definitions.

It appears to me that every recipe-category that is assigned to an assembling machine also appears in the players crafting menu. Is it only recipes used in smelting machines that don't?
I think that is just so that you can plan things out for the base game recipes.

Imagine if you wanted to make batteries the first time you played, but you couldn't look up the recipe. It would be nearly impossible to figure it out (you would have to either know to, or accidentally, place a chem plant and see the recipe there).
User avatar
DRY411S
Filter Inserter
Filter Inserter
Posts: 736
Joined: Sun Mar 13, 2016 9:48 am
Contact:

Re: A recipe category that a player cannot craft

Post by DRY411S »

I guess. But it's really cluttering the players crafting menu when I have a 'reverse' tab for every tab that is already present. With Bob's mods installed, that's a heck of a lot of tabs.
Post Reply

Return to “Modding help”