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.
AutoCloseDoors
Lightweight automatic closing for Valheim doors, double doors, and gates.
By DragonMotion
| Date uploaded | 2 days ago |
| Version | 0.1.2 |
| Download link | DragonMotion-AutoCloseDoors-0.1.2.zip |
| Downloads | 0 |
| Dependency string | DragonMotion-AutoCloseDoors-0.1.2 |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.
Preferred version: 5.4.2202README
AutoCloseDoors
Lightweight Valheim/BepInEx mod that closes opened doors and gates after a configurable delay, but only when no player is near the door.
Behavior
- Tracks only doors that are currently open.
- Uses a coroutine that sleeps until the next tracked door is due; there is no per-frame
Update/tick patch. - Checks all players with Valheim's own
Player.IsPlayerInRange. - Closes by setting the door ZDO state to
0, so an already closed door is never toggled open by accident. - Detects nearby linked/double doors on demand, only while processing an opened door.
Config
Generated by BepInEx at:
BepInEx/config/obelisk.valheim.autoclosedoors.cfg
Options:
Enabled: enable/disable the mod.Enable in dungeons: enable/disable automatic closing inside dungeons/interiors. Disabled by default.Player radius: radius around each door leaf that keeps it open.Close delay seconds: delay before closing, clamped by config range from2to10.
Multiplayer
The mod uses Valheim networked door state (ZDO) and door ownership, so the close is replicated through the normal multiplayer state sync. Install it on the server and clients in a modded multiplayer setup for consistent behavior.
CHANGELOG
Changelog
0.1.4
- Added a lightweight compatibility guard that blocks monster door sensors from opening player doors for monsters.
0.1.3
- Updated Thunderstore package description and changelog for the dungeon/interior config.
0.1.2
- Added
Enable in dungeonsconfig. Autoclosing is disabled inside dungeons/interiors by default.
0.1.1
- Fixed Thunderstore/Gale package layout so files install directly into the package folder.
0.1.0
- Initial release.
- Added lightweight automatic closing for doors, double doors, and gates.
- Added configurable player radius and close delay.