Custom mod category or-hand-crafting
Posted: Mon Sep 21, 2026 9:45 pm
My mod introduces a new entity of type "assembling-machine". This entity's crafting_categories is set to {"custom-test"}, a crafting category my mod defines. The modded assembler is otherwise a clone of assembling-machine-1.
My modded assembler works correctly. The only recipes that appear in its interface are those added by my mod in the custom-test category.
However, none of these recipes can be crafted by hand.
None of the recipes involve fluids, which I know makes them ineligable for hand-crafting. The recipes can be hand-crafted if the category is omitted or set to "crafting", but then they appear in assembling machines, which is precisely what I am trying to prevent.
Looking at the game files, I think that only recipes with either no category or "crafting" category can be hand-crafted. However, some recipes have -or-hand-crafting in their categories.
I tried giving a recipe the category "custom-test-or-hand-crafting". This resulted in an error that the category does not exist.
How do I add recipes to a mod-defined category that the player can hand-craft?
Or, how do I restrict hand-craftable recipes to only one machine?
My modded assembler works correctly. The only recipes that appear in its interface are those added by my mod in the custom-test category.
However, none of these recipes can be crafted by hand.
None of the recipes involve fluids, which I know makes them ineligable for hand-crafting. The recipes can be hand-crafted if the category is omitted or set to "crafting", but then they appear in assembling machines, which is precisely what I am trying to prevent.
Looking at the game files, I think that only recipes with either no category or "crafting" category can be hand-crafted. However, some recipes have -or-hand-crafting in their categories.
I tried giving a recipe the category "custom-test-or-hand-crafting". This resulted in an error that the category does not exist.
How do I add recipes to a mod-defined category that the player can hand-craft?
Or, how do I restrict hand-craftable recipes to only one machine?