Mobs spawning in unloaded chunks

Discussion in 'Bukkit Help' started by zipron, Jun 16, 2012.

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

    zipron

    I've been doing some tests on my server again with mob spawning behavior. As you all know, pressing F3 or shift F3 shows the debug menu with in that the amount of entities you're looking at and the total amount of entities in the world. An entity is a mob or a dropped item, a boat, minecart, arrow,...

    So on my server, I've configured the mob spawn limit (in bukkit.yml) to be 200 in stead of 70, and the ticks/mob spawn attempt 1 in stead of 20 I think. This because I want mobs to spawn more often and faster.

    Using the worldedit /butcher command, I can kill all mobs in a world and it tells me how many mobs are spawned, I always start with /butcher to test things to be sure no mobs are spawned.

    So what I noticed (this is not a bug I believe) is that the total entity counter only shows me the amount of entities around me, not the amount of total entities. Here is a quick example:
    Code:
    - E: 0/90
    /butcher
    killed 250 mobs
    
    pretty obvious that the entity counter doesn't show mobs in unloaded chunks, I tried this also by spawning a bunch of mobs, flying away and after a few chunks the amount dissapears from my entity counter. (I think this distance is the view-distance in the server.properties file, but I'm not sure)
    There is no problem with this at all, although I've seen some pretty strange spawning behavior when working with mob traps, sky spawners and stuff like that:
    Code:
    /butcher
    killed .... mobs
    *waiting at spawner, 25 entities spawn almost instantly*
    - E:30/90
    *waiting 5 minutes, spawn rates of my spawner are dropping to 0*
    *killed all the mobs, gather xp/loot*
    - E:0/90
    /butcher
    killed 250 enitties
    
    (these number are not exactly always the same, sometimes butcher kills 300 mobs, sometimes 200,..)
    However I'm the only one on the server when testing this, it seems that mobs start to spawn in chunks I am not within range of. I know mobs can spawn in a range of 128 blocks of you, however they seem to spawn somewhere else and fill up the mob limit. I have no idea where they are spawning, I looked in a 128 blocks radius for mobs, found 10 in total, which means more than 200 mobs (because /butcher only kills mobs) are spawned somewhere out of spawning range.

    Think this is a common issue, reading other people threads on the help forums. Now is there a way that this issue can be fixed/prevented? Is there a plugin? does anyone else has more information about it?

    I also tested this with the normal mob cap of 70 monsters, it's exactly the same issue.

    Zipron

    Anyone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  2. Offline

    Kane

    Simple, The chunks are not unloaded. There seems to be a bug in bukkit right now that does not close down all the chunks proper. It seems to have a bigger effect if you lower your view distance.
     
    zipron likes this.
  3. Offline

    zipron

    Ok wow... Thanks, That's indeed a very simple answer... Do you know if this bug will get fixed with 1.3? and if not, is there is plugin which can fix the problem? (or a known class that causes the issue so I can write it myself)

    Zip
     
  4. Offline

    Kane

    No I been looking for a plugin with a timer that shuts say all chunks down besides maybe 5 radius from the player on a timer but no luck.
     
  5. Offline

    zipron

    So is the unload() method bugged? or is it called incorrectly? if called incorrectly, there should be a way to link it to an event (playermove event?)
     
  6. Offline

    Kane

    I'm only guessing I'm not even a programmer. I was just hoping someone make a plugin to try to do another unload via a plugin at a certain time.
     
  7. Offline

    zipron

    I found a plugin which does it, hwoever it's outdated, the developer sais he's working on a 1.2.5 build, so I hope it will work soon..

    zip
     
  8. Offline

    Kane

    What plugin btw?
     
  9. Offline

    zipron

    it didn't work =(
     
Thread Status:
Not open for further replies.

Share This Page