Skip to content

SpawnMarker

← Back to Asset Types

Documentation for the SpawnMarker asset type.

Location

NPC/Spawn/Markers

Use in Your Files

Add this to your JSON files for IDE autocompletion and validation:

"$schema": "https://hytaledb.ginco.gg/schemas/SpawnMarker.schema.json"

Schema

Model stringnull

The optional visual representation to use in the world when in creative mode (this has a default value which can be specified using DefaultSpawnMarkerModel in the server config for the spawning plugin).

NPCs array

A weighted list of NPCs and their configurations.

Array items: SpawnConfiguration
ExclusionRadius number

A radius used to prevent a marker from spawning new NPCs if a player in adventure mode is within range.

Default:0
Min: 0
MaxDropHeight number

A maximum offset from the marker's position at which the mob can be spawned. Ground mobs are spawned directly on the ground, so if the marker is high in the air due to the building having been destroyed, if the distance between the marker and the ground is greater than this, the marker will not spawn mobs.

Default:4
Min (exclusive): 0
RealtimeRespawn boolean

Whether to use real time or game time for the respawn timer.

Default:false
ManualTrigger boolean

Indicates if the spawn marker has to be triggered manually or not.

Default:false
DeactivationDistance number

If no players are inside this range, the spawn marker will deactivate and store its NPCs once this distance is exceeded.

Default:40
Min (exclusive): 0
DeactivationTime number

The delay before deactivation happens when no players are in range.

Default:5
Min (exclusive): 0
All of
base