Find out whether this recipe can be crafted by hand or not

Place to get help with not working mods / modding interface.
guevin1
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Mar 24, 2025 6:14 pm
Contact:

Find out whether this recipe can be crafted by hand or not

Post by guevin1 »

Hello, I encountered such a problem that I can’t find a parameter that says whether it can be crafted or not in the recipes. Please tell me if there is such a parameter at all, or how else can I find it? Is it possible to craft it manually?
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4033
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Find out whether this recipe can be crafted by hand or not

Post by boskid »

There may be multiple characters defined in game and each could have different crafting categories so you need to decide for which character you want to check recipes. As of right now there are 3 conditions that must be fulfilled for recipe to be considered able to craft manually:
1/ recipe must have a category that matches one of CharacterPrototype::crafting_categories of your character. (LuaRecipePrototype::category, LuaEntityProtototype::crafting_categories for character)
2/ recipe must not have any fluid ingredients or products (LuaRecipePrototype::ingredients, LuaRecipePrototype::products)
3/ recipe must not be disabled from hand crafting in LuaForce (LuaForce::get_hand_crafting_disabled_for_recipe).
guevin1
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Mar 24, 2025 6:14 pm
Contact:

Re: Find out whether this recipe can be crafted by hand or not

Post by guevin1 »

boskid wrote: Mon Mar 24, 2025 7:34 pm There may be multiple characters defined in game and each could have different crafting categories so you need to decide for which character you want to check recipes. As of right now there are 3 conditions that must be fulfilled for recipe to be considered able to craft manually:
1/ recipe must have a category that matches one of CharacterPrototype::crafting_categories of your character. (LuaRecipePrototype::category, LuaEntityProtototype::crafting_categories for character)
2/ recipe must not have any fluid ingredients or products (LuaRecipePrototype::ingredients, LuaRecipePrototype::products)
3/ recipe must not be disabled from hand crafting in LuaForce (LuaForce::get_hand_crafting_disabled_for_recipe).
What then to do with crafts like the uranium process or space age metal casting?
Post Reply

Return to “Modding help”