Forked from this mod: https://mods.factorio.com/mod/infinite-belt-stacking by notnotmelon
Changes
This version adds config options to help customize the feature for your needs or for server owners.
First Option is a limit on number of levels this mod adds. The script hard codes the limit to 250 levels behind the scenes, not that anyone would ever get that far.
Now you can set a value to just have 10 levels, for example. Keep it at 0 to consider it infinite.
Option to enable the mod to update loaders to allow stacking. Other mods that do this do not update the max_stack value properly. A note on loaders below. Enabled by default.
Option to limit the number of sprites shown in the inserters hand as giant stacks look very odd and hurt rendering performance. The number of sprites on the belt is hard-coded by the base game so it doesn't overwhelm the sprite renderer (which has a 300k sprite limit to render a frame). I set this to 10 by default, base game is 8.
I try to make things as Flexible as possible. Great work by the OP! I just needed some extra features for a playthrough stream I'm prepping for.