Difference between revisions of "Better Spawner/Spawn Condition"
From Pixelmon Wiki
m (Name change, gonna roll with this.) |
(location types is no longer under this) |
||
Line 19: | Line 19: | ||
|style="text-align:center"|List of any number of biomes, using their [https://minecraft.gamepedia.com/Biome/ID ID name] (such as <code>"redwood_taiga_hills"</code>). | |style="text-align:center"|List of any number of biomes, using their [https://minecraft.gamepedia.com/Biome/ID ID name] (such as <code>"redwood_taiga_hills"</code>). | ||
|style="text-align:center"|All the biomes that the entity may spawn in. Supports modded biomes from mods such as ''Biomes O' Plenty'', and pre-made [[Better Spawner/Categories|categories]] containing multiple biomes or blocks to spawn on/in. | |style="text-align:center"|All the biomes that the entity may spawn in. Supports modded biomes from mods such as ''Biomes O' Plenty'', and pre-made [[Better Spawner/Categories|categories]] containing multiple biomes or blocks to spawn on/in. | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|style="text-align:center"|<code>"worlds"</code> | |style="text-align:center"|<code>"worlds"</code> |
Revision as of 20:03, 16 March 2018
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 categories containing multiple biomes or blocks to spawn on/in. |
"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.