From 0746b8771c9f7c1f22c41a6561b256dac7061e81 Mon Sep 17 00:00:00 2001 From: ddidderr Date: Tue, 30 Dec 2025 10:38:38 +0100 Subject: [PATCH] initial commit --- data-updates.lua | 5 +++++ data.lua | 1 + info.json | 11 +++++++++++ 3 files changed, 17 insertions(+) create mode 100644 data-updates.lua create mode 100644 data.lua create mode 100644 info.json 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" + ] +}