Identify if an item is "intermediate"

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
stagdancer
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Jan 31, 2021 3:07 pm
Contact:

Identify if an item is "intermediate"

Post 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...

Bilka
Factorio Staff
Factorio Staff
Posts: 3139
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Identify if an item is "intermediate"

Post 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.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

stagdancer
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Jan 31, 2021 3:07 pm
Contact:

Re: Identify if an item is "intermediate"

Post 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.

Post Reply

Return to “Modding discussion”