Hostile mobs disappearing on calling spawnCreature()

Discussion in 'Plugin Development' started by Schwarzer Zylinder, Jan 2, 2012.

Thread Status:
Not open for further replies.
  1. Hey,
    for my plugin I want to spawn creatures (mainly hostiles) in the world.
    For this I use the following code:
    Code:
    this.creature = (Creature) location.getWorld().spawnCreature(location, creatureType);
    If I spawn non-hostile mobs like pigs or chickens it works fine, but if I try it with creepers, zombies or other hostile mobs they disappear instantly, even at night.

    What can I do? I really need hostile mobs for this.
     
  2. Offline

    Wolf7115

    Do you have hostile mobs disabled in your server config?
     
  3. Oh man, you saved me from hours of useless debugging! :D
     
  4. Offline

    Wolf7115

    Sometimes it's just the simple things ;)
     
Thread Status:
Not open for further replies.

Share This Page