commit 0746b8771c9f7c1f22c41a6561b256dac7061e81 Author: ddidderr Date: Tue Dec 30 10:38:38 2025 +0100 initial commit diff --git a/data-updates.lua b/data-updates.lua new file mode 100644 index 0000000..050de97 --- /dev/null +++ b/data-updates.lua @@ -0,0 +1,5 @@ +for _, item in pairs(data.raw.item) do + if item.name:match("%-barrel$") then -- Matches "water-barrel", "crude-oil-barrel", etc. + item.weight = 1 * kg + end +end diff --git a/data.lua b/data.lua new file mode 100644 index 0000000..f9d6e97 --- /dev/null +++ b/data.lua @@ -0,0 +1 @@ +data.raw.item["barrel"].weight = 1 * kg diff --git a/info.json b/info.json new file mode 100644 index 0000000..c1e739f --- /dev/null +++ b/info.json @@ -0,0 +1,11 @@ +{ + "name": "BarrelWeightTweaker", + "version": "0.1.0", + "title": "Barrel Weight Tweaker", + "author": "ddidderr", + "description": "Sets the weight of barrels to 1 kg for increased rocket capacity.", + "factorio_version": "2.0", + "dependencies": [ + "base >= 2.0" + ] +}