No-insert flag?
Posted: Sat Jan 21, 2017 12:27 pm
Is there a way to stop inserters from picking up a certain type of item, or a specific item-on-ground entity? I have a custom item-entity for dropped items and certain items that are only spawned with...
The goal is for only the player to be able to pick up these items.
Thanks.
Code: Select all
{
type = "item-entity",
name = "item-pickup-only",
flags = {"placeable-off-grid", "not-on-map", "not-blueprintable", "not-deconstructable"},
collision_box = {{-0.14, -0.14}, {0.14, 0.14}},
selection_box = {{-0.17, -0.17}, {0.17, 0.17}}
},
surface.create_entity({name='item-pickup-only', stack={name='some-item'}, ...)
Thanks.