Better Spawner/Spawn Condition
From Pixelmon Wiki
A SpawnCondition
is the most important component of the Better Spawner system.
The properties of a SpawnCondition
are as follows:
Property label | Type of value | Description |
---|---|---|
"times"
|
List of any of the following: "ANY" ,"DAWN" ,"MORNING" ,"DAY" ,"MIDDAY" ,"AFTERNOON" ,"DUSK" ,"NIGHT" ,"MIDNIGHT" .
|
The times of the day that the entity may spawn. |
"weathers"
|
List of any of the following: "CLEAR" ,"RAIN" ,"STORM" .
|
The weather types which the entity may spawn in. Note that having RAIN will also allow spawning during a storm. Also note that in a cold biome, RAIN and STORM will be snow and snowstorm respectively.
|
"stringBiomes"
|
List of any number of Biome IDs, e.g. "redwood_taiga_hills" or "any" .
|
All the biomes that the entity may spawn in. This supports modded biomes from mods such as Biomes O' Plenty. |
"stringLocationTypes"
|
List of any number of Better_Spawner/Location_Type names inside quotes. | The possible locations the entity may spawn. A location only needs to satisfy one of these to spawn, and in the case of Pokémon spawning, the AI of the Pokémon may depend on the location. |
"worlds"
|
List of text | The names of the worlds in which the entity may spawn. |
"minX"
|
Integer | The smallest x world coordinate that the entity may spawn at. |
"maxX"
|
Integer | The largest x world coordinate that the entity may spawn at. |
"minY"
|
Integer | The smallest y world coordinate that the entity may spawn at. |
"maxY"
|
Integer | The largest y world coordinate that the entity may spawn at. |
"minZ"
|
Integer | The smallest z world coordinate that the entity may spawn at. |
"maxZ"
|
Integer | The largest z world coordinate than the entity may spawn at. |
"seesSky"
|
Optional true/false | Whether the sky must be visible or must not be visible for the entity to spawn. Not including this option means it does not care whether it can or not. |
"moonPhase"
|
Integer from 0 to 7 | The specific moon phase index for the entity to spawn. 0 represents a full moon. |
"minLightLevel"
|
Integer from 0 to 15 | The minimum level of light for the entity to spawn. |
"maxLightLevel"
|
Integer from 0 to 15 | The maximum level of light for the entity to spawn. |
Note that with the exceptions of location and world times, all properties of a SpawnCondition
are optional. If added as an anticondition
to a SpawnInfo
, passing the anticondition will prevent the spawn.