I am working on a mod in which all Intermediate items and crafting recipes will have no use, because every recipe that would use them will use items added by my mod instead, which I am splitting across their own crafting tabs. I have already found a thread on how to add new tabs, and its method works.
I want to hide the Intermediates tab in the crafting interface to prevent confusion and clutter. Ideally, I also want these items and recipes to not appear in the Factoriopedia for the same reason.
Thanks to How Do I Delete a Recipe or Item From Vanilla?, I know that I can do:
Code: Select all
data.raw["item-group"]["intermediate-products"] = nilThanks to Darkfrei I know I must remove the referents throwing this error. That makes sense. I do:
Code: Select all
data.raw["item-subgroup"]["fluid-recipes"] = nil
data.raw["item-subgroup"]["raw-resource"] = nil
data.raw["item-subgroup"]["raw-material"] = nil
data.raw["item-subgroup"]["barrel"] = nil
data.raw["item-subgroup"]["fill-barrel"] = nil
data.raw["item-subgroup"]["empty-barrel"] = nil
data.raw["item-subgroup"]["intermediate-products"] = nil
data.raw["item-subgroup"]["intermediate-recipe"] = nil
data.raw["item-subgroup"]["uranium-processing"] = nil
data.raw["item-subgroup"]["science-pack"] = nil
data.raw["item-subgroup"]["internal-process"] = nilI have to set every intermediate item, and every intermediate recipe, to nil.
I can, but surely I'm missing something. Surely there's a simple way to do
Code: Select all
data.raw["item-group"]["intermediate-products"][*] = nilIf there is clear, detailed documentation on how to use data.raw, I'd appreciate a link. Modders seem to know instinctively how to use it, and I cannot figure out how they know this stuff! For instance, I've found that it cannot be used to replace an image, even though it looks as though it could.

