Increasing Mob Spawn Rate?

Discussion in 'Plugin Development' started by LusciousPear, Jun 20, 2011.

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

    LusciousPear

    Hola amigos,

    We're running a truly "survival" event, but with 10+ players on at any time, it's pretty easy to survive.

    We'd love to greatly increase the rate at which mobs spawn. There's one mod that claims to do this, but it seems kinda buggy and interferes with other plugins.

    Where's the relevant code in Bukkit?
     
  2. Offline

    NathanWolf

    Have you tried out the new Crowd Control plugin by @WinSock? It's only a couple of weeks old, but I think it's stabilizing and can do what you're asking.
     
  3. Offline

    LusciousPear

    Yeah, I tried it out ... the bugs in it were pretty severe, and documentation is sparse.
     
  4. Offline

    LusciousPear

    Any other amigos have thoughts on this? Is there a line of code somewhere in Bukkit proper I could change to increase the spawn rate?
     
  5. Offline

    SwearWord

    I was just about to start working on this again.

    onEnititySpawn -> get mob type -> spawn x more next to original

    Problem I had before was spawning the mob would trigger entity spawn again and for some reason tracking the spawned mobs didn't work. HOWEVER with the new RB they added spawn reason to the event so you can have it check against that so it doesn't go into an infinite loop.

    Do it quick so I don't have to :p
     
  6. Offline

    LusciousPear

    I'm not seeing an onEntitySpawn event. I must be nuts, am I missing something?
     
  7. Offline

    WinSock

    Its onCreatureSpawn, and you can try my mod again if you wish. I don't know what version you tried but so far I have had no bugs with version 0.26.02 and simplified the commands and better documentation on the wiki. Or if you prefer you can hook into my new mod API and make it what you want it to do.
     
Thread Status:
Not open for further replies.

Share This Page