Merging Chests

by Atria

Enables merging of multiple chests into one entity. Supports merging of arbitrary number of chests (configurable in mod settings). Version 5.0.0 introduced potentially breaking changes for old saves. If your have chests larger than 42 don't update to 5.0.0.

Content
a month ago
0.13 - 1.1
98.8K
Storage

i DyWorld chest support

2 years ago

DyWorld has hidden the regular chests, wood/iron/steel, and in their place created small-storage-1 / small-storage-2 / small-storage-3

2 years ago
(updated 2 years ago)

init-settings.lua

if MergingChests.CheckMod("DyWorld-Dynamics") then
    MergingChests.MergableChestIdToData["small-storage"] = {
        id = "small-storage",
        name = "Wood Storage Chest",
        type = "wood",
        additional_properties = {
            icon = "__base__/graphics/entity/wooden-chest/wooden-chest.png",
            icon_size = 32
        }
    }
    MergingChests.MergableChestIdToData["small-storage-2"] = {
        id = "small-storage-2",
        name = "Iron Storage Chest",
        type = "iron",
        additional_properties = {
            icon = "__base__/graphics/entity/iron-chest/iron-chest.png",
            icon_size = 32
        }
    }
    MergingChests.MergableChestIdToData["small-storage-3"] = {
        id = "small-storage-3",
        name = "Steel Storage Chest",
        type = "steel",
        additional_properties = {
            icon = "__base__/graphics/entity/steel-chest/steel-chest.png",
            icon_size = 32
        }
    }
end

init.lua

MergingChests.AreaChests = {
    ["small-storage"] = true,
    ["small-storage-2"] = true,
    ["small-storage-3"] = true,
    ["wooden-chest"] = true,
    ["iron-chest"] = true,
    ["steel-chest"] = true,
    ["brass-chest"] = true,
    ["titanium-chest"] = true
}
2 years ago

Thank you very much for the prepared code. I'll add it to the mod as soon as I figure out how to even find those chests in the game with DyWorld...there is a lot of stuff :D

2 years ago

no problem

2 years ago

Included in 3.5.0 version

New response