Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
InfiniteItemBatteryMod
All battery-powered items never run out. Toggle on/off via in-game UI or hotkey (default F6). Host-side — only host needs this mod.
By Meone101201
CHANGELOG
Changelog
v1.0.0 (2026-05-29)
Added
- Initial release
- Enabled toggle: enable or disable via in-game REPOConfig UI (ON/OFF selector)
- Hotkey: configurable key (default F6) to toggle mod on/off in real-time
- HUD overlay: displays current state on screen for 2.5 seconds after toggling, with fade-out
- Green
♾ Infinite Battery: ON - Red
⬜ Infinite Battery: OFF
- Green
- RemoveFullBar block: prevents all battery bar removal on any item
- AutoDrain block: prevents continuous battery drain in Update loop
- Drain block: prevents Drain() calls from reducing battery
Technical
- Targets:
ItemBattery.RemoveFullBar(Prefix),ItemBattery.Update(Postfix),ItemBattery.Drain(Prefix) - Hotkey uses
stringconfig entry parsed toUnityEngine.KeyCodeat runtime - HUD rendered via
OnGUIwith shadow layer and alpha fade - Affects all items using
ItemBatterycomponent - Host-side: battery state syncs to all clients via Photon RPC