Giter Club home page Giter Club logo

vs-additionalspawnconstraints's Introduction

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 Thalius for testing help.

vs-additionalspawnconstraints's People

Contributors

zach2039 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.