[MECH]AntiMobSpawn v2.0 - Stop certain creatures spawning on certain types of block [953]

Discussion in 'Inactive/Unsupported Plugins' started by Sam_Lex, Apr 11, 2011.

  1. AntiMobSpawn - The Pest Controlling Plugin
    Version: 2.0v

    Ever been making a house out of trees and having to leave torches EVERYWHERE to stop those pesky creepers from destroying the place. Or maybe you want to stop monsters from spawning inside your chicken farm? Well this plugin lets you do just that! By selecting the block Ids that you don't want mobs to spawn on, you can say goodbye to those pesky creepers

    Features:
    • Stops monsters from spawning on the specified blocks
    • Can choose which creatures are stopped
    • Every option can be selected per-World!
    How to use:

    When the plugin is first loaded, a new properties file(called AntiMobSpawn.properties) is created inside it's own folder. There are a number of options inside the file that can be changed. There is a default world whose settings are used if you don't want to have per-World settings, or if the world the spawn is trying to happen on is not in the file. Then there is all the worlds listed that were present when the file was created. If a new world is added, the settings will need to be added manually, or just the default settings from the file will be used. There is also fall-back defaults that are used if there is an exception while getting data from the file.

    Generated Configuration File (open)

    #Properties File for the Bukkit plugin, AntiMobSpawn
    #Generated at 11:52 AM on Sunday, 3 July 2011
    #All selected values MUST be within apostrophes ('')

    #Setting to enable multi-world support. If false, all worlds will follow the default world settings
    multi: 'true'

    #The default world
    Default:
    #Select whether to block spawns on all block types
    all blocks: 'false'
    #List of blocks to stop spawns on. Each number must be within it's own apostrophes ('') with a single ending apostrophe
    blocks: '18' '46''
    #Select which creatures the plugin should stop from spawning. True to stop them, false not to
    chicken: 'false'
    cow: 'false'
    creeper: 'true'
    ghast: 'true'
    giant: 'true'
    monster: 'true'
    pig: 'false'
    pig zombie: 'true'
    sheep: 'false'
    skeleton: 'true'
    slime: 'true'
    spider: 'true'
    squid: 'false'
    wolf: 'false'
    zombie: 'true'

    world:
    #Select whether to block spawns on all block types
    all blocks: 'false'
    #List of blocks to stop spawns on. Each number must be within it's own apostrophes ('') with a single ending apostrophe
    blocks: '18' '46''
    #Select which creatures the plugin should stop from spawning. True to stop them, false not to
    chicken: 'false'
    cow: 'false'
    creeper: 'true'
    ghast: 'true'
    giant: 'true'
    monster: 'true'
    pig: 'false'
    pig zombie: 'true'
    sheep: 'false'
    skeleton: 'true'
    slime: 'true'
    spider: 'true'
    squid: 'false'
    wolf: 'false'
    zombie: 'true'

    world_nether:
    #Select whether to block spawns on all block types
    all blocks: 'false'
    #List of blocks to stop spawns on. Each number must be within it's own apostrophes ('') with a single ending apostrophe
    blocks: '18' '46''
    #Select which creatures the plugin should stop from spawning. True to stop them, false not to
    chicken: 'false'
    cow: 'false'
    creeper: 'true'
    ghast: 'true'
    giant: 'true'
    monster: 'true'
    pig: 'false'
    pig zombie: 'true'
    sheep: 'false'
    skeleton: 'true'
    slime: 'true'
    spider: 'true'
    squid: 'false'
    wolf: 'false'
    zombie: 'true'

    Download AntiMobSpawn(DropBox)
    Source(Github)

    Changelog:
    Version 2.0:
    • The properties file has been completely changed. Options are clearly labelled and the formatting will work with Notepad
    • MultiWorld support!
    • Ability to choose which creatures are affected
    Version 1.1:
    • Added support for multiple blocks to be selected in the properties file (by default, 0 and 18 are in the file, but for some reason, notepad does not add the line separator, so when editing the file, please use a different text editor as notepad displays it all as one big line of numbers, that if replicated, won't work)(if this is confusing, please ask and I will try to explain it better :))
    Version 1.0:
    • Released AntiMobSpawn plugin
    ToDo:
    • Add support for selection cuboids that no mobs can spawn in (idea from PsychoNecrosis)-
    • Allow selection of that types of spawn are affected
    • Add command to reload settings without using /reload (idea by spunkiie)
    Note: This plugin only affects nature spawn. Spawns caused by spawners, beds, lightning, eggs and other plugins will not be affected!

    I would like to say thank you to squirrelo for the idea
     
  2. Sorry about the HUGE wait, I've been on holiday :) I think the problem is that you haven't got 'all blocks' set to true, so it will only be stopping mobs spawning on the selected blocks which is leaves and TNT at the moment, by the looks of it
     
  3. Ok guys, I'm going to come clean and be honest. I haven't been working on this for the last few weeks and need to get back into doing it. I'm going back to school soon so that should get me used to working again and the next update of this will be out soon. Sorry about this, I know some people want to use this plugin...
     
    royfort likes this.
  4. Offline

    TheReachFreaks

    When 1.8 Arrives, Can You Make It So Enderman Wont Spawn?
     
  5. Offline

    Pythros

    So this still works on 1060?
     
  6. Yes, I think so
     
  7. Right, it is obvious that I have not got much of AntiMobSpawn done recently. This is mainly because I have had so much school work to do. As such I have decided that for the moment I am only going to be updating this plugin to keep it working with the current Bukkit/Minecraft version. The next update to bring it up to v1185 will also include a few new features. I will not forget about the suggested improvements and these may be added at a later date, once my school work load has decreased. The next version should be out within the next two weeks.
     
  8. Offline

    c4ss

    Hm. Those 2 weeks have passed. :(
    Would really like to see a new version, love this plugin!
     
  9. OK, that's me (finally!) rewritten AntiMobSpawn for Minecraft 1.0, just waiting for a recommended version of Bukkit to come out for Minecraft 1.0 so I can test it fully then we'll be good to go ^_^
     
  10. That's version 3.0 for Minecraft 1.0 released (finally!). I have put everything on BukkitDev, waiting for approval. I can't really be bothered updating this page to reflect the new version but the download and source links have been updated. Head over to BukkitDev (link at top) to see all the new joys :)
     
  11. Offline

    tomason789

    All mobs still spawn... I dont want hostile mobs spawning... Config:
    Code:
    multi: 'true'
    Default:
      all blocks: 'true'
      blocks:
      spawn:
        Bed: 'true'
        Custom: 'true'
        Egg: 'true'
        Lightning: 'true'
        Natural: 'false'
        Spawner: 'false'
      creature:'false'
        blaze: 'false'
        cave spider: 'true'
        chicken: 'false'
        cow: 'false'
        creeper: 'true'
        ender dragon: 'false'
        enderman: 'true'
        ghast: 'true'
        giant: 'true'
        monster: 'true'
        mushroom cow: 'true
        pig: 'false'
        pig zombie: 'true'
        sheep: 'false'
        silverfish: 'true'
        skeleton: 'true'    slime: 'true'    spider: 'true'
        squid: 'true'
        villager: 'false'
        wolf: 'true'
        zombie: 'true'
    World One:
      all blocks: 'true'
      blocks:
      spawn:
        Bed: 'true'
        Custom: 'true'
        Egg: 'true'
        Lightning: 'true'
        Natural: 'false'
        Spawner: 'false'
      creature:''false'
        blaze: 'false'
        cave spider: 'false'
        chicken: 'false'
        cow: 'false'
        creeper:'true'
        ender dragon: 'false'
        enderman: 'true'
        ghast: 'false'
        giant: 'false'
        monster: 'false'
        muchroom cow: 'false'
        pig: 'false'
        pig zombie: 'false'
        sheep: 'false'
        silverfish:'true'
        skeleton:'true'
        slime:
        spider:'true'         squid:'true'
        villager: 'false'
        wolf: 'false'
        zombie: 'true'
    World One_nether:
      all blocks: 'true'
      blocks:
      spawn:
        Bed: 'true'
        Custom: 'false'
        Egg: 'false'
        Lightning: 'true'
        Natural: 'false'
        Spawner: 'false'
      creature:'false'
        blaze: 'false'
        cave spider:     chicken:'false'
        cow: false
        creeper: 'true'    ender dragon:
        enderman:     ghast: 'false'
        giant: 'false'
        monster: 'false'    muchroom cow: 'false'
        pig: 'false'
        pig zombie: 'false'
        sheep: 'false'
        silverfish:'true'
        skeleton: 'true'
        slime: 'true'
        spider: 'true'    squid: 'true'
        villager: 'false'
        wolf: 'false'
        zombie: 'true'
    World One_the_end:
      all blocks: 'true'
      blocks:
      spawn:
        Bed: 'true'
        Custom: 'false'
        Egg: 'false'
        Lightning: 'true'
        Natural: 'false'
        Spawner: 'false'
      creature:'false'
        blaze: 'false'
        cave spider: 'true'
        chicken: 'false'
        cow: 'false'
        creeper: 'true'
        ender dragon: 'false'
        enderman: 'true'
        ghast: 'false'
        giant: 'true'    monster: 'false'    muchroom cow: 'false'
        pig: 'false'
        pig zombie: 'false'    sheep: 'false'
        silverfish: 'true'
        skeleton: 'true'
        slime: 'true'   spider:'true'
        squid: 'true'
        villager: 'false'
        wolf: 'false'
        zombie: 'true'
     
  12. You have got Natural spawns to false. Set to true to get the hostile mobs to stop spawning
     
  13. Offline

    tomason789

    so natural:'true' ?
     
  14. Yeah. I don't think you need the 's as well but I don't think they matter. The way this plugin works, in a way, is to look at the config and ask the question "Should I consider stopping this type of spawn?" or "Should I consider this block?" or "Should I stop this type of mob?". Those are basically the questions the config is answering. So true for the things the plugin should think about stopping and false for the things that the plugin should steer clear of. Does that help?
     
  15. Offline

    tomason789

  16. Ok, just put true for the things you want to stop from stopping and false for the rest, that's what it boils down to.
     
  17. Offline

    tomason789

    i have done that
     
  18. Well it should work, if not, let it generate another file and start from that.
     
  19. Offline

    tomason789

    ooooooo now it`s work thanks
     
  20. Offline

    tomason789

    Spawner:?
     
  21. Offline

    tomason789

    ??????????????????????????
     
  22. Sorry, I hadn't noticed you had posted a question. Can you maybe explain it as I do not get where you are coming from?
     
  23. Offline

    tomason789

  24. Sorry, I phrased that totally wrong. What I mean't was - What is the question you are trying to ask?
     
  25. Offline

    tomason789

    spawner:true or false?
     
  26. The spawner allows you to be able to stop mobs from being spawned out of monster spawner (like the ones found in dungeons (or whatever they're called)). Whether you set it to true or false is entirely up to you.
     
  27. Offline

    tomason789

    ok do this plugin work for 1.1?
     
  28. I have not tried it and will not get a chance to try it for a few days. Feel free to try it yourself though and tell me of any issues that arise :)
     
  29. Offline

    magroll

    I'm use this to set mobs to stop spawning on leaves, obsidian and gravel but can't quite figure out how to use the config log, halp?

    multi: true
    Default:
    all blocks: false
    blocks: - '18'
    '46'
    '49' '13' spawn:
    Bed: true
    Custom: false
    Egg: true
    Lightning: true
    Natural: true
    Spawner: true
    creature:
    blaze: true
    cave spider: true
    chicken: false
    cow: false
    creeper: true
    ender dragon: true
    enderman: true
    ghast: true
    giant: true
    monster: true
    mushroom cow: false
    pig: false
    pig zombie: true
    sheep: false
    silverfish: false
    skeleton: true
    slime: true
    spider: true
    squid: false
    villager: false
    wolf: false
    zombie: true
    world:
    all blocks: false
    blocks:
    - '18'
    - '46'
    spawn:
    Bed: true
    Custom: false
    Egg: true
    Lightning: true
    Natural: true
    Spawner: true
    creature:
    blaze: true
    cave spider: true
    chicken: false
    cow: false
    creeper: true
    ender dragon: true
    enderman: true
    ghast: true
    giant: true
    monster: true
    muchroom cow: false
    pig: false
    pig zombie: true
    sheep: false
    silverfish: false
    skeleton: true
    slime: true
    spider: true
    squid: false
    villager: false
    wolf: false
    zombie: true
    world_nether:
    all blocks: false
    blocks:
    - '18'
    - '46'
    spawn:
    Bed: true
    Custom: false
    Egg: true
    Lightning: true
    Natural: true
    Spawner: true
    creature:
    blaze: true
    cave spider: true
    chicken: false
    cow: false
    creeper: true
    ender dragon: true
    enderman: true
    ghast: true
    giant: true
    monster: true
    muchroom cow: false
    pig: false
    pig zombie: true
    sheep: false
    silverfish: false
    skeleton: true
    slime: true
    spider: true
    squid: false
    villager: false
    wolf: false
    zombie: true
    world_the_end:
    all blocks: false
    blocks:
    - '18'
    - '46'
    spawn:
    Bed: true
    Custom: false
    Egg: true
    Lightning: true
    Natural: true
    Spawner: true
    creature:
    blaze: true
    cave spider: true
    chicken: false
    cow: false
    creeper: true
    ender dragon: true
    enderman: true
    ghast: true
    giant: true
    monster: true
    muchroom cow: false
    pig: false
    pig zombie: true
    sheep: false
    silverfish: false
    skeleton: true
    slime: true
    spider: true
    squid: false
    villager: false
    wolf: false
    zombie: true
     

Share This Page