Page 1 of 1

Identify if an item is "intermediate"

Posted: Tue Dec 12, 2023 11:23 am
by stagdancer
Is there a way to identify if an item is an "intermediate item" via the modding API, please?

I'm looking in the API docs for LuaItemPrototype and I don't see anything obvious...

Re: Identify if an item is "intermediate"

Posted: Tue Dec 12, 2023 11:28 am
by Bilka
If you're looking for the item group (the tab in the inventory), it's https://lua-api.factorio.com/latest/cla ... html#group. If you're looking for whether a recipe allow productivity modules it's https://lua-api.factorio.com/latest/cla ... imitations on the productivity modules.

Re: Identify if an item is "intermediate"

Posted: Tue Dec 12, 2023 11:41 am
by stagdancer
Thanks for the lightning response!!

Ok, groups - perfect. I'll try it now.

I'm hoping to differentiate between things in the inventory like red-wire, which I think is always handy to have around even in small quantities, and copper-cable, which I normally want to throw in the trash.