In partnership with NodeCraft Logo NodeCraft

From Pixelmon Wiki

The Better Spawner Config is a special config located at ./config/pixelmon/BetterSpawnerConfig.json. It is used for more advanced configuration of the Better Spawner's behaviour.

To modify this config, you must have useBetterSpawnerConfig set to true in the Pixelmon Hocon.

Properties:


"globalCompositeCondition"

The global composite condition is a composite condition that is applied to all SpawnInfo of all types. There are many applications for this, such as creating areas where nothing can spawn, or making particular dimensions only spawn entities during a full moon, to name just two. As an example, the following is how to do both of the above:

"globalCompositeCondition": {
    "conditions": [
        {
            "dimensions": [
                0
            ]
        },
        {
	    "dimensions": [
	        1
	    ],
	    "moonPhase": 0
	}
    ],
    "anticonditions": [
        {
	    "minX": 50,
	    "maxX": 120,
	    "minZ": 0,
	    "maxZ": 200,
	    "dimensions": [
	        0
	    ]
	}
    ]
},

By default the global composite condition will be a simple restriction such that spawning only occurs in the Overworld.


"intervalSeconds"

The interval seconds are used to guarantee particular kinds of spawns cannot happen too often in a window of time. A SpawnInfo might have the property "interval": "legendary", in which case when it is about to spawn it will stop if another entity with that interval has spawned recently. This property is to specify how long "recently" is. To make legendary Pokémon spawn at least 2 hours apart, the following could be used for the interval seconds property (noting that 7200 seconds is 2 hours):

"intervalSeconds": {
    "legendary": 7200
},

The interval restriction affects everything that uses the Better Spawner.


"blockCategories"

The block categories are a type of category used for several LocationTypes and in the baseBlocks and neededNearbyBlocks properties of SpawnConditions. More on categories can be read here.


"biomeCategories"

The biome categories are a type of category used in the stringBiomes property of SpawnConditions and in world generation in one special case. The "all forests" biome category is the only one strictly necessary as Hidden Grotto world generation checks this category to know where to generate these. More on categories can be read here.

© 2014 - 2019 Pixelmon Mod