Can I make a chest where slots can be filtered?

Place to get help with not working mods / modding interface.
Post Reply
mrvn
Smart Inserter
Smart Inserter
Posts: 5686
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Can I make a chest where slots can be filtered?

Post by mrvn »

In a cargo wagon I can set a filter for every slot and then only that item can be placed in that slot.

Can I make a chest that has the same filter option or do I have to make a proxy object that turns into a cargo wagon on a rail?

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2632
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: Can I make a chest where slots can be filtered?

Post by steinio »

A car and tank have also filtered slots.
Abuse the prototypes for your needs.
Image

Transport Belt Repair Man

View unread Posts

mrvn
Smart Inserter
Smart Inserter
Posts: 5686
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Can I make a chest where slots can be filtered?

Post by mrvn »

But car and tank then blink with out of fuel. Unless I set them to some infinite fuel source. But then they can drive around so set speed to zero?

It would really be much cleaner if the standard container prototype had a flag to allow filters.

PFQNiet
Filter Inserter
Filter Inserter
Posts: 289
Joined: Sat Sep 05, 2020 7:48 pm
Contact:

Re: Can I make a chest where slots can be filtered?

Post by PFQNiet »

Set `render_no_power_icon = false` on the vehicle's burner prototype.

While it might feel "dirty", a lot of great mods are entirely made based on this "use prototypes for things they weren't necessarily intended for."

mrvn
Smart Inserter
Smart Inserter
Posts: 5686
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Can I make a chest where slots can be filtered?

Post by mrvn »

Afaik a car has some UPS overhead and I'm thinking of having A LOT of those filtered chests. But needs must when the Devil drives.

Post Reply

Return to “Modding help”