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.
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.
| Date uploaded | 2 weeks ago |
| Version | 0.3.3 |
| Download link | Wubarrk-GetOffMyLawn-0.3.3.zip |
| Downloads | 122 |
| Dependency string | Wubarrk-GetOffMyLawn-0.3.3 |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2360README
π« 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.
CHANGELOG
Changelog
0.3.4
Added
- Nothing spawns inside an active ward (
NoSpawnInsideWards, on). A wild creature a player's game spawns inside a switched-on ward (spawn system, creature spawners, raids) is removed the moment it reaches the server, instead of being bounced out at the gate. The bounce filters apply: tamed creatures (newborns and hatched chicks are tamed from birth), creatures being tamed, bosses, summons and excluded prefabs are never touched; raids followIncludeEventCreatures. Works on a dedicated server, where every spawn arrives from a player's game. - The trespass whisper (new section
5 - Trespass Notice:Enabledon,CooldownSeconds300,FlashShieldon). When a player who is neither the ward's builder nor on its permitted list walks into an active ward, the owner (if online) gets a whisper in game chat naming them and the ward's spot, and the ward flashes. Once per visit, then not again for the cooldown. It is vanilla's own whisper, sent under the owner's own platform id: a client prints a chat line only for a sender it knows, and a made-up "server" sender is silently dropped.
Fixed
- Bounced creatures landed at the wrong height. A creature kept the height it had inside the ward, corrected only to be no lower than the world generator's base height, which ignores terraforming and is off by metres at biome borders. On a hill or a raised base that dropped creatures from the air or buried them. The exit is now measured on the ground the players see (the game's own terrain recipe, terraforming included, shared with TortalPortal Lite): walkers land on it, serpents stay on the water, flyers keep their height above the ground.
- The bounce always went straight out from the ward centre, which could end in the sea, in a neighbour's wall or against a rock. It now tries the straight line first, then angles around the ward (20 degree steps) for dry, lava-free ground clear of building pieces, trees, logs and rocks. If no angle passes, the straight-line spot is used with the height corrected, so a bounce never fails where it used to work.
- Wards just outside the scanned area were missed. Wards were only collected from the sectors players simulate, but a ward centred one sector further out still reaches up to 32 m into them, and creatures in that strip walked in unbounced. Wards are now also read from one ring wider (cached every 2 s).
Changed
- The 5-minute summary also counts stopped spawns and trespass notices.
- Checked against Valheim 1.0.30 and 1.0.31: builds clean against the 1.0.31 server, and the ownership hold still rests on
unchanged vanilla behaviour (the data-revision ordering in
ZDOMan.RPC_ZDOData,ReleaseNearbyZDOS, the became-owner snap inZSyncTransform). A headless 1.0.31 server boot loads it with no errors. - The store page is rebuilt to README schema v3.1, and the package carries
GetOffMyLawn.pdb(matching the DLL). - (0.3.3 was published on Thunderstore on 2026-11-13 with no record in this source; 0.3.4 supersedes it.)
0.3.2
Changed
- Rebuilt and checked against Valheim 1.0.21 (network version 41) and re-verified: a static reference check against both the client and dedicated-server assemblies, and a headless dedicated-server boot. No source changes were needed: 1.0.21 touched none of the ZDO, ZDOMan, ZNetScene or door code this mod relies on.
- Website link moved to https://www.rossgilsonlabs.dev.
- Needs BepInExPack Valheim 5.4.2360.
0.3.1
Changed
- Rebuilt against Valheim 1.0.16 (client build 25527674 / dedicated server build 25527701, network
version 40, unchanged from 1.0.15) and re-verified: a static reference check against both the client
and dedicated-server assemblies, and a headless 1.0.16 dedicated-server boot. No source changes were
needed for compatibility β 1.0.16 removed only
ObjectDB.GetAllFoodItems()andButtonSfx.Start(), and this mod calls neither. - Dropped stale references to a specific past Valheim patch (Steam build id, versioned-decompile
citation) from the csproj, README and
OwnershipHold.cs; they now read version-agnostically ("Valheim 1.0", "vanilla ZDOMan.RPC_ZDOData") since the mod targets whatever the current 1.0.x dedicated server is rather than one pinned patch.
0.3.0
Added
- Configurable ward radius. Added
WardRadiusto[2 - Creature Blocking]with a 32m default matching vanilla guard stones (set to0to use each prefab's native radius). Governs creature barrier reach and door auto-close perimeter.RadiusBonuscontinues to work on top. - Continuous shield shimmer pulse option. Added
AlwaysVisible(defaultfalse) andAlwaysVisibleInterval(default1.3s) to[4 - Visible Shield]. Tightened the default pulse timer to 1.3s so when enabled, overlapping pulses create an undulating shimmer wave rather than spaced flickers.
Fixed
- Independent reactive flash and periodic pulse throttles. Creature bounces flash immediately while automatically resetting the periodic shimmer timer, avoiding double-shimmer artifacts.
- Shield scan gate. Wards now update visual shield presence whenever
AlwaysVisibleis active even if creature blocking and auto-door closing are both disabled.
0.2.1
Changed
- Startup log line no longer pins a Valheim patch version. The
Starting GetOffMyLawn v<version>...line read "built for Valheim 1.0.7", which had gone stale now that the mod is confirmed working unchanged through 1.0.12 (seeMIGRATE-1.0.md). It now reads "built for Valheim 1.0+".
0.2.0
Added
- Visible shield. An active ward now flashes its own vanilla shield effect - the same shimmer the
game shows when a player is denied building in someone else's ward - every time it bounces or despawns
a creature. This reuses
PrivateArea's existing networkedFlashShieldeffect; nothing new is installed on any client, and only players close enough to have that ward loaded ever see it. New4 - Visible Shieldconfig section:Enabled(default on) andMinInterval(default 1.5s, minimum seconds between flashes on the same ward so a creature repeatedly charging one edge doesn't spam it).
0.1.0
Added
- Creature blocking for active wards. Any wild creature found inside a switched-on player ward is
teleported back to just outside the ward's edge (
Mode = Bounce, default) or removed (Mode = Despawn). Tamed creatures, creatures being tamed, bosses (configurable), player summons and anything on the configurable faction/prefab exclusion lists are left alone. Raid creatures are blocked by default (IncludeEventCreatures). Optional escalation: a creature bouncedDespawnAfterBouncestimes insideBounceWindowSecondsis despawned. - Auto-closing doors. A door or gate standing inside an active ward that stays open longer than
Delay(default 10s) closes itself, unless a player is withinPlayerClearancemetres of it.OnlyInsideWards = falseextends it to every door near a player. Drawbridges and window shutters are excluded by default (ExcludedDoorPrefabs); key doors and one-way dungeon doors are never touched. - Live config reload. Edits to the cfg on a running server are picked up within 5 seconds.
How it works (read this before reporting "it moved the creature back inside")
- Vanilla wards are pure client logic; a dedicated server has no ward, door or creature instances at all,
only ZDO data owned by clients. This mod scans the ZDOs around every connected player from the server's
own sector table, and corrects a creature or door by briefly taking ownership of its ZDO, jumping the
ZDO's data revision past everything the owning client still has in flight, writing the correction, and
handing ownership back a moment later so the client's own ZSyncTransform snaps the object to the new
position. The
OwnershipHandBackDelay(default 0.75s) is the window in which the corrected creature is frozen and cannot be hit. - Every fact this relies on was read from the Valheim 1.0.7 dedicated-server decompile (ZDOMan.RPC_ZDOData, ZDOMan.ReleaseNearbyZDOS, ZSyncTransform.OwnerSync/ClientSync, Door.UpdateState, PrivateArea.IsInside).