Simple property request: LuaEntityPrototype.item_slot_count

Post Reply
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Simple property request: LuaEntityPrototype.item_slot_count

Post by Choumiko »

Unless i'm blind the number of signals a constant combinator can hold isn't exposed in the LuaEntityPrototype. Would be nice to have access to that during runtime, so i can figure out which combinator to use in my mod (exporting a possibly big collection of items with associated numbers to a blueprint)
Last edited by Choumiko on Tue May 14, 2019 5:07 pm, edited 1 time in total.

eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

Re: Simple property request: LuaEntityPrototype.item_slot_count

Post by eduran »

This might be what you are looking for: https://lua-api.factorio.com/latest/Lua ... nals_count

Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: Simple property request: LuaEntityPrototype.item_slot_count

Post by Choumiko »

That requires an actual entity, i kind of want it from the prototype only (edited top post)

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

Re: Simple property request: LuaEntityPrototype.item_slot_count

Post by Bilka »

Okay, added in the next version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Implemented mod requests”