Spawning Difficulty

Discussion in 'Spigot Plugin Development' started by Bear53, Jun 8, 2016.

  1. Hello spigot! I am trying to spawn a custom villager entity via a command but since its in a worldguard region denying mob spawns is there another way to do this? Or is there something I can do with worldguard.
    The second part of my question is how could i detect entity despawn event so that I could keep the villager from being cleared by plugins or chunk unloading
  2. The unique thing you can do is allow mob-spawning I think.
  3. You can enable mob spawning and in CreatureSpawnEvent check what mob was spawned. If not villager - cancel the event