Skip to content
Brian Rivas edited this page Oct 17, 2017 · 18 revisions

Spawner Setting

A spawner setting maps spawn potentials to a spawner type. Spawn potentials are embedded into the vanilla spawner NBT data.

Structure

  • Object
    • type : String - SpawnerType
    • potentials : Array - SpawnPotential
    • weight : Integer - weighted random chance for this spawner replacement. (default: 1)

SpawnerType

SpawnerType refers to a set of enum constants defined in Roguelike Dungeons:

CREEPER, CAVESPIDER, SPIDER, SKELETON, ZOMBIE, SILVERFISH, ENDERMAN, WITCH, LAVASLIME, BLAZE, SLIME, PIGZOMBIE

SpawnPotential (Object)

A weighted spawn potential is a possible mob to be generated by a spawner.

Strucure

  • Object
    • name : String (required) (MobIDString)
    • equip : boolean (optional - default : false) (set to false to disable procedural equipment)
    • nbt : String - nbt tag for mob to spawn
    • weight : Integer (optional - default : 1)

MobIDStrings

The simplest way to test what's a valid MobIdString is to go into the game and type /summon <mobid> ~0 ~1 ~0 where <mobid> is the ID you want to test.

A list of vanilla MobIDStrings can be found here

Clone this wiki locally