Back to mods

Vintage Story Mod DB · Vintage Story mod

C&N Spawn Conditions

Server-side spawn control for Vintage Story Controls where and when mobs may spawn: a kill-based zone limiter that stops overhunted areas from respawning the same mob types, a safe radius around players that keeps hostile mobs from spawning on top of them, an

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which C&N Spawn Conditions release should I use?

Updated 18 days ago
Latest stable file 1.3.1
Game version 1.22.7
Loader Built-in Vintage Story mod system

C&N Spawn Conditions 1.3.1 targets 1.22.7. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.

Where it goes

Is C&N Spawn Conditions required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Built-in Vintage Story mod system
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This Vintage Story file is marked server-only.

What else does C&N Spawn Conditions 1.3.1 need?

1.3.1. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add C&N Spawn Conditions without breaking your instance.

Built for C&N Spawn Conditions 1.3.1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.3.1. It targets 1.22.7; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.3.1. It opens that exact file at the source.

About this project

What does C&N Spawn Conditions add?

Server-side spawn control for Vintage Story

Controls where and when mobs may spawn: a kill-based zone limiter that stops overhunted areas from respawning the same mob types, a safe radius around players that keeps hostile mobs from spawning on top of them, and per-group rules for time of day, season, height and population. All entity groups are matched by regex, so there are no hardcoded lists.

New in 1.3.0: the admin GUI is rebuilt on the vanilla game GUI, and VSImGui is no longer required. The GUI is translated into English and Russian. Also new: spawn rules per group, hourly recovery, a zone layer on the world map, an event log and /csc chat commands for dedicated server consoles.

Features

  • Kill tracker: the world is divided into square zones. Each kill of a tracked mob is recorded for its zone; once the count reaches the group's threshold, that group stops spawning in that zone. By default only kills by a player count (arrows included), so drowned mobs and mobs killed by other mobs don't use up the limit.
  • Safe zone around players: hostile mobs cannot spawn within a configurable radius of any online player. By default the distance is measured horizontally only, so caves deep below a player are not blocked.
  • Spawn rules per group: allow a group only at night or only by day, block it in chosen seasons, restrict it to a Y range, or cap how many of it may be alive in one zone.
  • Population recovery: kill counts shrink over time so areas recover. Two modes: Hourly (a small fraction every N in-game hours) or Yearly (a larger fraction once per in-game year).
  • Per-zone overrides: override the kill threshold for a single zone (e.g. make one spot harder or impossible to deplete).
  • World map layer: a heatmap of zones on the in-game map (M), from green (free) to red (depleted), with a tooltip showing the zone under the cursor. Visible to admins only.
  • Event log: config changes, admin actions, depleted zones and recovery runs are logged and kept across restarts.
  • Persistent data: kill counts are saved to the world file periodically and on normal shutdown.

The rules apply to natural spawning and world generation. Mobs spawned by hand (creature items, /entity spawn) are not limited.

Admin GUI

Press Ctrl+K in-game (requires the controlserver privilege). Changes apply without a server restart. Every tab has a short description at the top; the ? button in the header hides or shows them.

  • Status: live metrics and a filterable list of every entity code that currently matches one of your regex patterns.
  • Groups: everything about one regex group in one place. Pick a group on the left (flags show whether it is hostile and whether kills are tracked, plus its threshold) or add a new pattern; on the right set whether it is hostile, whether its kills are tracked, its kill threshold, time of day, blocked seasons, Y range and alive limit. You also see how many entities the pattern matches, so a typo is visible at once. Deleting a group takes two clicks and removes it from every config list.
  • Zones: filterable table of tracked zones with kill count, threshold and living mobs; select a zone to set or clear an override or clear its counter.
  • Map: a grid of zones around you for the selected group. Click a cell to select the zone and manage it. For the full map, use the world map layer.
  • Settings: radius, zone size, save interval, recovery mode and rate, night threshold and more. Values are typed into fields with the allowed range shown next to them, and every option has a description under it.
  • Log: the event log, newest first.
  • Actions: force save, apply recovery now, and clear all kill data (two-step confirmation).

Chat commands

All under /csc, require controlserver, and work from the dedicated server console.

  • /csc status: overall state
  • /csc here: your current zone and its counters
  • /csc zones [group] [limit]: list zones with counters
  • /csc zone <group> <x> <z>: details of one zone
  • /csc clear <group> [x] [z]: clear one zone, or the whole group
  • /csc threshold <group> <value>: set the group threshold
  • /csc override <group> <x> <z> <value> / /csc unoverride <group> <x> <z>: per-zone threshold
  • /csc regen: apply recovery now
  • /csc save / /csc reload: save data / re-read the config from disk
  • /csc log [count]: recent event log entries

Default thresholds

  • wolf-*: 8 kills per zone
  • hyena-*: 15 kills per zone
  • bear-*: 1 kill per zone
  • bell-*: 1 kill per zone
  • locust-corrupt-sawblade: 1 kill per zone

Configuration

Config is generated at ModConfig/canspawnconditions.json on first launch. Invalid values (e.g. a zone size of 0 or a broken regex) are corrected or dropped on load and reported in the server log.

About patterns: they are regular expressions matched anywhere in the entity code, not wildcards. wolf-* matches every code that contains wolf; use ^ and $ for an exact match. A group is identified by its exact pattern string: the threshold and rules of drifter-* must use drifter-*, not drifter. The Groups tab takes care of this for you.

  • Hostile_Entities: patterns of mobs blocked from spawning near players
  • HostileNoSpawnAreaAroundPlayer: radius in blocks around each online player (default: 24)
  • UseHorizontalDistanceOnly: measure that radius on X/Z only (default: true)
  • KilledCheckerEntitiesRegex: patterns of mobs whose kills are tracked
  • KilledEntityThreshold: kill count per zone after which that group stops spawning; applies only to groups whose kills are tracked
  • KilledCheckerZoneSize: side length in blocks of each zone (default: 1024)
  • CountOnlyPlayerKills: count only kills by players (default: true)
  • RegenMode: Hourly or Yearly (new configs: Hourly; configs from older versions keep Yearly)
  • RegenIntervalHours / RegenPercentPerInterval: Hourly mode, every 24 in-game hours remove 0.02 of each count (at least 1)
  • PercentOfKilledNumberToEraseEveryYear: Yearly mode, fraction removed each in-game year (default: 0.30)
  • GroupRules: per-group rules: Daytime (Any / OnlyNight / OnlyDay), BlockedSeasons (Spring, Summer, Fall, Winter), MinY, MaxY, MaxAliveInZone
  • NightDaylightThreshold: daylight level at or below which it counts as night (default: 0.4)
  • AliveCountRefreshSeconds: how often living mobs are recounted for MaxAliveInZone (default: 5)*
  • StoreCheckerDataEveryNSeconds: how often data is saved to the world file (default: 360)*
  • EventLogSize: number of event log entries kept (default: 200)

* Takes effect after a server restart.

Project description from Vintage Story Mod DB.

Pick your setup

C&N Spawn Conditions releases for each Vintage Story version.

Choose the version and loader you play, then open the matching release.

6 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

C&N Spawn Conditions versions and loaders

7 of 7 releases match

Looking for an older file? The official Vintage Story Mod DB project page is in Resources.