change barrel size
Hello,
sorry for my noob question but maybe i am trying to make a change that i find very difficult.
I would like to change the size of the barrel, i.e. the amount of fluid it can contain.
i searched in the data.raw but i understand that it is not possible to do it the same way as a container / box.
I tried to look at other mods but they all use scripts a little too complicated in my experience ...
change barrel size
Re: change barrel size
A barrel of water is a simple item.
The fact that it contains 50 units of water is not a property of the item but a property of the recipies to fill and empty the barrel.
So to change the amount fluid within a barrel you would need to modify the recipies.
The fact that it contains 50 units of water is not a property of the item but a property of the recipies to fill and empty the barrel.
So to change the amount fluid within a barrel you would need to modify the recipies.
Re: change barrel size
Made with viewtopic.php?t=45107
See code of the Factorio/data/base/data-updates.lua. Don't change it!
Code: Select all
data.raw.recipe["fill-water-barrel"].ingredients[2] = {type = "item", name = "empty-barrel", amount = 1, catalyst_amount = 1}
data.raw.recipe["empty-water-barrel"].results[1] = {type = "fluid", name = "water", amount = 50, catalyst_amount = 50}
- Attachments
-
- 2020-12-23T01_45_27-ZeroBrane Studio - D__Factorio_1.1_data_base_data-updates.lua.png (15.34 KiB) Viewed 1057 times