[0.18.19] Hidden deconstructable chest
Posted: Tue Apr 21, 2020 9:49 pm
I create_entity the below invisible chest, set_stack some items into it and can then order_deconstruction and the construction bots will happily empty then deconstruct it.
I can't figure out though how to hide the red X when I order_deconstruction - any suggestions?
One other oddity is if the chest entity doesn't have an item to create it, the chest gets created & filled but order_deconstruction appears to be ignored?
I can't figure out though how to hide the red X when I order_deconstruction - any suggestions?
Code: Select all
{
type = "container",
name = "hidden-return-chest",
icon = "__base__/graphics/icons/wooden-chest.png",
icon_size = 64, icon_mipmaps = 4,
flags = { "hide-alt-info", "hidden", "placeable-off-grid", "player-creation",
"not-blueprintable", "not-on-map", "not-flammable", "no-copy-paste",
"not-selectable-in-game", "not-upgradable", "not-rotatable"},
max_health = 100,
collision_box = {{0, 0}, {0, 0}},
selection_box = {{0, 0}, {0, 0}},
collision_mask = {"not-colliding-with-itself"},
inventory_size = 16,
picture = empty_sheet
},