Inactive [MECH/MISC] NoMobSpawners v0.3 - Remove all mob spawners (or other blocks) from a world [1.0.1-R1]

Discussion in 'Inactive/Unsupported Plugins' started by NuclearW, Jul 19, 2011.

  1. Offline

    NuclearW

    NoMobSpawners - Remove all mob spawners from a world
    Version: v0.3

    NoMobSpawners take a list of worlds to strip from a config file and strips mob spawners from that world as chunks are loaded and created.

    NoMobSpawners optionally can be set to remove whatever blocks you want. Note this can impact performance if you were to say, tell it to remove all the stone from your map.

    On first run NoMobSpawners will create a file named 'config' in the 'NoMobSpawners' folder. From here you may add a comma separated list of worlds to strip mob spawners from.

    By default, no worlds are set to be stripped.

    The default config file looks like this:
    To make NoMobSpawners remove mob spawners from the world named "world" you would set it like this:
    To make it remove mob spawners from the world "world" and the world "sheepland" you would set it like this:
    Leave blocks-strip blank to just remove mob spawners. Separate block ids with commas exactly as you do with worlds to make it remove other blocks.

    WARNING: THIS WILL EDIT YOUR MAP AND IT CANNOT BE UNDONE.

    Features:
    • Removes mob spawners from specified worlds
    • Can optionally remove any other blocks.
    Download NoMobSpawners.


    Changelog:
    • Version 0.3
      • Changed to load at startup so it can scan chunks near spawn
      • Made it use a queue so it does not SUPERLAG (Specifically no more than 10 blocks per second)
    • Version 0.2
      • Added option to remove other blocks.
      • Version 0.2.1
        • Fixed NMS spamming console when no worlds are set.
      • Version 0.2.2
        • Fixed NMS not working in multi-world environments
    • Version 0.1
      • First release.
    NoMobSpawners was suggested by @jungalist81
     
  2. Offline

    jungalist81

    Thank you NuclearW, this is exactly what I was looking for. No more manually searching caves and taking out mobspawners!

    Many servers have a plugin that hands out money from killing monsters. This will remove the exploitation of farming a mobspawner!
     
  3. Offline

    Arton

    i have try install the plugin but it wont work for me i have monster on true but still the plugin let them spawn something wrong ? i want it like you can spawn mobs but they dont spawn by mobspawners
     
  4. Offline

    NuclearW

    All this plugin will do is remove mob spawners from the map. By default, you have to put your world name in the config file before it will remove mob spawners from that world.

    Did you set your world in the config file?
     
  5. Offline

    Arton

    Nope so i just put it in under active-worlds=3 or ?

    I am a little confused can you give me an example
     
  6. Offline

    NuclearW

    Replace the 3 with the world name.
     
  7. Offline

    Arton

    Yes i did it now but it didten work monsters still spawning

    active-worlds=Build
     
  8. Offline

    NuclearW

    This plugin does not prevent monsters from spawning, it removes mob spawners. Also, you may need to restart, not just reload.
     
  9. Offline

    Arton

    so do you mean mobs can spawn out a mob spawner ? or
     
  10. Offline

    NuclearW

    Mobs can spawn in the dark, mobs can spawn from mob spawners, but this plugin removes mob spawners from the map, so there are no mob spawners to spawn from.
     
  11. Offline

    Arton

    Damit i need a plugin there no mobs can spawn but only be spawned by a command :D
     
  12. Offline

    jungalist81

    I have a suggestion. To avoid future confusion can you change it from
    to
    and make a note #replace world1 world2 and world3 with the names of your world.
     
  13. Offline

    NuclearW

    I just don't want the plugin to automatically remove mob spawners from a world. The 3 was actually a typo, which the jar that is linked now does not contain.
     
  14. Offline

    jungalist81

    alrighty fair enough
     
  15. Offline

    Blairjam

    ok...I'm trying to get into developing plugins...and i was wondering if I could look at your source files as an example, as I'm currently unsure how to locate all blocks of one type on the world and remove them, although mine will be torches and not spawners...

    If you have any questions or concerns I'll be glad to help...
    thanks
     
  16. Offline

    weepingboil

    Request: Could you make the block type that is removed configurable ?
     
  17. Offline

    NuclearW

    Sure.

    Done.

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

    weepingboil

    First class!
     
  19. Offline

    NuclearW

    Glad you enjoy it.

    Just don't try to remove all the air. That would be bad.
     
  20. Offline

    weepingboil

    Works great, although I got a lot of errors spammed in the console until I had set a world in the config and reloaded.
    Also, just a thought, what if I needed to remove multiple blocks, ie mobspawners and yellow flowers and red flowers for example? [blocks-strip=52,37,38 etc] Doh - just seen the config comment
     
  21. Offline

    NuclearW

    It will no longer spam console when no worlds are set. Although, they way I did it may impact performance.
    If you see any noticeable change in chunk load speeds after updating to 0.2.1 please let me know.
    Also, glad you got it all set up the way you want it.
     
    jungalist81 likes this.
  22. Offline

    jungalist81

    Hello NuclearW

    I have been tinkering around with my server, adding new plugins and configuring them. I am now getting this error:
    Code:
    2011-08-02 14:13:12 [SEVERE] [NoMobSpawners] Custom block ID:  could not be parsed
    I never edited the Custom block ID. Any thoughts on this?
     
  23. Offline

    NuclearW

    Please post your config file. Also make sure there are no spaces on the line, that might be it.
     
  24. Offline

    Bronski

    Talk about sucking all the oxygen out of the room!

    Does this work in paintings by any chance?
     
  25. Offline

    NuclearW

    As paintings are not blocks, this currently cannot remove them.

    I can look into it, would you really like to have all paintings removed?
     
  26. Offline

    Ape3000

    I just want a confirmation. If I set blocks-strip to anything non-empty, will it only remove the blocks I listed, or does it automatically include the mob spawners? I'd like to leave the spawners alone.

    Hmm.. This mod doesn't seem to be working for me. I use build 1000 and several other mods. I get these spammed:
    This is my config:
    Also, it doens't remove the blocks.

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

    Bronski

    I would have said 'yes, please!' about a week ago when I was having a mysterious problem with paintings duplicating themselves onto the floor all over my map, but I think I may have finally stopped it (was probably a plugin). I was mostly curious if it worked in case my issue re-occurs, and I can let you know if it does I guess :D

    Thanks and good luck.
     
  28. Offline

    NuclearW

    Correct, if blocks-strip is non-empty it will only go for what you tell it to.

    Whoops, that's a bug dealing with a real multi-world setup, which is now fixed. Give 0.2.2 a try.
     
  29. Offline

    Ape3000

    Thanks. Now it seems to be working. I just hope it doesn't hit the performance too much.

    Is this mod affecting the chunk generation algorithm, or does it just check for new blocks with brute force after generation (or load)?
     
  30. Offline

    NuclearW

    On chunk generation and chunk load it checks through all the blocks using the thread-safe getBlockTypeIdAt for anything that matches what you don't want, then removes it if necessary.

    I'd be interested to know how you perceive the performance hit of this mod, if you can provide anything after using it for a while.
     

Share This Page