Skip to main content

Spawners Overview

Spawners allow you to automatically spawn mobs at specific locations or randomly around players.

Static Spawners

Place spawners at fixed coordinates that spawn mobs when players are nearby.

Configuration

Spawner files are located in plugins/btcMobs/Spawners/.
MySpawner:
  mob: ForestGuardian
  world: world
  location:
    x: 100
    y: 64
    z: 200
  interval: 30
  warmup: 5
  amount: 1-2
  max-active: 5
  radius: 32

Options

OptionTypeDescription
mobstringMob type to spawn
worldstringWorld name
locationobjectSpawn coordinates (x, y, z, yaw, pitch)
intervalnumberSeconds between spawns
warmupnumberInitial delay before first spawn
amountnumber/rangeMobs per spawn (e.g., 1-3)
max-activenumberMaximum alive mobs from this spawner
radiusnumberActivation range

Random Spawners

Spawn mobs randomly around players based on conditions.

Configuration

Random spawn files are in plugins/btcMobs/RandomSpawns/.
RandomZombie:
  mob: CustomZombie
  chance: 0.1
  interval: 60
  amount: 1-3
  spawn-radius: 32
  min-distance: 10
  max-nearby: 5
  worlds:
    - world
    - world_nether
  biomes:
    - forest
    - plains

Options

OptionTypeDescription
mobstringMob type to spawn
chancefloatSpawn probability (0.0-1.0)
intervalnumberCheck interval in seconds
amountnumber/rangeMobs per spawn
spawn-radiusnumberMax distance from player
min-distancenumberMin distance from player
max-nearbynumberMax of this type nearby
worldslistAllowed worlds
biomeslistAllowed biomes
regionslistWorldGuard regions (optional)

Conditions

Control when spawning occurs:
ConditionalSpawner:
  mob: NightCreature
  conditions:
    - time{time=night}
    - weather{weather=clear}
    - moon{phase=full}

Commands

CommandDescription
/btcmobs spawner create <name> <mob>Create a spawner
/btcmobs spawner remove <name>Remove a spawner
/btcmobs spawner listList all spawners