[0.18.19] Hidden deconstructable chest

Place to get help with not working mods / modding interface.
Post Reply
User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 181
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

[0.18.19] Hidden deconstructable chest

Post by moon69 »

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?

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    
    },
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?

Post Reply

Return to “Modding help”