ItemPrototype::spoil_bar_visible

thesixthroc
Fast Inserter
Fast Inserter
Posts: 156
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: 690
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: 499
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: 16825
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: 294
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: 16825
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: 294
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
thesixthroc
Fast Inserter
Fast Inserter
Posts: 156
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

Re: ItemPrototype::spoil_bar_visible

Post by thesixthroc »

Reopening this with a new request: Would it be difficult to add one or more further booleans which hide the spoil bar inside inventories (including the cursor)? This is a less common use case, but creative modders will find uses for it.
Bilka
Factorio Staff
Factorio Staff
Posts: 3760
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: ItemPrototype::spoil_bar_visible

Post by Bilka »

Please make a new thread, we don't reopen requests.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
thesixthroc
Fast Inserter
Fast Inserter
Posts: 156
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

Re: ItemPrototype::spoil_bar_visible

Post by thesixthroc »

Post Reply

Return to “Implemented mod requests”