
GetOffMyLawn
Strictly server-side Valheim 1.0 mod - no client install ever. Active wards keep wild creatures (and raids) out of your base, and doors inside wards close themselves.🚫 Get Off My Lawn
The guard stone hummed, and the builders from the next valley turned away, their hammers unswung. The troll did not turn away. The troll did not know what a guard stone was. The troll walked through the open gate and sat on the mead table. That was the last time.
Your wards finally keep the greydwarfs out.
A vanilla ward stops other players from building and using things inside it. It does nothing about the troll walking through the gate. Get Off My Lawn makes every active player ward a creature barrier, and closes the doors people leave open.
It runs entirely on the dedicated server, working on the world's raw data, so Steam, Xbox, PlayFab and crossplay parties all get it with nothing installed on their side. No client install, ever. The server does the work.
Set how far the barrier reaches, and let the dome shimmer for all to see.
| You | It |
|---|---|
Set WardRadius |
sets the barrier's reach in metres; 32 m by default, exactly a vanilla guard stone. 0 uses each ward's own radius |
Switch on AlwaysVisible |
active wards pulse their shield dome over and over, so it stays in sight |
| Leave the pulse at 1.3 s | the pulses overlap into an undulating shimmer wave instead of spaced flickers |
| Watch a creature get bounced | the dome flashes at once, and the periodic pulse restarts so the two never double up |
🔹 The reach also sets which doors auto-close inside the perimeter · 🔹 RadiusBonus still adds metres on top
| If… | Then… | |
|---|---|---|
| 🖥️ | you are a player | install nothing. This mod lives on the server only. |
| ⛔ | your server is older than Valheim 1.0 | it will not work. It is built and boot-tested against the current Valheim 1.0 dedicated server. |
| 🧊 | a creature gets bounced | it is frozen and cannot be hit for a moment (the hand-back delay, 0.75 s by default). |
| 🧱 | you change WardRadius |
it moves the creature barrier and the door perimeter, not build protection: players without client mods are still stopped from building at the game's own 32 m. |
| 📖 | you are about to report "it moved the creature back inside" | read How it works under chapter I first. |
Wild creatures inside an active ward are put back outside, or removed.
| ↩️ Bounce (default) | a creature found inside is put back just outside the edge. Walk in, get pushed out; one that keeps charging is bounced every scan |
| 💀 Despawn | the creature is removed the moment it is inside |
| ⚖️ Escalation (optional) | bounced too many times in a set window, it is despawned: for the wolf pack that will not take the hint |
| 🏹 Raids | blocked by default: an active ward keeps the raid out of the base. Switch it off to let raids behave as vanilla |
| 🐺 Never touched | tamed creatures, a creature whose taming has begun (your wolf in the warded pen stays put), player summons, training dummies, and anything on the exclusion lists. Bosses are left alone by default |
| ⛰️ Height limit | a hilltop ward does not police the cave below it |
Every switched-on player ward counts: the vanilla guard stone, and any modded ward built on the vanilla PrivateArea component with the player faction. Only active wards count, exactly like vanilla build protection. Faction wards (the dvergr ones) stay vanilla.
📖 Read the saga — how it works, and what to expect
A dedicated server instantiates nothing near players. Wards, doors and creatures exist there only as ZDO records owned by whichever client is simulating them, and a creature's AI runs only on that client. There is no server hook into a creature's movement. What the server can do is correct the ZDO, and doing that safely is the whole trick:
- Every scan, the server reads the ZDOs around each connected player straight from ZDOMan's sector table, and sorts them into active wards, closable doors and creatures by prefab.
- To move a creature (or close a door) it takes ownership of the ZDO for
OwnershipHandBackDelayseconds, jumps the ZDO's data revision past everything the owning client still has in flight (otherwise the client rejects the write as stale, and its own in-flight packets undo the claim), writes the correction, then hands ownership back. The client's own ZSyncTransform snaps the creature to the corrected position the frame it becomes owner again. - A vanilla ownership sweep that would grab the object back mid-correction is held off by a one-line Harmony guard on
ZDO.SetOwner, for held objects only.
Consequences worth knowing:
- A bounced creature is frozen and cannot be hit for the hand-back delay (0.75 s by default).
- A bounce is a teleport of a few metres, not a wall. With the default 0.3 s scan, a running troll gets roughly one stride inside the edge before it is put back. Lower
ScanIntervalfor a tighter line. - The exit height is the world's base terrain (the server has no heightmaps). On heavily raised ground a bounced creature can land a little above or below the surface, and drop or pop.
- On a player-hosted world the host's own creatures are moved directly; remote players' creatures go through the same ownership path as on a dedicated server.
How the ward radius works:
- 32 m by default matches vanilla's
guard_stone, so the creature barrier lines up with your build boundary out of the box. - Set
WardRadiusto any radius (50 m, 100 m) or add margin withRadiusBonus.WardRadius = 0falls back to each ward prefab's own radius. - With
OnlyInsideWards = true, the same radius decides which doors are auto-closed. - Because the mod is strictly server-side, this radius governs all creature detection, bouncing, despawning and door enforcement. Vanilla build protection is checked on each client against the game's own files (32 m), so players without client mods are still stopped from building at 32 m.
The door somebody left open closes itself.
| 🚪 Inside an active ward | a door or gate open longer than 10 s (by default) closes itself |
| 🧍 Someone in the doorway | it waits until nobody is within a few metres |
| 🌍 Everywhere | OnlyInsideWards = false makes it a global auto-close for every door near a player, warded or not |
| 🛡️ Left alone | key doors and one-way dungeon doors, always; drawbridges and window shutters by default |
Players see the ward at work.
| ⚡ Reactive flash | every bounce or despawn flashes the ward's shield dome; throttled per ward so repeated hits do not strobe |
| 🌊 Continuous shimmer (off by default) | active wards pulse their dome periodically so it stays visible |
📖 Read the saga — why nobody needs to install anything to see it
The shimmer is the game's own: the same shield effect vanilla shows when a player is denied building in someone else's ward. Get Off My Lawn triggers the vanilla PrivateArea FlashShield RPC straight from the dedicated server. Nothing is installed on any client, vanilla clients see the dome naturally, and only players close enough to have that ward loaded receive it.
A reactive flash resets the periodic pulse timer, so the two never double up.
First ten minutes: put GetOffMyLawn.dll in the server's BepInEx/plugins/ → start the server → edit BepInEx/config/wubarrk.getoffmylawn.cfg → save; the running server picks it up within 5 seconds.
There are no keys and no commands: the server reads its config file, live.
🛠️ Tighten the line
Lower ScanInterval (seconds between scans, 0.3 by default): creatures get less far in before they are bounced. Raise BounceMargin to land them farther outside the edge.
🐺 Deal with the wolf pack that will not take the hint
Set DespawnAfterBounces above 0: a creature bounced that many times within BounceWindowSeconds is despawned. Or set Mode = Despawn to remove every intruder at once.
🦌 Let something in
IncludeAnimals = false lets deer, hares and other AnimalAI creatures wander in. IncludeEventCreatures = false lets raids behave as vanilla. Add a creature's prefab name to ExcludedPrefabs (comma-separated), or a Character.Faction name to ExcludedFactions.
🚪 Keep a door open
Add its prefab name to ExcludedDoorPrefabs. Or switch the whole feature off with Enabled under 3 - Auto Close Doors.
| Works with vanilla players | Needs it on the server | Needs it on both ends |
|---|---|---|
| everything: Steam, Xbox, PlayFab and crossplay | everything | nothing |
✅ No version matching. Players never carry it, so there is nothing to keep in step. Update the server and you are done.
| ⛔ Servers older than Valheim 1.0 | Not compatible. |
| Modded wards | Covered when they use the vanilla PrivateArea component with the player faction. |
| Faction wards (the dvergr ones) | Stay vanilla. |
| Modded drawbridges | Morkhalla_Drawbridge is on the default door exclusion list, next to the vanilla drawbridges and window shutters. |
BepInEx/config/wubarrk.getoffmylawn.cfg on the server, created on first boot. Edits are picked up on the running server within 5 seconds, with no restart. There are no player settings.
🔒 Server — the only place it runs
| Section | Setting | Default | What it does |
|---|---|---|---|
| 1 - General | Enabled |
true |
master switch |
| 1 - General | VerboseLogging |
false |
per-event log lines; off = a 5-minute summary when anything happened |
| 1 - General | ScanInterval |
0.3 |
seconds between scans; lower = creatures get less far in |
| 1 - General | OwnershipHandBackDelay |
0.75 |
how long the server holds a corrected object before the client resumes it |
| 2 - Creature Blocking | Enabled |
true |
|
| 2 - Creature Blocking | Mode |
Bounce |
Bounce or Despawn |
| 2 - Creature Blocking | WardRadius |
32 |
barrier radius in metres (32 matches vanilla; 0 = each prefab's own) |
| 2 - Creature Blocking | RadiusBonus |
0 |
extra metres on top of WardRadius |
| 2 - Creature Blocking | BounceMargin |
2 |
how far outside the edge a bounced creature lands |
| 2 - Creature Blocking | MaxVerticalDistance |
30 |
0 = ignore height, like vanilla |
| 2 - Creature Blocking | IncludeAnimals |
true |
deer, hares and other AnimalAI creatures |
| 2 - Creature Blocking | IncludeBosses |
false |
|
| 2 - Creature Blocking | IncludeEventCreatures |
true |
raid creatures |
| 2 - Creature Blocking | SkipTamingInProgress |
true |
leave creatures being tamed alone |
| 2 - Creature Blocking | ExcludedFactions |
Players,PlayerSpawned,TrainingDummy |
Character.Faction names |
| 2 - Creature Blocking | ExcludedPrefabs |
(empty) | creature prefab names, comma-separated |
| 2 - Creature Blocking | DespawnAfterBounces |
0 |
0 = bounce forever |
| 2 - Creature Blocking | BounceWindowSeconds |
60 |
the window DespawnAfterBounces counts in |
| 3 - Auto Close Doors | Enabled |
true |
|
| 3 - Auto Close Doors | Delay |
10 |
seconds a door may stay open |
| 3 - Auto Close Doors | PlayerClearance |
3 |
never shut a door on someone this close (metres) |
| 3 - Auto Close Doors | OnlyInsideWards |
true |
false = every door near a player |
| 3 - Auto Close Doors | ExcludedDoorPrefabs |
piece_drawbridge,piece_drawbridge_log,Morkhalla_Drawbridge,wood_window |
never auto-closed |
| 4 - Visible Shield | Enabled |
true |
master switch for the shield effects |
| 4 - Visible Shield | AlwaysVisible |
false |
keep active ward shields visible with periodic pulses |
| 4 - Visible Shield | AlwaysVisibleInterval |
1.3 |
seconds between pulses (1.2–1.4 s overlap into a wave) |
| 4 - Visible Shield | MinInterval |
1.5 |
minimum seconds between reactive flashes on one ward |
Needs: BepInExPack Valheim 5.4.2360 or later, on the server. Nothing on clients. Install with a mod manager, or unzip into the server's BepInEx/plugins.
Made by Wubarrk — ravenirongames.com. Bug reports welcome on Discord.