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 Info/Pokémon

From Pixelmon Wiki

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.

© 2014 - 2020 Pixelmon Mod