Skip to content
Lean's edited this page Jul 1, 2024 · 9 revisions

Configurations

You can check all spawners configurations here

Creating Custom Spawner

To create a custom spawner you can check the Template area this is a fully mod creating a simple spawner

Step by Step

[
  {
    "op": "add",
    "path": "/variantgroups/0/states/-",
    "value": "drifter-normal-customspawner",
    "file": "spawnersapi:blocktypes/spawner.json"
  }
]
{
    "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
}
{
	"spawnersapi:block-spawner-drifter-normal-customspawner": "Drifter Spawner Custom"
}
Clone this wiki locally