I hope you are well,
I need help with the following:
Create a few categories for the mod recipes, and all is well.
I want players to be able to craft the recipes of a category, but I can't find a way to do it.
The following code worked but not wellCode: Select all
local CharacterCategories = data.raw[ 'character' ][ 'character' ]
CharacterCategories = CharacterCategories[ 'crafting_categories' ]
table.insert( CharacterCategories, 1, 'xXx' )
local GodCategories = data.raw[ 'god-controller' ][ 'default' ]
GodCategories = GodCategories[ 'crafting_categories' ]
table.insert( GodCategories, 1, 'xXx' )
The iron chests that can be created with the materials that you have, are calculated including my recipe, but you can see in the blue circle, the recipes of my category are not included in the calculations.
And in the green circle the calculations ignore my recipes again.
And even if I use the recipe and increase iron plate the recipes are not updated.
The following is the result when the above code is not executed.