Difference between revisions of "Better Spawner/Spawn Info/Pokémon"
From Pixelmon Wiki
m (minor) |
(New spec format weee) |
||
Line 9: | Line 9: | ||
|- | |- | ||
|style="text-align:center"|<code>"spec"</code> | |style="text-align:center"|<code>"spec"</code> | ||
− | |style="text-align:center"|A [[PokémonSpec]] in JSON form. | + | |style="text-align:center"|A [[PokémonSpec]] in text or JSON form. |
|style="text-align:center"|The [[PokémonSpec]] representing the properties of the Pokémon to spawn. This cannot be left out. | |style="text-align:center"|The [[PokémonSpec]] representing the properties of the Pokémon to spawn. This cannot be left out. | ||
|- | |- | ||
|style="text-align:center"|<code>"specs"</code> | |style="text-align:center"|<code>"specs"</code> | ||
− | |style="text-align:center"|List of [[PokémonSpec]] in JSON form. | + | |style="text-align:center"|List of [[PokémonSpec]] in text or JSON form. |
|style="text-align:center"|All the possible [[PokémonSpec]]'s that could be selected. This is only used when <code>"spec"</code> is not specified. When a spawn is about to occur, it will randomly select one of these. Note that this will bypass any global spawning conditions that relate to the Pokémon itself. | |style="text-align:center"|All the possible [[PokémonSpec]]'s that could be selected. This is only used when <code>"spec"</code> is not specified. When a spawn is about to occur, it will randomly select one of these. Note that this will bypass any global spawning conditions that relate to the Pokémon itself. | ||
|- | |- | ||
Line 49: | Line 49: | ||
"Land" | "Land" | ||
], | ], | ||
− | "spec | + | "spec": "Kyurem lvl:70 s untradeable", |
− | |||
− | |||
− | |||
− | |||
− | |||
"spawnSpecificPokerusRate": 5, | "spawnSpecificPokerusRate": 5, | ||
"heldItems": [ | "heldItems": [ |
Latest revision as of 22:13, 24 November 2019
SpawnInfoPokemon are SpawnInfo specifically for spawning Pokémon.
These are the properties available when a SpawnInfo has "typeID": "pokemon"
:
Property label | Type of value | Description |
---|---|---|
"spec"
|
A PokémonSpec in text or JSON form. | The PokémonSpec representing the properties of the Pokémon to spawn. This cannot be left out. |
"specs"
|
List of PokémonSpec in text or JSON form. | All the possible PokémonSpec's that could be selected. This is only used when "spec" is not specified. When a spawn is about to occur, it will randomly select one of these. Note that this will bypass any global spawning conditions that relate to the Pokémon itself.
|
"minLevel"
|
A positive integer between 1 and 100. | The minimum level at which the Pokémon might spawn. |
"maxLevel"
|
A positive integer between 1 and 100. | The maximum level at which the Pokémon might spawn. |
"spawnSpecificShinyRate"
|
A decimal number. | This Pokémon's shiny rate in the same format as the shiny rate in the Pixelmon config. That is, 1 divided by this number is the chance of it being shiny. If this value is 1 , this Pokémon is guaranteed to be shiny.
|
"spawnSpecificBossRate"
|
A decimal number. | This Pokémon's boss rate in the same format as the boss rate in the Pixelmon config. That is, 1 divided by this number is the chance of it being a boss. If this value is 1 , this Pokémon is guaranteed to be a boss.
|
"spawnSpecificPokerusRate"
|
A decimal number. | This Pokémon's Pokérus rate in the same format as the Pokérus rate in the Pixelmon config. That is, 1 divided by this number is the chance of it being infected with Pokérus. If this value is 1 , this Pokémon is guaranteed to have Pokérus.
|
"heldItems"
|
List of JSON Item Stacks | The possible held items this Pokémon could hold when it spawns. The "percentChance" property of these stacks is absolutely needed in this context.
|
Example:
{ "typeID": "pokemon", "stringLocationTypes": [ "Land" ], "spec": "Kyurem lvl:70 s untradeable", "spawnSpecificPokerusRate": 5, "heldItems": [ { "itemID": "pixelmon:dna_splicers", "percentChance": 50 }, { "itemID": "pixelmon:razor_fang", "percentChance": 25, "nbt": "{display:{Name:"The Ouch Fang",Lore:["This hurts"]}}" } ], "condition": { "stringBiomes": [ "freezing" ] }, "rarity": 3 }
This will be a shiny, untradeable Kyurem at level 70. It will have Pokérus 1 in 5 spawns, and a held item 75% of the time.