ItemPrototype::spoil_bar_visible

thesixthroc
Fast Inserter
Fast Inserter
Posts: 152
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

ItemPrototype::spoil_bar_visible

Post by thesixthroc »

For items that spoil in a loop into each other, especially with short timers, when sitting on belts it can sometimes be visually noisy to have the spoil bar visible (when in alt mode). An API like this defaulting to true would allow modders to disable this behavior.

For this proposal I believe the behavior in inventory views should be unchanged.
Last edited by thesixthroc on Fri Mar 13, 2026 9:02 pm, edited 2 times in total.
Amarula
Filter Inserter
Filter Inserter
Posts: 688
Joined: Fri Apr 27, 2018 1:29 pm
Contact:

Re: ItemPrototype::spoil_bar_visible

Post by Amarula »

thesixthroc wrote: Fri Mar 13, 2026 7:05 am For items that spoil in a loop into each other, especially with short timers, when sitting on belts it can sometimes be visually noisy to have the spoil bar visible (when in alt mode). An API like this defaulting to true would allow modders to disable this behavior.
Or an option for players to disable the same way we can turn off inserter arrows in ALT mode :)
My own personal Factorio super-power - running out of power.
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 492
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: ItemPrototype::spoil_bar_visible

Post by protocol_1903 »

+1
pY and pYblock developer, wielder of fluid networks and subtick events in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903

Buy me a coffee
Rseding91
Factorio Staff
Factorio Staff
Posts: 16798
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: ItemPrototype::spoil_bar_visible

Post by Rseding91 »

For 2.1 I've added ItemPrototypeFlags hide-health-bar-in-world, and hide-spoilage-bar-in-world.
If you want to get ahold of me I'm almost always on Discord.
User avatar
Osmo
Filter Inserter
Filter Inserter
Posts: 291
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: ItemPrototype::spoil_bar_visible

Post by Osmo »

Rseding91 wrote: Sat Mar 14, 2026 2:01 pm For 2.1 I've added ItemPrototypeFlags hide-health-bar-in-world, and hide-spoilage-bar-in-world.
Can there also be one for ammo bar? For items whose main purpose isn't being ammo.
Or would that not be a thing similar to science packs? :)
Rseding91
Factorio Staff
Factorio Staff
Posts: 16798
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: ItemPrototype::spoil_bar_visible

Post by Rseding91 »

Ammo already doesn’t draw in world.
If you want to get ahold of me I'm almost always on Discord.
User avatar
Osmo
Filter Inserter
Filter Inserter
Posts: 291
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: ItemPrototype::spoil_bar_visible

Post by Osmo »

Oh right, it doesn't control drawing it in inventories. Sorry for the confusion
Post Reply

Return to “Implemented mod requests”