Skip to content
Brian Rivas edited this page Oct 16, 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
    • spawns : Array - SpawnPotential

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 : true) (set to false to disable roguelike equipment)
    • "meta" : Object (optional) (NBTCompound - custom mob nbt data)
    • "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