[INACTIVE] NoCivilSpawns v1.4.7 - allow/deny mob spawns in areas + world specific opts +whitelist

Discussion in 'Inactive/Unsupported Plugins' started by Sleaker, Apr 6, 2011.

  1. Offline

    Sleaker

    NoCivilSpawns:
    Version: v1.4.7
    Cancels spawning of creatures on trees, or inside player-made areas like CivilizedSpawns.

    WARNING: Because of Minecraft's Architecture and how it creates entity spawns, this plugin is highly discouraged for Production-Level servers and those which regularly run more than 15 users online at a time. Using NoCivilSpawns on high pop servers will most likely result in massive Tic degradation and an unstable server. You have been warned.

    Download: See Warning!
    Source Code
    Install:
    Download the NoCivilSpawns.jar and place it in your /plugins/ directory.

    See source code page for the readme on configuration options​
     
  2. So, i finally tried to implement your plugin on our server, but somehow even with withelisting no animals spawn.
    Also, your description and your example in the opening post are contradicting.
    This is my config:
    Code:
    diamondenabler: true
    quicktest: true
    goldblocker: true
    whitelist:
        - WOLF
        - PIG
        - CHICKEN
        - COW
        - SHEEP
    blacklist:
    I already tried writing it differently, but no luck so far.
     
  3. Offline

    Sleaker

    Ah yah, I fixed the All caps thing. use Wolf Pig etc.

    @Hiramas
    Woops, sorry about that thought I had removed that. haha.
     
  4. So, I have written the names not all caps and it still blocks all spawns of animals.
     
  5. Offline

    Sleaker

    @hiramas:
    My fault on the config post it should be like this, changing OP to reflect proper settings :p
    Code:
    diamondenabler: true
    quicktest: true
    goldblocker: true
    whitelistmobs:
        - Wolf
        - Pig
        - Chicken
        - Cow
        - Sheep
    blacklistmobs:
     
  6. Works, thanks!
    Keep up the good work!
     
  7. Offline

    Monjhall

    This is probably because of my poor configuring, but I can't get the blacklist to work. I desire a world without creepers and skeletons, but I'm getting giant pot holes and arrows... Plese help me out. :(
     

    Attached Files:

  8. Offline

    Sleaker

    yml nodes need to have a space between the - and the nodename. This should work:
    Code:
    whitelistmobs:
        - Chicken
        - Cow
        - Sheep
        - Squid
        - Pig
        - Zombie
    goldblocker: false
    quicktest: true
    diamondenabler: false
    monstersonly: false
    blacklistmobs:
        - Wolf
        - Creeper
        - Skeleton
        - Spider
        - Ghast
        - Slime
     
  9. Offline

    Monjhall

    Thanks. It works fine! :)
     
  10. Offline

    ricky_hobby

    Thanks for making this plugin! This is very cool.

    I'm running 1.3.2 on CB 670, and the goldblock disabling is not working. I plunked down about 5 of them in a flat dark area, and watched as night came and went for several game days. They were spaced about 15-25 blocks apart. I seen several times, mobs (Spiders, Skeletons) spawn right near the gold blocks, certainly within the 20x20x5 area. These were right on top of the grass. I then also tried burying them one level under the grass and got the same results (mobs spawning). The 'main' / 'normal' detection method seems to be working, though.

    On CB start, I don't get any errors from any plugins. I had installed all of the other plugins before this one (one by one with testing between each), and they all seem to work fine. The NoCivilSpawns plugin reports during startup:

    [INFO] [NoCivilSpawns] - Additional quick-detection method enabled.
    [INFO] [NoCivilSpawns] -Gold Blocks will prevent mobs from spawning nearby.
    [INFO] [NoCivilSpawns] -Imported mob whitelist: [Chicken, Sheep, Pig, Wolf, Cow]
    [INFO] [NoCivilSpawns] -Imported mob blacklist: [Creeper]
    [INFO] [NoCivilSpawns] -1.3.2 by Sleaker is enabled!

    My config.yml is

    Code:
    whitelistmobs:
        - Wolf
        - Sheep
        - Pig
        - Cow
        - Chicken
    goldblocker: true
    quicktest: true
    diamondenabler: false
    monstersonly: false
    blacklistmobs:
        - Creeper
    The plugins I am running are:
    AfkBooterv0.8.1
    AppleTreePlugin
    dynmap
    Essentials
    FakeMessage
    FenceStack
    NoCivilSpawns
    nSpleef
    Permissions
    Prefixer
    VoxelDoop
    VoxelSniper
    WorldEdit
    WormholeXTreme

    Thanks for your help,
    Rick
     
  11. Offline

    thepackett

    i like the idea but i would rather select areas like you would using worldedit/worldguard and make it so monsters don't spawn on that area. Is this possible?
     
  12. Offline

    Sleaker

    thepackett - it's possible that I may do that in the future. but at the moment there are plenty of other mods that do that.

    I tracked down the issue with the settings. Ill have a new version up later this evening, thanks for the reports guys!
     
  13. Offline

    Jake Rees

    how do i make this work for just the radius inside my city
     
  14. Offline

    rhadiem

    this looks great, gonna try it out on the server now, thanks
     
  15. Offline

    shableep

    just wondering if anyone has tested this on the latest bukkit?
     
  16. Offline

    Sleaker

    I haven't recompiled it with the latest RB but there shouldn't be any issues. I'll have one up tomorrow for sure.

    No issues with 733. We're good to go.
     
  17. Offline

    5*stunner

    mainecraft2:
    diamondEnabler: false
    quickTest: true
    goldBlocker: true
    cubeRadius: 10
    cubeHeight: 5
    whitelistmobs:
    - Wolf
    - Chicken
    - Pig
    - Sheep
    - Cow
    blacklistmobs:
    - Creeper



    The above is my config file. copied and pasted it from the first post and changed the whitelist is all. world name is right and theres 4 spaces instead of tabs. Creepers are still spawning in my world though. Does anyone know why?
     
  18. Offline

    Sleaker

    Don't copy/paste the config, let the plugin generate the config and then edit it. Apparently I have issues with keeping everything with the proper case.
     
  19. Offline

    killj0y

    I added this to my server and i now have 10x more animals in spawn. I am just using the standard config.yml that generates. Any ideas?
     
  20. Offline

    Sleaker

    this plugin does not generate more creatures, ever. It only gives the server a chance to cancel some spawns depending on what blocks are nearby. If your spawn does not have player created block types, but the surrounding area does, it's possible that the 'spawn area' is the only valid location nearby to spawn mobs in.
     
  21. Offline

    killj0y

    My spawn is built with player blocks. cobble etc. I also placed cobble post around it in hopes to expand the radius of protection.

    Is the default generated config file suited fine for what i am tryin to achieve? which is simply block mobs and animals from spawning around those areas?
     
  22. Offline

    Sleaker

    the default config should block monsters spawning if it finds 15 cobble blocks in a 21x21 area. you should not be having anything spawn in these types of areas. Do you have any other plugins that change spawns?
     
  23. Offline

    killj0y

    I do not. Maybe the 15 cobble stone is my issue, What i did was place little cobble stone post around it to gurrantee its placement. I will make them 15 each and then see if this solves my issue.

    Thanks will report back if working
     
  24. Offline

    Soryo

    I've tried a few variations to try to make it work. I'm using Notepad++ now.
    Code:
    world:
        cubeRadius: 10
        diamondEnabler: false
        monstersOnly: false
        blacklistMobs: null
        whitelistMobs: -Wolf
        goldBlocker: false
        quickTest: true
        cubeHeight: 5
        ironBlocker: false
    
    Code:
    world:
        cubeRadius: 10
        diamondEnabler: false
        monstersOnly: false
        blacklistMobs: null
        whitelistMobs:
        -Wolf
        goldBlocker: false
        quickTest: true
        cubeHeight: 5
        ironBlocker: false
    
    After I hit enter it put 4 spaces on the next line then did Wolf with and without the "-"

    Sorry, I'm a bit slow when it comes to this stuff :(

    Is it possible to make the config files in the format of...

    Blacklist Mob Wolf = False
    Blacklist Mob Creeper = True
    Blacklist Mob Chicken = False
    Blacklist Mob Cow = True
    something like that.... it seems more intuitive to me to just change false to true and vice versa... you have it for the other ones, but I suppose this one is more annoying since there's many creatures?

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

    Sleaker

    @Soryo:
    http://wiki.sk89q.com/wiki/WorldEdit/Configuration/Bukkit

    at this point the easiest method for me to write the plugin is to use yml. If you have issues with it you can use the above link to see if you're doing it right. The best way to make sure it's correct is to let the plugin generate a default file, then edit the options or add monsters to the lists.
    Indentation matters, in your post Wolf isn't indented enough, it needs to be 4 spaces past any of the others like in my example in the main post.
     
  26. Offline

    thepackett

    so this only affects WorldEdit/WorldGuard cuboided areas and the tops of trees?
     
  27. Offline

    Sleaker

    @thepackett -this plugin has nothing to do with worldguard. regions or areas.
     
  28. Offline

    killj0y

    No idea what im doing wrong but again im using default config from first load. I have tested and placed tons of cobble in one area. But mobs/animals are still spawning about 5 blocks away from it
     
  29. Offline

    rhadiem

    Great mod, thanks for it!

    One question.. regarding white/black lists.. could you explain more how those work?

    Do they globally ban monsters, or just in "civil" areas? (Say, you can ban creepers but permit others in areas deemed "civil")

    Whitelists.. are they allowed in civil areas or in general? (globally)

    if I whitelist a sheep and blacklist a spider, where can and cannot these be spawned?

    Thanks!

    Also, what are iron blocks for?
     
  30. Offline

    Sleaker

    @Killjoy
    That's normal... it just prevents mobs from spawning if the spawn location finds 15 cobble blocks in a 21x21 area around the spawn. Basically use it to prevent mobs from spawning IN your cities. If they are spawning next to/outside of your city then it's working like it should.

    @rhadiem - whitelist/blacklist will bypass all checks and either always allow a specific mob to spawn (whitelist) or always deny a creature to spawn (blacklist).
    If you whitelist a sheep, it ignores all other checks and spawns no matter what (regardless of other settings)
    If you blacklist spiders, they wont ever spawn on your server (unless you have some other mod)

    Iron/gold/diamond blocks are to force areas to immediately block, or immediately allow a spawn to happen. So if one iron block is found during the check then the spawn is immediately canceled regardless of whether 15 player made blocks are found. This requires the setting to be true to function.

    all monsters are automatically banned from civil areas, unless whitelisted to bypass the checks.

    @thepackett I looked into world guard regions and the way they are written makes it pretty much impossible to do at this time. The only feasible way in the future would be to auto-deny any monster spawn in a world guard region, but I'm pretty sure world guard already lets you disable spawns in regions.

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

    thepackett

    @Sleaker I looked into that but the only thing i saw was disabling mob damage, not actually the spawn, do you know otherwise?
     

Share This Page