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.
ItemPrototype::spoil_bar_visible
-
thesixthroc
- Fast Inserter

- Posts: 152
- Joined: Wed Apr 29, 2020 9:53 pm
- Contact:
ItemPrototype::spoil_bar_visible
Last edited by thesixthroc on Fri Mar 13, 2026 9:02 pm, edited 2 times in total.
Re: ItemPrototype::spoil_bar_visible
Or an option for players to disable the same way we can turn off inserter arrows in ALT modethesixthroc 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.
My own personal Factorio super-power - running out of power.
- protocol_1903
- Filter Inserter

- Posts: 493
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
Re: ItemPrototype::spoil_bar_visible
+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
https://mods.factorio.com/user/protocol_1903
Buy me a coffee
Re: ItemPrototype::spoil_bar_visible
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.
Re: ItemPrototype::spoil_bar_visible
Can there also be one for ammo bar? For items whose main purpose isn't being ammo.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.
Or would that not be a thing similar to science packs?
Re: ItemPrototype::spoil_bar_visible
Ammo already doesn’t draw in world.
If you want to get ahold of me I'm almost always on Discord.
Re: ItemPrototype::spoil_bar_visible
Oh right, it doesn't control drawing it in inventories. Sorry for the confusion
