Back to mods
Additional Spawn Constraints project artwork

Vintage Story Mod DB · Vintage Story mod

Additional Spawn Constraints

Additional Spawn Constraints A server-side dependency mod that allows JSON mods and patching to control various spawn conditions; does nothing on its own! Overview AdditionalSpawnConstraints will look for an additionalSpawnConstraints object inside an entit

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

Quick answer

Which Additional Spawn Constraints release matches 1.21.2-rc.3?

Updated 7 months ago
Best match for your filters 1.1.1
Game version 1.21.0, 1.21.1, 1.21.2-rc.1
Loader Built-in Vintage Story mod system

Additional Spawn Constraints 1.1.1 targets 1.21.0, 1.21.1, 1.21.2-rc.1. It must be installed on the client. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

Is Additional Spawn Constraints required on the client, server, or both?

It must be installed on the client. Installation on the dedicated server is optional.

Client Required
Dedicated server Optional
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 release supports both sides, but the source does not require it on the server.

What else does Additional Spawn Constraints 1.1.1 need?

1.1.1 on 1.21.2-rc.3. Every mod below is checked against that same setup.

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 Additional Spawn Constraints without breaking your instance.

Built for Additional Spawn Constraints 1.1.1 on 1.21.2-rc.3. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.1.1. It targets 1.21.0, 1.21.1, 1.21.2-rc.1; 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

    It must be installed on the client. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

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

About this project

What does Additional Spawn Constraints add?

Additional Spawn Constraints

A server-side dependency mod that allows JSON mods and patching to control various spawn conditions; does nothing on its own!

Overview

AdditionalSpawnConstraints will look for an additionalSpawnConstraints object inside an entity's /attributes object. This can be included on new entity JSON files, or patched in via JSON.

An example for some properties is below, applied via a patch to drifter.json:

[
	{
		"side": "Server",
		"file": "game:entities/land/drifter.json",
		"op": "addmerge",
		"path": "/attributes/additionalSpawnConstraints",
		"value": {
			"changeTemporalStormSpawnMechanics": true,
			"canSpawnOn":[
				"game:sand-*",
				"game:gravel-*",
				"game:dirtygravel",
				"game:sludgygravel",
				"game:muddygravel",
				"game:soil-*",
				"game:forestfloor-*",
				"game:peat-*",
				"game:rock-*",
				"game:crackedrock-*",
				"game:regolith-*",
				"game:ore-gem-*",
				"game:ore-graded-*",
				"game:ore-ungraded-*"
			]
		}
	}
]
 

The properties that can be set within additionalSpawnConstraints are:

  • "minRegionStability" : The minimum region stablity required when spawning the entity; does not take into account rifts nor rift proximity.

  • "maxRegionStability" : The maximum region stablity required when spawning the entity; does not take into account rifts nor rift proximity.

  • "canSpawnOn" : A list of block codes that are valid for spawning the entity on; supports globs and regex to handle variants.

  • "cannotSpawnOn" : A list of block codes that are not valid for spawning the entity on; supports globs and regex to handle variants.

  • "changeTemporalStormSpawnMechanics" : Determines if other properties can affect temporal storm spawning, where applicable; default is false if unspecified. Does not apply to "minRegionStability" or "maxRegionStability". Only affects entities that are spawned during storms.

 

Future Plans

  • Properties related to health scaling on spawn.

 

Known Issues

  • None, atm.

 

Mods That Use This

  • Natural Spawns : Limits drifters to spawning on soil and other natural blocks, even during storms.

 

Extras

  • Thanks to ClementColmerauer for patch crash fix.
  • Thanks to Thalius for testing help.

Project description from Vintage Story Mod DB.

Pick your setup

Additional Spawn Constraints releases for each Vintage Story version.

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

19 available setups

Showing the newest 12 of 19 game versions. Older files are in the list below.

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

Recent files

Additional Spawn Constraints versions and loaders

1 of 4 releases match
Clear filters

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