Allow zombie spawn in custom world

Discussion in 'Plugin Development' started by gregleboss23, Jun 26, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    gregleboss23

    Hello, I try to spawn zombie in custom world :
    Code:
    WorldCreator options = new WorldCreator("world_in_progress");
    m_worldGame = Bukkit.createWorld(options);
    m_worldGame.setDifficulty(Difficulty.HARD);
    m_worldGame.setMonsterSpawnLimit(250);
    
    m_worldGame.spawnEntity(spawner, EntityType.ZOMBIE);
    There is no error / exception, but no zombie spawned :(
    And I cannot spawn zombie in game (by eggs) ...

    Thanks for help :)
     
  2. Then there is probably a cancelled CreatureSpawnEvent, make sure you have it not cancelled.
     
  3. Offline

    gregleboss23

    Is that ! ^^
    Thank you and sorry for this post ...
     
Thread Status:
Not open for further replies.

Share This Page