Merging Chests

by Atria

Enables merging of multiple chests into one entity. Supports merging of arbitrary number of chests (configurable in mod settings).

Content
a day ago
0.13 - 2.0
115K
Storage

i DyWorld chest support

3 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

3 years ago
(updated 3 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
}
3 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

3 years ago

no problem

3 years ago

Included in 3.5.0 version

New response