Page 1 of 1

How to increase stack_size parameter?

Posted: Tue Mar 22, 2016 9:35 pm
by Sander_Bouwhuis
I tried a mod called 'Compressed materials', but didn't like the steps needed to get it to work. So, I tried to edit some of the stack sizes of items. When I go to the game, the stack sizes haven't changed.

Can somebody tell me how to mod (some) of them?

Re: How to increase stack_size parameter?

Posted: Tue Mar 22, 2016 9:58 pm
by daniel34
I don't know about that mod but stack sizes are usually modded by editing the data.lua (or creating a new one if there hasn't been one) and adding the following line:

Code: Select all

data.raw["item"]["iron-plate"]["stack_size"] = 500
This will set the stack_size of iron plates to 500.

The file may also be called data-updates.lua or data-final-fixes.lua. Later changes overwrite the earlier ones.

Re: How to increase stack_size parameter?

Posted: Wed Mar 23, 2016 12:03 am
by Sander_Bouwhuis
Hmmm... I cannot find anything like the line you're mentioning.

So, if I add a data.lua with the specified line and zip it and put it in the mods folder it should work?