BarrelWeightTweaker 0.2.0

- configurable weight
This commit is contained in:
2026-05-09 12:36:55 +02:00
parent 0746b8771c
commit 8897832660
9 changed files with 44 additions and 8 deletions
+7
View File
@@ -0,0 +1,7 @@
local barrel_weight = settings.startup["barrel-weight-tweaker-barrel-weight-kg"].value * kg
for _, item in pairs(data.raw.item) do
if item.name:match("%-barrel$") then
item.weight = barrel_weight
end
end
+1
View File
@@ -0,0 +1 @@
data.raw.item["barrel"].weight = settings.startup["barrel-weight-tweaker-barrel-weight-kg"].value * kg
+11
View File
@@ -0,0 +1,11 @@
{
"name": "BarrelWeightTweaker",
"version": "0.2.0",
"title": "Barrel Weight Tweaker",
"author": "ddidderr",
"description": "Makes the weight of barrels configurable for rocket capacity tuning. (default 1 kg)",
"factorio_version": "2.0",
"dependencies": [
"base >= 2.0"
]
}
+5
View File
@@ -0,0 +1,5 @@
[mod-setting-name]
barrel-weight-tweaker-barrel-weight-kg=Barrel weight
[mod-setting-description]
barrel-weight-tweaker-barrel-weight-kg=Weight in kg for any kind of barrels. Higher values reduce how many barrels fit in a rocket.
+11
View File
@@ -0,0 +1,11 @@
data:extend({
{
type = "double-setting",
name = "barrel-weight-tweaker-barrel-weight-kg",
setting_type = "startup",
default_value = 1,
minimum_value = 0,
maximum_value = 10000,
order = "a"
}
})