Page 1 of 1
Containers for certain item groups only
Posted: Sat Oct 20, 2018 9:55 am
by Trippelbob
TL;DR / What
Add an optional property to container entities to accept only certain items and/or item-groups.
Why
This would create the possibility for modders to create specific container entities like nuclear waste disposal zones or granaries and cold storage houses if a modder would want to add some sort of agriculture into the game (storing perishable items for ages in normal chests next to industrial goods just feels awkward for example). Because of the item group limitation, these specific containers could have a huge capacity making them lucrative compared to regular chests without being overpowered.
Re: Containers for certain item groups only
Posted: Sat Oct 20, 2018 2:51 pm
by steinio
Storage chests with set filter?
Re: Containers for certain item groups only
Posted: Sat Oct 20, 2018 5:07 pm
by Trippelbob
Yeah, it could be implemented as a non-changeable filter, just like fuel inventories only accept certain item types. Of course, you might also code a CPU-heavy Lua-based script that regularly throws out every other item. But that’s not quite appealing, isn’t it?
Re: Containers for certain item groups only
Posted: Tue Dec 04, 2018 10:15 pm
by Stragemque
Did you figure this out? I am adding colonists and want to limit a chest type entity to just allow that the colonists item group, similar to an ammo category. i.e colonist, injured-colonist, tierd-colonist etc.