How to increase stack_size parameter?

Place to get help with not working mods / modding interface.
Sander_Bouwhuis
Filter Inserter
Filter Inserter
Posts: 292
Joined: Mon Dec 07, 2015 10:45 pm
Contact:

How to increase stack_size parameter?

Post 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?
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: How to increase stack_size parameter?

Post 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.
quick links: log file | graphical issues | wiki
Sander_Bouwhuis
Filter Inserter
Filter Inserter
Posts: 292
Joined: Mon Dec 07, 2015 10:45 pm
Contact:

Re: How to increase stack_size parameter?

Post 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?
Post Reply

Return to “Modding help”