Join our discord
In partnership with NodeCraft Logo NodeCraft


You are not logged in! Create an account or login to contribute! Log in here!

Better Spawner/Spawn Condition

From Pixelmon Wiki
Revision as of 18:27, 16 March 2018 by Xpand (talk | contribs)

A SpawnCondition is the most important component of the Better Spawner system, and tells the spawner when and where to spawn entities and what levels to give them.

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 RAIN also enables spawning during a storm, and that snow will also count as rain (and snowstorms as normal storms).
"stringBiomes" List of any number of biomes, using their ID name (such as "redwood_taiga_hills"). All the biomes that the entity may spawn in. Supports modded biomes from mods such as Biomes O' Plenty, and pre-made spawning groups.
"stringLocationTypes" List of any number of location types 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" Boolean (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.

© 2012 - 2025 Pixelmon Mod