Difference between revisions of "Better Spawner/Spawn Condition"
From Pixelmon Wiki
(Created Spawn Condition page) |
m (Improved a few things in clarity) |
||
Line 9: | Line 9: | ||
|- | |- | ||
|style="text-align:center"|<code>"times"</code> | |style="text-align:center"|<code>"times"</code> | ||
− | |style="text-align:center"|List of any of the following: <code>ANY</code>,<code>DAWN</code>,<code>MORNING</code>,<code>DAY</code>,<code>MIDDAY</code>,<code>AFTERNOON</code>,<code>DUSK</code>,<code>NIGHT</code>,<code>MIDNIGHT</code>. | + | |style="text-align:center"|List of any of the following: <code>"ANY"</code>,<code>"DAWN"</code>,<code>"MORNING"</code>,<code>"DAY"</code>,<code>"MIDDAY"</code>,<code>"AFTERNOON"</code>,<code>"DUSK"</code>,<code>"NIGHT"</code>,<code>"MIDNIGHT"</code>. |
|style="text-align:center"|The times of the day that the entity may spawn. | |style="text-align:center"|The times of the day that the entity may spawn. | ||
|- | |- | ||
|style="text-align:center"|<code>"weathers"</code> | |style="text-align:center"|<code>"weathers"</code> | ||
− | |style="text-align:center"|List of any of the following: <code>CLEAR</code>,<code>RAIN</code>,<code>STORM</code>. | + | |style="text-align:center"|List of any of the following: <code>"CLEAR"</code>,<code>"RAIN"</code>,<code>"STORM"</code>. |
|style="text-align:center"|The weather types which the entity may spawn in. Note that having <code>RAIN</code> will also allow spawning during a storm. Also note that in a cold biome, <code>RAIN</code> and <code>STORM</code> will be snow and snowstorm respectively. | |style="text-align:center"|The weather types which the entity may spawn in. Note that having <code>RAIN</code> will also allow spawning during a storm. Also note that in a cold biome, <code>RAIN</code> and <code>STORM</code> will be snow and snowstorm respectively. | ||
|- | |- | ||
|style="text-align:center"|<code>"stringBiomes"</code> | |style="text-align:center"|<code>"stringBiomes"</code> | ||
− | |style="text-align:center"|List of any number of Biome IDs, e.g. <code>redwood_taiga_hills</code>. | + | |style="text-align:center"|List of any number of Biome IDs, e.g. <code>"redwood_taiga_hills"</code>. |
|style="text-align:center"|All the biomes that the entity may spawn in. This supports modded biomes from mods such as ''Biomes O' Plenty''. | |style="text-align:center"|All the biomes that the entity may spawn in. This supports modded biomes from mods such as ''Biomes O' Plenty''. | ||
|- | |- | ||
|style="text-align:center"|<code>"stringLocationTypes"</code> | |style="text-align:center"|<code>"stringLocationTypes"</code> | ||
− | |style="text-align:center"|List of any number of [[Better_Spawner/Location_Type]] names | + | |style="text-align:center"|List of any number of [[Better_Spawner/Location_Type]] names inside quotes. |
|style="text-align:center"|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. | |style="text-align:center"|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. | ||
|- | |- |
Revision as of 05:29, 9 January 2018
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" .
|
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. |
"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. |
"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.