Mods / The Nightwatcher

Category: #Creatures #QoL #Utility
Author: Buggi
Side: Both
Created: Nov 16th 2021 at 6:29 AM
Last modified: Feb 16th at 10:30 PM
Downloads: 7622
Follow Unfollow 94

Latest file for v1.19.3: 1-click install

Once placed the Nightwatcher prevents Drifters from spawning in a radius around it. He does not affect animals.

The radius is configurable, look for the file "watcher_config.json" in the ModConfig directory once you load the game once with the mod. Default radius is 64.

v1.6 MAJOR FEATURE - Now can block ANY entity as long as you put the code part in the config.

"BlockCodes" is an array that defaults to this:
"BlockCodes": [

All you need to do is add/remove the first code part of the entity you wish to block with the Nightwatcher. 
This will still respect "BlockDuringStorm" and shut down all entity blocking during a Temporal Storm if this is false.


IMPORTANT NOTE: The Nightwatcher, while an able and hearty helper can't overcome Temporal Storms. The effect on spawns is DISABLED during such storms (configurable).

You may catch him looking around once in awhile, don't be alarmed, he remains steadfast in his duties.

Crafting requires a temporal gear, a straw dummy, and gold plate. So not an early game option.

As always, my YouTube channel is dedicated to moddable games and VS is just plain fun to mod and play. 
Check out my channel here:

I'm always on the lookout for mod ideas.
Support me if you want via Patreon:

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.7.0 311 Feb 16th at 10:30 PM Show Install now
v1.6.0 252 Feb 5th at 6:14 PM Show Install now
v1.5.0 1274 Aug 28th 2023 at 4:24 PM Show Install now
v1.4.0 1618 Apr 10th 2023 at 9:11 PM Show Install now
v1.3.0 1468 Aug 31st 2022 at 8:13 PM Show Install now
v1.2.0 1975 Jan 11th 2022 at 3:49 AM Show Install now
v1.1.0 432 Nov 17th 2021 at 6:51 PM Show Install now
v1.0.0 292 Nov 16th 2021 at 6:30 AM Show Install now

20 Comments (oldest first | newest first)

💬 BuggiAuthor, Feb 19th at 6:51 PM


"Assembly with same name is already loaded" kind of gives it away there. Did you not delete the old version?  The game does cache some data so that might be the issue.

And it'll only create the config file if the file is missing. This is purely base-game modding API I'm using, nothing special. watcher_config.json is the filename it creates.

💬 RikeiR, Feb 18th at 2:37 AM
💬 Kara, Feb 17th at 12:09 AM

16.2.2024 19:05:04 [Error] [nightwatcher] An exception was thrown when trying to load assembly:
16.2.2024 19:05:04 [Error] [nightwatcher] Exception: Assembly with same name is already loaded
at System.Runtime.Loader.AssemblyLoadContext.g____PInvoke|5_0(IntPtr ptrNativeAssemblyBinder, UInt16* ilPath, UInt16* niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Vintagestory.Common.ModAssemblyLoader.LoadFrom(String path) in VintagestoryLib\Common\API\ModAssemblyLoader.cs:line 34
at Vintagestory.Common.ModContainer.<>c__DisplayClass35_0.b__0(String path) in VintagestoryLib\Common\API\ModContainer.cs:line 449
at System.Linq.Enumerable.SelectListIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.ToList()
at Vintagestory.Common.ModContainer.LoadAssembly(ModCompilationContext compilationContext, ModAssemblyLoader loader) in VintagestoryLib\Common\API\ModContainer.cs:line 448

It also appears to not be creating a config file via single player. 

Edit: by deleting ALLL of my moddata files, it seems to have fixed this issue. that being said, im not sure which file was for your mod and deleting them all on a server is not an option =P. 

💬 BuggiAuthor, Feb 16th at 10:30 PM

Thanks for reporting the issue! All should be fixed now! <3

💬 BuggiAuthor, Feb 16th at 9:21 PM

Will investigate! Thanks for reporting!

💬 Kara, Feb 8th at 12:52 AM

ASkeleton Our server is experiancing the same issue. i think we are going to revert back to v1.5.0 (1.18.5) as it worked just fine in 1.19. Buggi

💬 ASkeleton, Feb 7th at 4:44 AM

It doesn't seem to be stopping the drifters from spawning at all. Am I missing something?

💬 Kara, Feb 5th at 6:23 PM

Instantly downloading this, for our server <3. love everything you do =D

💬 BuggiAuthor, Feb 5th at 6:14 PM

Just Updated:

MAJOR FEATURE - Now can block ANY entity as long as you put the code part in the config.

"BlockCodes" is an array that defaults to this:
"BlockCodes": [

All you need to do is add/remove the first code part of the entity you wish to block with the Nightwatcher. 
This will still respect "BlockDuringStorm" and shut down all entity blocking during a Temporal Storm if this is false.

💬 Mendall, Feb 2nd at 12:34 AM

anyone know if this is working in 1.19?


💬 BuggiAuthor, Aug 28th 2023 at 4:24 PM

Many thanks for the help fixing this! I've been extremely busy the last couple months so fell behind on updating all these.

💬 Kara, Aug 10th 2023 at 9:48 PM

on version 1.18.8 Fixed Fixed this little guy, on version 1.18.8 

Open most updated > assets > game > shapes > Entity > Edit the nightwatcher.json file inside. replace the Textures into with what is provided. some of the directed texture's were changed for the strawdummy in vanilla. if the mod dev ever see's this, You are welcome. 

    "textures": {
        "gold": "game:item/resource/plate/gold",
        "face": "game:block/hay/strawdummy/face",
        "tinbronze": "game:entity/humanoid/serapharmor/scale/tinbronze",
        "agedwood": "game:block/hay/strawdummy/agedwood",
        "bamboo-side": "game:block/hay/bamboo-side",
        "bamboo-top": "game:block/hay/bamboo-top"
💬 SecretFoxfire, May 29th 2023 at 6:25 PM

Thank you so much for this mod. Fair and balanced (gold is so hard to find!) but also really necessary for making areas habitable in the long-term.

I have noticed that the texture is broken on 1.18.5 though. It looks fine while carrying it around but once placed the poor thing's face is a question mark 😅

💬 BuggiAuthor, Apr 10th 2023 at 9:14 PM

Updated to 1.18, and yes, now can prevent bear spawns.

💬 BuggiAuthor, Mar 30th 2023 at 6:12 PM

Now there's bears? Do they really spawn frequently enough to justify adding them?

💬 Kara, Mar 20th 2023 at 6:53 AM

able to add bears? xD
would do it myself, but im not sure how to code yet D=

💬 BuggiAuthor, Aug 31st 2022 at 8:14 PM

Updated to 1.17

Added config option for Blocking Wolves
Added config option for Blocking Drifters (So you can JUST block wolves if you want)..
Added config option to control blocking of drifters during temporal storms.

💬 Fank, Apr 15th 2022 at 6:30 PM

How about a nightwatcher addon that disables wolf spawns?

💬 BuggiAuthor, Nov 16th 2021 at 6:20 PM

While it could be done, you can already tweak the radius by editing the watcher_config.json. I didn't want to be able to craft this too early as the early game should be harder.

💬 Polraudio, Nov 16th 2021 at 4:33 PM

Very Nice! This is almost the exact mod i was looking for. Dont suppose you could make different tiers?

Does a 32 block area.

Does a 64 block area.

Does a 128 block area.

Does a 256 block area.

Steel, Gold and Temporal Gears:
Does a 512 block area.

(edit comment delete)