Base Crafting Requirements - Either / Or

Hello,

I need some help with my Mod.
I’m trying to set the crafting requirements for an item to either need item A or item B.
I thought KeratinOrChitin would use some simliar logic, but I was not able to find out how this could work.

Anyone able to help? I would really appreciate your help.

I took a look not at chitin/keratin, but rather organic polymer as organic polymer acts as both resources (it’s specific to ghillie). If you look at this file, you’ll see that it is a child of polymer rather than a child of a base resource. If you take a look at both chitin and keratin, you’ll notice that they are also children of chitinorkeratin. If you look at crafting requirements, instead of chitin, the requirement is chitinorkeratin. It’s my understanding that when crafting something, the item looks for the crafting component required, but also checks for children of said parent.

Theoretically, you should be able to do two things: 1) create item A, and have item B a child of it, or 2) create an item, and have both A and B as children of said item.

Hope this works!

I will give it a try! Thanks your your help, I’ll let you know if it worked.

Yeah it’s working. Thank you so much <3

Glad it worked out :slight_smile: