Valheim
You are viewing a potentially older version of this package. View Latest Version
Install

Details

Date Uploaded
3 weeks ago
Downloads
1.4K
Size
142KB
Dependency string
DragonMotion-AutoCloseDoors-0.1.7
ADDatHost Valheim hosting
30% off!

AutoCloseDoors

Lightweight Valheim/BepInEx mod that closes opened doors and gates after a configurable delay, but only when no player is near the door. Autoclosing can be disabled inside dungeons/interiors and is disabled there by default.

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 through Valheim's normal UseDoor RPC so ownership, ZDO revision, animation, and close effects stay in sync.
  • Detects nearby linked/double doors on demand, only while processing an opened door.
  • Skips dungeons/interiors by default, with a config toggle to enable them.
  • Can block compatible monster-door sensor mods from opening doors for monsters.

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 from 2 to 10.
  • Block monster door sensors: prevents compatible door sensor mods from opening player doors for monsters. Enabled by default.

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.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.