expose max_belt_stack_size for inserters at runtime stage

minecrafter8001
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Sep 29, 2023 9:15 am
Contact:

expose max_belt_stack_size for inserters at runtime stage

Post by minecrafter8001 »

we can access this for loaders (loader_max_belt_stack_size), so why not inserters?
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 453
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: expose max_belt_stack_size for inserters at runtime stage

Post by protocol_1903 »

I believe that's because inserter's stacking abilities are derived from the currently researched stack size and the inserter's hand size. If it's holding 6 items and the stack size is 2 it will create stack sizes of 2. It doesn't make sense to set the stack size via script/on the inserters like you can on loaders
Py and PyBlock developer, wielder of LUA in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
minecrafter8001
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Sep 29, 2023 9:15 am
Contact:

Re: expose max_belt_stack_size for inserters at runtime stage

Post by minecrafter8001 »

protocol_1903 wrote: Tue Jan 13, 2026 8:33 pm I believe that's because inserter's stacking abilities are derived from the currently researched stack size and the inserter's hand size. If it's holding 6 items and the stack size is 2 it will create stack sizes of 2. It doesn't make sense to set the stack size via script/on the inserters like you can on loaders
im talking about reading the value, not setting it
loader_max_belt_stack_size is read only as well because its from LuaEntityPrototype not LuaEntity
Last edited by minecrafter8001 on Tue Jan 13, 2026 8:37 pm, edited 1 time in total.
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 453
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: expose max_belt_stack_size for inserters at runtime stage

Post by protocol_1903 »

Gotcha, sorry i had the wrong idea. +1
Py and PyBlock developer, wielder of LUA in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
Bilka
Factorio Staff
Factorio Staff
Posts: 3701
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: expose max_belt_stack_size for inserters at runtime stage

Post by Bilka »

Added LuaEntityPrototype::inserter_max_belt_stack_size read for the next release.
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”