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

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

  1. Offline


    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.

    • 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!

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

    • /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:

    # Example bMobs.yml
                enabled: true
                aggressive: true
                health: 2
                enabled: true
                probability: 0.5
                aggressive: false
                burn: false
                health: 10
                enabled: true
                probability: 0.2
                burn: true
                health: 10
                enabled: false
                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:
    • Added burn control
    • Added kill count when using /bkill command

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

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

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

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

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

    • 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


    Try this out: http://forums.bukkit.org/threads/mech-slowhealth-v2-3-auto-heal-hurt-239.1256/

    Hm, it should be in the same folder as craftbukkit.jar (one level up from the plugins folder). If not, I dunno!
  3. Offline


    Okay now the next problem:

    If you need the config file i can send it.

    CB version: 2011-02-19 13:21:06 [INFO] This server is running Craftbukkit version git-Bukkit
    -jenkins-dev-CraftBukkit-29 (MC: 1.2_01)

    No of my other plugins work, i think the version is wrong?
  4. Offline


    None of your plugins work? That's not good, haha.

    Looking at the error I'm guessing it's having trouble getting your worlds from your server. Does running "/bmobsreload" after you've logged in fix the problem?
  5. Offline


    I just heard that the new bukkit version came with problems, do you have them also??
    I was in the online chat from bukkit and they sayd the plugin makers should update their plugins, but without my old plugins yours dont even work good, i can only play in 1 world now.

    Do you have the same problem with your plugins?

    EDIT: bmobsreload dont even work and if i look in console its an unknown command.
  6. Offline


    Ok, I am going to switch to keeping up with the latest recommended build of craftbukkit. I have updated the plugin to version 0.5.3, and using the LRB, I was able to run all commands, and even kill slimes using /bkill.

    There, try out the latest version. If you need a link to the latest recommended build there's a link in my signature.
  7. Offline


    When using this with Multiverse, errors appear.

    According to the maker of Multiverse, worlds are loaded the correct way in Bukkit, so it may be related to your plugin? Either way, is there any chance something can be done to let them work togeather? ;(

    Craftbukkit version git-Bukkit-0.0.0-458-g557f3d2-b440jnks (MC: 1.3)

    thank you :)
  8. Offline


    Does bMobs still get rid of mobs correctly after its finished loading or does your server freeze after this?
  9. Offline


    Just a heads-up: bMods is broken in builds >= 454. onPlayerCommand has been removed; you need to switch to the newer onCommand method. Note that onCommand is the preferred method even for the current RB. :)
  10. Offline


    Appears to.
  11. Offline


    This might be a stupid question, but RB53 = b440 right?
  12. Offline


    No (53 was the recommended build a couple of days ago) but I'm working on getting bMobs updated for 440 now, haha.
  13. Offline


    Oh great, thanks for the quick reply, im watching this thread now, i've been searching for a plugin to control mobs :)
  14. Offline


    There ya go, try that out. Lemme know if it breaks horribly.
  15. Offline


    im getting this error: u can see versions and so on in the console.

  16. Offline


    I created a new test server with only this plugin enabled (Server and client on 1.3_01, CB 440), played around with it for a while, everything seems to work for now. All commands work, the bmobs config works, also the /bmobsreload works fine. I haven't however tried this on the nether mobs, the slimes and giants (i didn't even know giants existed..)

    There's some feedback i'd like to give thought, to keep the server folder clean, i'd prefer the bmobs config file to be in the plugin folder, like most other plugins do. If this is possible. I imagine it's not that much work to change this. Unless there's a special reason it's placed in the main folder.

    Otherwise, everything seems to work properly on 440, unless i missed something of course.
  17. Offline


    Tried 0.5.4 hoping it would fix the MultiWorld Issue, still no luck. I think it got even worse, when using /bmobsreload once the worlds are loaded up, I get:

  18. Offline


    This is GREAT!
    It allowed me to get these awful slimes outta here!
    Not using multiworld... and on cb432
    thanks :)
  19. Offline


    Hello, I used your bMobs in before versions, because I loved it. I really hate spiders in real life and in the game, that I always stop the game when I see one. But, this time, at 1.3_01, bMobs is not working. It's really weird. When I do /bkill monsters, then the monsters die. So that actually works.
    I'm getting this error (every 5 seconds):
    2011-03-01 15:12:25 [SEVERE] Could not pass event CREATURE_SPAWN to bMobs
    at com.bradsproject.BradleyJewell.bMobs.bMobsEntityListener.onCreatureSpawn(bMobsEntityListener.java:37)
    at org.bukkit.plugin.java.JavaPluginLoader$45.execute(JavaPluginLoader.java:354)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    I'm getting it a lot. Please help me, I want to play with mobs on, but without spiders!
  20. Offline


    not working under craft bukkit build 480
    2011-03-01 15:37:05 [SEVERE] Could not pass event WORLD_LOADED to bMobs
        at com.bradsproject.BradleyJewell.bMobs.bMobs.reload(bMobs.java:180)
        at com.bradsproject.BradleyJewell.bMobs.bMobsWorldListener.onWorldLoaded(bMobsWorldListener.java:23)
        at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:312)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
        at org.bukkit.craftbukkit.CraftServer.addWorld(CraftServer.java:280)
        at org.bukkit.craftbukkit.CraftWorld.<init>(CraftWorld.java:44)
        at net.minecraft.server.WorldServer.<init>(WorldServer.java:29)
        at org.bukkit.craftbukkit.CraftServer.createWorld(CraftServer.java:231)
        at com.earth2me.essentials.Essentials.onEnable(Essentials.java:150)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:414)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)


    2011-03-01 15:40:57 [SEVERE] Could not pass event CREATURE_SPAWN to bMobs
        at com.bradsproject.BradleyJewell.bMobs.bMobsEntityListener.onCreatureSpawn(bMobsEntityListener.java:37)
        at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:349)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
        at net.minecraft.server.World.a(World.java:750)
        at net.minecraft.server.EntitySlime.C(SourceFile:100)
        at net.minecraft.server.EntityLiving.H(EntityLiving.java:194)
        at net.minecraft.server.Entity.f_(Entity.java:165)
        at net.minecraft.server.EntityLiving.f_(EntityLiving.java:230)
        at net.minecraft.server.EntitySlime.f_(SourceFile:48)
        at net.minecraft.server.World.a(World.java:1011)
        at net.minecraft.server.WorldServer.a(WorldServer.java:53)
        at net.minecraft.server.World.f(World.java:993)
        at net.minecraft.server.World.d(World.java:970)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:354)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
  21. Offline


    what would i type if i wanted Squids, Slimes and Creepers ONLY
  22. Offline


    Hey Brad811,

    first i thought, that the propertie file will not be generated, but then I saw your post "same as craftbukkit.jar" ...

    Would you mine put that file into the plugin folder aswell? maybe a new directory bMod or s.th. like that, but in the folder above plugin sucks...

    If yes or not: Keep going :) *thumbs up*

  23. Offline


    There ya go guys, updated it so that it creates the properties file in a nice clean folder in your plugins folder.
  24. Offline


    seems to be working great thankyou
  25. Offline


    It works! Thanks!
  26. Offline


    @Brad811 Very nice. Works with 493 as well.

    A couple very minor issues with the moved config file: 1) it doesn't import the settings from the pre-existing config; 2) the newly-generated file uses *nix style newlines, so anyone on Windows who opens it up with Notepad will just get a jumbled one-line mess.
  27. Offline


    Ok, so I love this plugin because it saved my netherworld from becoming overrun with Ghasts and Pigmen, but I still want them to spawn. Can you give us the option to limit the number of a mob. Or even just a nuke option. Basically I would love for this plugin to allow users to set a max number of spawn for any mob type. I would also be okay with just a basic nuke function so that I can clean out my netherworld. Currently with your plugin it's just a mob free zone. Thank you for the plugin though, it works great on 493.
  28. Offline


    Well right now there's a /bkill command, check that out. I'll look into your suggestions!
  29. Offline


    Can that be used as such:

    /bkill ghast

    Edit: Also, thanks!
  30. Offline


    The first post in this thread explains all commands and how to use them.
  31. Offline


    Thanks Brad, solved all our slimey issues. Stupid buggers have been wreaking havoc in my server's mines all week.

Share This Page