Page 1 of 1

ItemPrototype::spoil_bar_visible

Posted: Fri Mar 13, 2026 7:05 am
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.

Re: ItemPrototype::spoil_bar_visible

Posted: Fri Mar 13, 2026 1:10 pm
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 :)

Re: ItemPrototype::spoil_bar_visible

Posted: Fri Mar 13, 2026 5:13 pm
by protocol_1903
+1

Re: ItemPrototype::spoil_bar_visible

Posted: Sat Mar 14, 2026 2:01 pm
by Rseding91
For 2.1 I've added ItemPrototypeFlags hide-health-bar-in-world, and hide-spoilage-bar-in-world.