Page 1 of 1
expose max_belt_stack_size for inserters at runtime stage
Posted: Tue Jan 13, 2026 7:36 pm
by minecrafter8001
we can access this for loaders (loader_max_belt_stack_size), so why not inserters?
Re: expose max_belt_stack_size for inserters at runtime stage
Posted: Tue Jan 13, 2026 8:33 pm
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
Re: expose max_belt_stack_size for inserters at runtime stage
Posted: Tue Jan 13, 2026 8:35 pm
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
Re: expose max_belt_stack_size for inserters at runtime stage
Posted: Tue Jan 13, 2026 8:36 pm
by protocol_1903
Gotcha, sorry i had the wrong idea. +1
Re: expose max_belt_stack_size for inserters at runtime stage
Posted: Fri Feb 06, 2026 1:04 pm
by Bilka
Added LuaEntityPrototype::inserter_max_belt_stack_size read for the next release.