Limited content container

Place to get help with not working mods / modding interface.
Prapor
Burner Inserter
Burner Inserter
Posts: 11
Joined: Fri Apr 22, 2016 7:38 pm
Contact:

Limited content container

Post by Prapor »

Is it possible to limit the types of items that can be put in a container? For example, logs and wood planks can't be put into chest and can put only into warehouse.
I know it can be done with scripts. For example, check every tick or less often the contents of the container and throw out everything that can't lie there. But I don't like this solution - it can cause a lot of lags on a large base.

I carefully figured out the prototype of the container, but I didn't seem to find any way to do it.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Limited content container

Post by DaveMcW »

Make your container type="car" to get filters. Then prevent players from changing the filter.

Another idea is to use type="assembling-machine" with a fixed-recipe that transfers input to output. Then give it a huge output inventory.
Post Reply

Return to “Modding help”