[MECH] bMobs v1.1 - Complete creature control [766]

Discussion in 'Inactive/Unsupported Plugins' started by Brad811, Feb 12, 2011.

  1. Offline

    Brad811

    bMobs (v1.1)
    Download: bMobs.zip
    If you like the work I've done, or would like to see more features and improvements, please consider donating!

    NOTE: This plugin does not cause more mobs to spawn than the default spawn rate.

    Features:
    • configure creature health, probability of spawning, whether they can attack, and whether they burn in sunlight
    • destroy any unwanted mobs every few seconds
    • destroy any unwanted mobs upon targeting the player
    • destroy any unwanted mobs upon spawning
    • kill all of any mob type on command
    • see how many mobs are killed when this command is called
    • configurable via "bMobs.yml" file
    • supports: creeper, skeleton, spider, zombie, ghast, giant, pigzombie, slime, chicken, cow, sheep, pig, squid, wolf
    • multiple world support
    • change properties without restarting server
    Well I enjoyed making bFlight so much, I decided to make another plugin.


    This is another plugin I've wanted for myself for a while and haven't seen a simple solution for.

    Try it out!

    Usage:
    Run the server with the plugin installed. Edit the included bMobs.yml as you see fit.

    Commands:
    • /bkill animals - kills all anmials in your current world
    • /bkill monsters - kills all monsters in your current world
    • /bkill all - kills all anmials and monsters in your current world
    • /bkill [animal or monster type] - kills all living entities of this type
    • /bmobsreload - will reload your properties file and apply any changes, and add any worlds not listed in it (you will need to run this after starting your server if you have multiple worlds)
    Permissions: (not required if Permissions is not installed)

    • bmobs.bkill
    • bmobs.reload
    Example bMobs.yml file:

    Code:
    ##
    # Example bMobs.yml
    ##
    worlds:
        world:
            skeleton:
                enabled: true
                aggressive: true
                health: 2
            zombie:
                enabled: true
                probability: 0.5
                aggressive: false
                burn: false
                health: 10
            spider:
                enabled: true
                probability: 0.2
                burn: true
                health: 10
            creeper:
                enabled: false
            sheep:
                enabled: false
    
    ##
    #   [mob type]:
    #       enabled: [true/false]
    #       probability: [0.0-1.0]
    #       aggressive: [true/false]
    #      burn: [true/false]
    #       health: [0-200]
    ##
    May add more functionality in the future if there is interest!


    Version History:
    1.1
    • Added burn control
    • Added kill count when using /bkill command
    1.0

    • You can now control which mobs can attack, their probability of successfully spawning, and edit their health!
    • Now uses yml file
    0.6

    • Added ability to kill one mob type. Example: /bkill cow
    0.5

    • Added multi-world support!
    • Added ability to change and apply settings without restarting the server
    0.4

    • Added /bkill command
    • Animals can now be controlled as well
    0.3

    • Added spawn listener (may not work on older builds!)
    0.2

    • Now kills all mobs not on the allowed list in all worlds every few seconds, as well as any mobs that target a player that are not on the allowed list.
    • List of monsters now includes: creeper, skeleton, spider, zombie, ghast, giant, pigzombie, slime
     
  2. Offline

    m0jumb0

    just adding my +1 to this. i get the same errors. bukkit 817 here
     
  3. Offline

    Brad811

    I think this is a multi-worlds problem, I'm going to try a possible solution for this.
    Are y'all running multiple worlds on your servers?
     
  4. Offline

    m0jumb0

    I think I disabled this one before I disabled MultiVerse. I'll try it again without MultiVerse loaded tonight
     
  5. Offline

    Mannan

    Yes, I am now using Nether (cuz 1.6 now supports SMP Nether). Please fix this ASAP, getting spammed with those errors every 2 seconds. Clogging up the console =/.
     
  6. Offline

    Cognito guy

    Can you also add the ability for neutral mobs? So if you attack them they will attack you, but they won't start the fight.

    And can you also add the ability for a maximum off a certain mob? For example: only 5 giants are allowed to exist on the same time. Or: 50 creepers.
     
    AS1LV3RN1NJA likes this.
  7. Offline

    LeetPowerCraft

    Does this work with Bukkit 818? It's currently the only plugin that lets you limit the amount of mobs by probability and that's why it's my favorite.
     
  8. Offline

    Birdman33573

    REQUEST:
    Could you add the ability to control which blocks each mob spawns on?
     
  9. Offline

    LeetPowerCraft

    I approve of this request. It's the only really major feature that's lacking compared to other similar plugins. =P
     
  10. How about letting the dev get it working for #818 before moving on with other add-in requests please.

    Code:
    worlds:
        world:
            skeleton:
                enabled: true
                aggressive: true
                burn: true
                health: 10
            zombie:
                enabled: true
                aggressive: true
                burn: true
                health: 10
            spider:
                enabled: true
                aggressive: true
                burn: false
                health: 10
            creeper:
                enabled: true
                aggressive: true
            sheep:
                enabled: true
                probability: 1.0
        MyWorld:
            skeleton:
                enabled: true
                aggressive: true
                burn: true
                health: 10
            zombie:
                enabled: true
                aggressive: true
                burn: true
                health: 10
            spider:
                enabled: true
                aggressive: true
                burn: false
                health: 10
            creeper:
                enabled: true
                aggressive: true
    
    OK, I've managed to recreate this error and its down to the way your bmobs.yml (inside the bmobs folder) file is configured.
    Each world you have created will have to have an entry in this file - sample in codebox (above). In this example, I would have 2 worlds - world, and My World (The capital letters ARE essential for it to work). If your MyWorld folder has a capital 'M' and 'W', then it must be spelt in exactly the same way in the bmobs.yml file.
    After entering all worlds and either restarting bmobs, or restarting your server, your problems should go away. :)
    If you've been using bmobs for a long time, and you still have a bmobs.properties file in your bmobs folder, thats no longer used (assuming you are using ver. 1.1). Tested on bukkit #820.
    [Edit]
    If you miss off a world, your server will start wihout error, but as soon as someone goes to the world you've missed off , and entities start to spawn, that's when your console will begin to spam.

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

    icomeinpieces

    when i run CB 818 bMobs 1.1, and permissions 3.1.3 and nothing else everything seems to start up fine but when i shutdown my server the combo of permissions and bMobs seems to make bmobs hang right when it says bmobs is disabled.

    running either bmobs or permissions without the other seems to work out alright.
     
  12. Offline

    LeetPowerCraft

    Try using Permissions 2.7.4 instead of the newest 3.1. Permissions 3 is incompatible with alot of plugins, I actually wouldn't recommenced using it until it works with atleast 90% of plugins for Bukkit.
     
  13. Offline

    crupler22

    Request: Could you make it so you could configure the sight radius of the mobs?
     
  14. Offline

    basman93

    help - pigzombies dont spawn in the Nether and the ghast spawn get out of control

    bMobs v1.1 Bukkit: 819

    config:
    Code:
    worlds:
        world:
            skeleton:
                enabled: true
                aggressive: true
                burn: true
            zombie:
                enabled: true
                aggressive: true
                burn: true
            spider:
                enabled: true
                aggressive: true
            creeper:
                enabled: false
            sheep:
                enabled: true
            ghast:
                enabled: false
            giant:
                enabled: true
            pigzombie:
                enabled: true
            slime:
                enabled: true
                aggressive: true
                burn: false
            chicken:
                enabled: true
            cow:
                enabled: true
            pig:
                enabled: true
            squid:
                enabled: true
            wolf:
                enabled: true
    
        world_nether:
            skeleton:
                enabled: false
            zombie:
                enabled: false
            spider:
                enabled: false
            creeper:
                enabled: false
            sheep:
                enabled: false
            ghast:
                enabled: true
                probability: 0.1
            giant:
                enabled: false
            pigzombie:
                enabled: true
            slime:
                enabled: false
            chicken:
                enabled: false
            cow:
                enabled: false
            pig:
                enabled: false
            squid:
                enabled: false
            wolf:
                enabled: true
    
    ##
    #   [mob type]:
    #       enabled: [true/false]
    #       probability: [0.0-1.0]
    #       aggressive: [true/false]
    #       burn: [true/false]
    #       health: [0-200]
    ##
     
  15. Offline

    LeetPowerCraft

    I was using this plugin, along with Towny, with Bukkit 818. Everything seemed to be working fine at first, until I started receiving complaints from my users that there were way too many hostile mobs spawning. I logged in to check for myself and the amount of hostile mobs were out of control. It seems to be limiting non-hostile mobs fine, but appears to not be limiting the amount of hostile mobs at all...even with it at a 0.5 probability. Think it might be a side effect of Towny?
     
  16. Offline

    Cognito guy

    REQUEST:

    Can you also add the ability for neutral mobs? So if you attack them they will attack you, but they won't start the fight.

    And can you also add the ability for a maximum off a certain mob? For example: only 5 giants are allowed to exist on the same time. Or: 50 creepers.
     
  17. Offline

    staticfactory

    Tried using this with CB818 and Perms 3.1.4 and although there weren't any errors on startup, the probability index didn't seem to work at all.

    I managed to disable a mob and make a hostile friendly but I could not, for the life of me, manage the spawn rate of all of the hostiles. When I used 0.1 as the probability value for each of the hostiles, a /bkill monsters claimed the lives of 285 entities. This is with 6 people on the server. At a value of 1.0, /bkill monsters took out 454.

    By default, the hostile spawn rate on our server is incredibly high and I'm desperate to manage it. I'm hoping to see this officially supported for 818+ with Perms 3+.
     
  18. Offline

    LeetPowerCraft

    NoSpawn currently already does this. It's what I'm using atm since bMobs doesn't seem to be limiting the amount of hostile mobs for me on CB818, same as the problem that staticfactory is having.


    A shame, this is the only current plugin out there that limits mobs by probability, which I really enjoyed and found easier to use verses other plugins that limit mobs by just numbers alone. The developer hasn't posted anything in almost a week while he's active on other threads, so I'm just going to assume that this plugin is dead.
     
  19. Offline

    Wakko

    This is worth testing.
    CookieMonster editing mob drops, bmobs editing mob stats.
    It's a perfect combo! :D
    Now can you add attack strength?
    And possibly neutral aggression?
    I know this may seem tedious, but slime sizes? :p
    Edit: Monster stats possibly? :) (The mob with a human skin.)
     
  20. Offline

    MiracleM4n

    Getting a NPE with v1.1 on anything at or above CB 818. Error is:

    Show Spoiler

    2011-06-09 20:05:39 [WARNING] Task of 'bMobs' generated an exception
    java.lang.NullPointerException
    at com.bradsproject.BradleyJewell.bMobs.bMobsKillerTask.run(bMobsKillerTask.java:25)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:138)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:388)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)


    EDIT: Only occurs on startup and on server reload.
     
  21. Offline

    Darcion

    it doesent work with #860 nothing changed no specials are added to the mobs here my config

    PHP:
    ##
    # Example bMobs.yml
    ##
    worlds:
        
    free2playV2:
            
    skeleton:
                
    enabledtrue
                probability
    0.5
                aggressive
    true
                burn
    false
                health
    4
            zombie
    :
                
    enabledtrue
                probability
    0.5
                aggressive
    true
                burn
    false
                health
    10
            spider
    :
                
    enabledtrue
                probability
    0.2
                aggressive
    true
                burn
    false
                health
    10
            creeper
    :
                
    enabledtrue
                probability
    0.5
                aggressive
    true
                burn
    false
                health
    5
            ghast
    :
                
    enabledfalse
                probability
    0.2
                aggressive
    true
                burn
    false
                health
    10
            giant
    :
                
    enabledtrue
                probability
    0.1
                aggressive
    true
                burn
    false
                health
    40
            pigzombie
    :
                
    enabledtrue
                probability
    0.2
                aggressive
    true
                burn
    false
                health
    25
            slime
    :
                
    enabledtrue
                probability
    0.1
                aggressive
    true
                burn
    false
                health
    5
            sheep
    :
                
    enabledtrue
            cow
    :
                
    enabledtrue
            chicken
    :
                
    enabledtrue
            pig
    :
                
    enabledtrue
            squid
    :
                
    enabledtrue
            wolf
    :
                
    enabledtrue
        free2fly
    :
            
    skeleton:
                
    enabledtrue
                probability
    0.5
                aggressive
    true
                burn
    false
                health
    4
            zombie
    :
                
    enabledtrue
                probability
    0.5
                aggressive
    true
                burn
    false
                health
    10
            spider
    :
                
    enabledtrue
                probability
    0.2
                aggressive
    true
                burn
    false
                health
    10
            creeper
    :
                
    enabledtrue
                probability
    0.5
                aggressive
    true
                burn
    false
                health
    5
            ghast
    :
                
    enabledtrue
                probability
    0.2
                aggressive
    true
                burn
    false
                health
    10
            giant
    :
                
    enabledtrue
                probability
    0.1
                aggressive
    true
                burn
    false
                health
    40
            pigzombie
    :
                
    enabledtrue
                probability
    0.2
                aggressive
    true
                burn
    false
                health
    25
            slime
    :
                
    enabledtrue
                probability
    0.1
                aggressive
    true
                burn
    false
                health
    5
            sheep
    :
                
    enabledtrue
            cow
    :
                
    enabledtrue
            chicken
    :
                
    enabledtrue
            pig
    :
                
    enabledtrue
            squid
    :
                
    enabledfalse
            wolf
    :
                
    enabledfalse
        free2playV2_nether
    :
            
    skeleton:
                
    enabledtrue
                probability
    0.2
                aggressive
    true
                burn
    false
                health
    4
            zombie
    :
                
    enabledtrue
                probability
    0.2
                aggressive
    true
                burn
    false
                health
    10
            spider
    :
                
    enabledtrue
                probability
    0.1
                aggressive
    true
                burn
    false
                health
    10
            creeper
    :
                
    enabledtrue
                probability
    0.1
                aggressive
    true
                burn
    false
                health
    5
            ghast
    :
                
    enabledfalse
                probability
    0.4
                aggressive
    true
                burn
    false
                health
    10
            giant
    :
                
    enabledfalse
                probability
    0.1
                aggressive
    true
                burn
    false
                health
    40
            pigzombie
    :
                
    enabledtrue
                probability
    0.5
                aggressive
    true
                burn
    false
                health
    25
            slime
    :
                
    enabledfalse
                probability
    0.1
                aggressive
    true
                burn
    false
                health
    5
            sheep
    :
                
    enabledfalse
            cow
    :
                
    enabledfalse
            chicken
    :
                
    enabledfalse
            pig
    :
                
    enabledfalse
            squid
    :
                
    enabledfalse
            wolf
    :
                
    enabledfalse

    ##
    #   [mob type]:
    #       enabled: [true/false]
    #       probability: [0.0-1.0]
    #       aggressive: [true/false]
    #       burn: [true/false]
    #       health: [0-200]
    ##
     
  22. Offline

    Stassi

    We're using this plugin with CraftBukkit build [860] to suppress the wolf population, and we have no problems actively or passively using it. Let me know if you'd like more information about our configuration.
     
  23. Offline

    sansprenom

    Which is the default propability of the mobs? If it is 1.0, please add the feature to raise the propability
     
  24. Is there a way to make mobs spawn more in a certain area? Like maybe make a creeper valley? If not i suggest the feature! =)
     
  25. How is he going to know what the error is? What CB/bMob are you using?
     
  26. Offline

    Wakko

    Was gonna copy it in later since I wrote that late at night, but now it's working fine.
     
  27. Offline

    keyosuke

    How hard would it be to make this plugin spawn other animals besides chickens while in a Skyworlds map? There are a few ways to test the skyworld unreleased world type and several decent server have that world type, but it is currently only populated by chickens, and enabling other creatures with this plugin doesn't seem to add them to that world. I've read why this is the case, but is can this be a feature in the future? It would be a great way to beat all other plugins and do something really useful to a lot of people.
     
  28. Offline

    IownYourFinger

    can you make something with Herobrine so i can scare the shit out of my players :D ?
     
  29. Offline

    nmcnick

    correct me if im wrong, but isnt the highest version of bukkit 736? EDIT: lol, how stupid of me. It wouldnt let me go to any newer version though. I found the newest version :)
     
  30. Offline

    ray0911

    First, Great plugin!! :D

    Below is just FYI

    Build 928
    Following options don't work
    Burn true/false (I tried it on zombie. To save them from burning in the day)
    Aggressive (I tried to make spiders Aggressive)

    As far as I know everything else works. Console give me only this error once durning start up. Your probably know about this but just incase you needed any more data. Other wise please ignore this.
    Code:
    2011-06-24 23:41:17 [WARNING] Task of 'bMobs' generated an exception
    java.lang.NullPointerException
        at com.bradsproject.BradleyJewell.bMobs.bMobsKillerTask.run(bMobsKillerTask.java:25)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:438)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  31. Could someone post a "Default" setup that i can tweak? (Normal and Nether).
     

Share This Page