[ADMN] HeavenlyMob v0.3 - Limit or stop mob spawns by type, multi-world compatible [766]

Discussion in 'Inactive/Unsupported Plugins' started by ntwitch, May 5, 2011.

  1. Offline

    ntwitch

    HeavenlyMob
    v0.3
    Limit or stop mob spawns by type, multi-world compatible
    [766]

    Features:
    • Limits mob spawns by type. Can also disable individual mob spawns.
    Amounts are specified in config.yml and are configurable for each world.
    If not specified in the config file, defaults to -1 (no limit)
    To disable a mob type, just set the number to 0.
    • Removes specified mobs from chunks when they are unloaded
    Here is an example config.yml for:
    • A normal world ('world')with limited squids to reduce lag, limited creepers to reduce world damage, and NO EVIL SPY CHICKENS! Global limit: 100
    • A zombie survival world ('zombiesurvival') with only zombies!! and lots of them. Global limit: 100
    • A creative world ('creative') with no creepers, zombies, skeletons, spiders or slimes. Global limit:50
    • Remove squids and slimes on chunk unload (don't despawn normally)
    Sample config.yml (open)

    Code:
    world:
        global: 100
        limits:
            squid: 30
            creeper: 50
            chicken: 0
    zombiesurvival:
        global: 100
        limits:
            zombie: -1
            creeper: 0
            skeleton: 0
            spider: 0
            squid: 0
            wolf: 0
            cow: 0
            chicken: 0
            pig: 0
            sheep: 0
            slime: 0
    creative:
        global: 50
        limits:
            zombie: 0
            creeper: 0
            skeleton: 0
            spider: 0
            slime: 0
    unload:
    - CraftSquid
    - CraftSlime
    


    HeavenlyMob.jar
    HeavenlyMob @ Github

    Installation:
    1. Place the HeavenlyMob.jar into your plugins directory
    2. Start your server
    3. Edit the config.yml as desired
    4. Issue command: '/hm reload' to reload the config
    Permissions:
    • heavenlymob.reload - /hm reload command
    Known bugs:
    • Seems to allow slightly more than specified to spawn. Not sure why this is, but it never gets above 2 times your limit, so just adjust your amount down to compensate. Possibly fixed? Please post your experiences.
    • Due to the way I get the name of the mob type, you can't just put "squid" or "slime" or "ghast" in the unload section of the config.yml, it has to be the proper class name (CraftSquid...etc) Priority: [Low]
    • Uses too much CPU.. scans the list of entities too often. Will have to rewrite part to keep a persistent list. Priority: [High]
    Todo:
    • Ingame commands to adjust maximum numbers, kill all of one mob type, report on number of each type.
    Changelog:

    Version 0.1
    • First release
    Version 0.2
    • Auto-generate config.yml
    • Remove specified mobs when a chunk is unloaded
    Version 0.2.1
    • Fixed the auto-generation of config.yml
    • Fixed ConcurrentModificationException (at least, should be fixed. please report if this happens again)
    • Added '/hm reload' command
    Version 0.2.2
    • Fixed a typo that caused it to look for the wrong values in config.yml, causing it to.. not limit mobs at all.
    Version 0.3
    • Added global limit, tested for CB 766
     
    kadesexton, Soryo and thecoolwolf like this.
  2. Offline

    staxx6

    Yeah, plz update, it do nothing (no erros or something) on 860.
     
  3. i have 860 and the plugin run without errors... monsters are not spawning
    sry bad english
     
  4. Offline

    ledhead900

    @ntwitch

    I too get
    PHP:
    2011-07-01 18:39:09 [SEVERECould not pass event CREATURE_SPAWN to HeavenlyMob
    java
    .util.ConcurrentModificationException
    at java
    .util.ArrayList$Itr.checkForComodification(Unknown Source)
    at java.util.ArrayList$Itr.next(Unknown Source)
    at org.bukkit.craftbukkit.CraftWorld.getPlayers(CraftWorld.java:559)
    at net.blockheaven.ntwitch.heavenlymob.HeavenlyMobEntityListener.onCreatureSpawn(HeavenlyMobEntityListener.java:39)
    at org.bukkit.plugin.java.JavaPluginLoader$63.execute(JavaPluginLoader.java:684)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:234)
    at net.minecraft.server.World.addEntity(World.java:846)
    at org.bukkit.craftbukkit.CraftWorld.spawnCreature(CraftWorld.java:350)
    at com.bukkit.toasterktn.Dungeon.Generator.SpawnPoint.TrySpawn(SpawnPoint.java:35)
    at com.bukkit.toasterktn.Dungeon.Thread.SpawnThread.run(SpawnThread.java:49)
    at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    at java.lang.Thread.run(Unknown Source
    While I have the world included in the config for obviously Dungeons Plugin found http://forums.bukkit.org/threads/rp...5b-creates-a-world-of-dungeons-818-935.20167/

    I also noticed and was dissapointed that you had to have each of your worlds listed in the config otherwise mobs did not spawn I thought I only had to add worlds I wanted to control.
     
  5. Offline

    Kano

    Please, can you update it to the newest Bukkit Version? :)
     
  6. Offline

    Minecrafter9001

    REALLY nice mod, i will use this. But will it work for build 953?

    I'll see if it does

    I tested and it works for 1.7.2 servers.

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

    RobotGymnast

    Maybe use the "edit" button, champ.
     
  8. Offline

    SneakyTouchy

    This plugin hasn't been working for me since the new build. Not even on the levels that it used to work with. The config file is in place, the levels and values are specified and all spelled correctly... I'm not sure whats wrong. I tried to use caps sensitive, and all lower case as well. Nothing is spawning.

    I'm trying to keep the spawn levels low because when my server starts getting up towards 300, it starts lagging to a point where nobody can play. Limiting it to 200 has helped a LOT.

    never mind, something was wrong with the notepad++ i used to add the new levels, didn't leave real spaces between entries.

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

    ledhead900

    You were saying ^^ lol, I wonder how many comments get added to thier facebook pages just to fix a prev comment.
     
  10. Offline

    ray0911

    Great plugin! PLz-plz update
     
  11. Offline

    Brody Romhanyi

    does this still work even tho its out of date????
     
  12. Offline

    Brody Romhanyi

    does this work with the craftbukkit right now??? please ansewr back and also will zombies respawn ?
     
  13. Offline

    Niaghaman

    Hey, man. Can u update this? I like it and I wanna this up to date ;d
     
  14. Offline

    ledhead900

    This works fine with Craftbukkit even versions post 1000.

    What is fails at currently is working very well with multiworld server that have plugins like "Dungeons" creating custom scripted worlds.

    What I mean by this is you set the Max mob per world limit below standard minecraft it will throw errors, and if you don't add the world at all mobs don't spawn.
     
  15. Offline

    Clavus

    Running this in 1.8 (Creative) with everything on 0, but doesn't seem to stop mob spawning at all.
     
  16. Offline

    ledhead900

    This will need a fork for 1.8 and also some method designed to allow us to stop Persistent mob spawning. I don't think it will in 1.8 at its current state due the fact it would not have the required hooks for the new mobs, or maybe even the changed mobs.

    Please do not let this die!!!
     
  17. Offline

    NiVangerow

    Can I stop Endermen from griefing my entire server with this plugin? Whats the id/name for an enderman?
     
  18. Offline

    cartman-2000

    Yes you can, at least I didn't have a problem with stopping there spawning in my worlds with this lugin, the config line to disable them would be enderman: 0, in each world you might have. I'm not sure if CraftEnderman works in the unload section of the config file, for not saving them on chunk unload.
     
  19. Offline

    Doc

    Hi Mr Dev, can we get an update please.
    Also, when this plugin is active I get a TON of the following errors on
    Craftbukkit version git-Bukkit-0.0.0-1112-g54a13b2-b1240jnks (MC: 1.8.1)

    Code:
    2011-10-09 15:07:36 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-10-09 15:07:38 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-10-09 15:07:40 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-10-09 15:07:42 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-10-09 15:07:44 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-10-09 15:07:46 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-10-09 15:07:52 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-10-09 15:07:54 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-10-09 15:07:56 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-10-09 15:08:02 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-10-09 15:08:16 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-10-09 15:08:22 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    I just wanted to let you know.
    We really love the plugin, but have to not use it due to lag issues.
    Thanks!

    In the WorldGuard plugin you can do disable-enderman-griefing: true
    It still spawns them, but keeps them from griefing.

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

    strontkever

    Seems it still works with CB1600+

    great!
     
  21. Offline

    raoulster

    THANK YOU SOOO MUCH, i have a creative world on my server and people kept on spamming dogs with eggs, and dogs cant be got rid of by /butcher with world edit, so it was a pain in the ass getting them out, also they did mobs like ghasts etc.. And this plugin has now saved me!!! I thank you alot, you should realy continue this, it is perfect for this creative type server crisis. :)
     
  22. Offline

    Josrence44

    Bump. I really, really want an updated version of this. My fingers have been crossed forever. Is the OP still around?
     

Share This Page