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

From Pixelmon Wiki
Revision as of 06:09, 4 June 2018 by Hiroku (talk | contribs) (grammar tweak)
Error: <seo> tag must contain at least one non-empty attribute.
Logo.png

The Better Spawner is a new entity spawning system introduced in Pixelmon 6.0.0. It is capable of handling item, Pixelmon NPC, and Pokémon spawning, but can be expanded to handle any kind of entity. All information on what entities spawn and where is backed by JSON files. These can be modified from, by default, pixelmon/spawning/ if the Pixelmon Config has useExternalJSONFilesSpawning enabled. The directory the external JSONs will load from can be modified in the Pixelmon Config.

Many more options for the Better Spawner exist in the Better Spawner config.

Specific types of SpawnInfos have extra properties.

For "typeID" = "pokemon":

Property label Type of value Description
"spec" A Pokémon Spec in its JSON form. The Pokémon Spec representation of the Pokémon to spawn. This might just contain the name, or any other of the options.
"minLevel" Positive integer. The lowest level the Pokémon may spawn at. This option is ignored if the Pokémon Spec option specifies the level.
"maxLevel" Positive integer. The highest level the Pokémon may spawn at. This option is ignored if the Pokémon Spec option specifies the level.
"spawnSpecificShinyRate" Optional positive integer, including 0. The shiny rate denominator specific to this spawn. For example, if one desired a 1% chance of a shiny for a spawn, this field would be 100 to represent a 1/100 chance.

For "typeID" = "npc":

Property label Type of value Description
"npcType" Any of the following: "Trainer","ChattingNPC","Relearner","Tutor","Trader","Shopkeeper","NurseJoy". The type of NPC to spawn. The properties of the NPC will be generated automatically.
  • NPC spawning is likely to change to support much more specific properties.


For "typeID" = "item":

Property label Type of value Description
"itemID" Item ID, e.g. "minecraft:string", "pixelmon:rare_candy". The ID of the item to spawn.
"minQuantity" Positive integer. The smallest number of the item to spawn. If the same as maxQuantity, it will always spawn this amount.
"maxQuantity" Positive integer. The smallest number of the item to spawn. If the same as minQuantity, it will always spawn this amount.
"meta" An optional integer The meta value of the item. This is used to differentiate, for example, andesite and granite from simple stone.
"nbt" An optional NBT tag compound in JSON form. Any NBT data for the item stack. This might contain display name, lore, enchantments, etc.

A SpawnSet is a grouping of one or more SpawnInfos along with a small number of properties.

© 2012 - 2025 Pixelmon Mod