Join our discord
In partnership with NodeCraft Logo NodeCraft


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

Difference between revisions of "Better Spawner/Spawn Set"

From Pixelmon Wiki
m (Link corrections)
m (Missed a bit)
 
Line 18: Line 18:
 
|style="text-align:center"|<code>"setSpecificPokerusRate"</code>
 
|style="text-align:center"|<code>"setSpecificPokerusRate"</code>
 
|style="text-align:center"|A decimal number greater than or equal to zero.
 
|style="text-align:center"|A decimal number greater than or equal to zero.
|style="text-align:center"|A [[Pokérus]] rate applied to any and all [[Better Spawner/Spawn Info/Pokémon]] in this set in the same format as the [[Pokérus]] rate in the [[Config|Pixelmon config]]. That is, 1 divided by this number is the chance of it being infected with Pokérus. If this value is <code>1</code>, the Pokémon in this set are guaranteed to have Pokérus.  
+
|style="text-align:center"|A [[Pokérus]] rate applied to any and all [[Better Spawner/Spawn Info/Pokémon|SpawnInfoPokemon]] in this set in the same format as the [[Pokérus]] rate in the [[Config|Pixelmon config]]. That is, 1 divided by this number is the chance of it being infected with Pokérus. If this value is <code>1</code>, the Pokémon in this set are guaranteed to have Pokérus.  
 
|-
 
|-
 
|style="text-align:center"|<code>"spawnInfos"</code>
 
|style="text-align:center"|<code>"spawnInfos"</code>

Latest revision as of 03:48, 5 June 2018

A Spawn Set is a grouping of SpawnInfo along with a few extra properties. The JSON files found when configuring spawns are all Spawn Sets.

The properties of a Spawn Set are:

Property label Type of value Description
"id" Text. The unique name of this set. It doesn't matter what the name is as long as it is unique to all other sets.
"setSpecificShinyRate" A decimal number greater than or equal to zero. A Pokémon shiny rate applied to any and all SpawnInfoPokemon in this set 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, the Pokémon in this set are guaranteed to be shiny.
"setSpecificPokerusRate" A decimal number greater than or equal to zero. A Pokérus rate applied to any and all SpawnInfoPokemon in this set 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, the Pokémon in this set are guaranteed to have Pokérus.
"spawnInfos" A list of SpawnInfo. All of the possible spawns inside of this set.

Example:

{
    "id": "Feebas Line Fishing",
    "spawnInfos": [
        {
            "spec": {
                "name": "Feebas"
            },
            "stringLocationTypes": [
                "Good Rod"
            ],
            "minLevel": 5,
            "maxLevel": 17,
            "typeID": "pokemon",
            "heldItems": [
                {
                    "itemID": "pixelmon:prism_scale",
                    "percentChance": 5
                }
            ],
            "anticondition": {
                "stringBiomes": [
                    "oceanic",
                    "frozen_ocean",
                    "beaches"
                ]
            },
            "rarity": 30
        },
        {
            "spec": {
                "name": "Milotic"
            },
            "stringLocationTypes": [
                "Super Rod"
            ],
            "minLevel": 40,
            "maxLevel": 53,
            "typeID": "pokemon",
            "anticondition": {
                "stringBiomes": [
                    "oceanic",
                    "frozen_ocean",
                    "beaches"
                ]
            },
            "rarity": 10
        }
    ]
}

© 2012 - 2025 Pixelmon Mod