-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Lean's edited this page Jul 1, 2024
·
9 revisions
You can check all spawners configurations here
To create a custom spawner you can check the Template area this is a fully mod creating a simple spawner
- Instanciate the spawner configuration using the Vintage Story patch json system by creating a file in /assets/customspawner/patches/spawnersapi-blocktypes-spawners.json
[
{
"op": "add",
"path": "/variantgroups/0/states/-",
"value": "drifter-normal-customspawner",
"file": "spawnersapi:blocktypes/spawner.json"
}
]
- Create the configuration for the spawner in /assets/spawnersapi/config/drifter-normal-customspawner.json, OBS: the name of the configuration needs to be the SAME as the patch value from previously step
{
"torchWillDisableSpawn": true,
"spawnOnlyInGround": false,
"spawnOnlyWith2Heights": false,
"droppable": false,
"entitiesToSpawn": [
"game:drifter-normal"
],
"lightLevel1": 0,
"lightLevel2": 5,
"lightLevel3": 10,
"lightLevel4": 15,
"maxSpawnedEntities": 20,
"maxEntitiesSpawnAtOnce": 4,
"xSpawnMaxDistance": 4,
"ySpawnMaxDistance": 2,
"zSpawnMaxDistance": 4,
"xPlayerDistanceToSpawn": 16,
"yPlayerDistanceToSpawn": 16,
"zPlayerDistanceToSpawn": 16,
"maxChancesToFindAValidBlockToSpawn": 15,
"spawnerDrops": [],
"extendedLogs": false
}
- Finally create the translation in /assets/spawnersapi/lang/en.json
{
"spawnersapi:block-spawner-drifter-normal-customspawner": "Drifter Spawner Custom"
}