Inactive [FUN/MISC] BleedingMobs v3.5 - Make those mobs bleed [Craftbukkit-1.1-R2 dev]

Discussion in 'Inactive/Unsupported Plugins' started by Perdog, Jul 25, 2011.

?

Do you find this useful?

  1. Yes

    85.4%
  2. No

    14.6%
  1. Offline

    Perdog

    [​IMG]

    BleedingMobs
    Make your mobs bleed a little
    NOTE: Please use the BukkitDev site at: http://dev.bukkit.org/server-mods/bleedingmobs/
    That is also where all updates will be done from now on.
    Click on the 4th spoiler for the old post, not sure why there's a BB code glitch here.​
    old post (open)
    old post (open)
    old post (open)
    old post (open)

    BleedingMobs is a plugin I developed for my own server. It didn't seem right that those suckers weren't bleeding all over the place while I hacked them up with my sword. So I developed this, to make it a little more satisfying when I attacked mobs.
    This is also the first plugin I have ever developed, so expect there to be bugs. If you do find any bugs just leave a reply or Email me and I'll try to tend to the issue as fast as possible (I'm in college so I can't tend to the plugin at all times of the day). I hope you enjoy my plugin, please let me know if you like it and find it useful :)
    Screenshots:
    New screenshots will be up as soon as possible!​
    Videos:
    How to setup the config:
    I know there has been some confusion with the Config.yml, so here is something to help you guys out.​
    Code:
    // Maximum particles allowed in the world. Reduce this, if the server lags.
    max-particles: 200
    //When an entity dies.
    death:
        //On entity death, how much blood is dropped by the mob. Randomly selected between from and to.
        amount:        to: 35        from: 25
        //How long the stained ground stays before disappearing (in server ticks = 20/s).
        stain-life:
            to: 120
            from: 80
        //How long bone stays lingering around (in server ticks = 20/s).
        bone-life: 100    //Colour of the wool, 14 is red (obviously :P). http://www.minecraftwiki.net/wiki/Data_values#Wool
        wool-color: 14
        //Chance that bone will be used as blood in percent.
        bone-chance: 12
        //What materials can be stained.
        saturated-materials:
        - stone
        - grass
        - dirt
        - cobblestone
        - wood
        - sand
        - gravel
        - sandstone
        - wool
        - double-step
        - snow-block
        - clay
        - netherrack
        - soul-sand
        //How long particles stay before disappearing (in server ticks = 20/s).
        particle-life:
            to: 15
            from: 5
        //Chance that wool will be used as blood in percent.
        wool-chance: 40
        //If the blood from entity dying will stain the ground.
        stains-floor: true
    //If you have multiple worlds, but only want this on for selected worlds, put the world name in the [ ], separated by commas. An empty list means all worlds.
    worlds: []
    //When creeper is attacked or dying.
    creeper:
        //Amount of blood particles that the creeper drops.
        amount:
            to: 15
            from: 5
        //How long the stain lasts on the ground.
        stain-life:
            to: 120
            from: 80
        //How long bones dropped stay till disappearing.
        bone-life: 100
        //The colour of the wool (5 is light green).
        wool-color: 5
        //Chance that the creeper will bleed bone in percent.
        bone-chance: 0
        //What materials can be stained by creepers.
        saturated-materials:
        - stone
        - grass
        - dirt
        - cobblestone
        - wood
        - sand
        - gravel
        - sandstone
        - wool
        - double-step
        - snow-block
        - clay
        - netherrack
        - soul-sand
        //How long the particles stick around.
        particle-life:
            to: 15
            from: 5
        //Chance that creepers will bleed wool.
        wool-chance: 50
        //If creepers can stain the ground.
        stains-floor: false
    //When entity is attacked.
    attack:
        //Amount of particles that are dropped.
        amount:
            to: 25
            from: 15
        //How long the stained ground lasts.
        stain-life:
            to: 120
            from: 80
        //How long the bone particle will last.
        bone-life: 100
        //Colour of the wool (again 14 is red).
        wool-color: 14
        //Chance that bone will be bled when entity's are attacked.
        bone-chance: 6
        //Materials that can be stained.
        saturated-materials:
        - stone
        - grass
        - dirt
        - cobblestone
        - wood
        - sand
        - gravel
        - sandstone
        - wood
        - double-step
        - snow-block
        - clay
        - netherrack
        - soul-sand
        //Life of particles bled when entity is attacked.
        particle-life:
            to: 15
            from: 5
        //Chance that entity's will bleed wool when attacked.
        wool-chance: 50
        //If the ground can be stained when an entity is attacked.
        stains-floor: true
    //When entities are damaged by projectiles.
    projectile:
        //How much they bleed.
        amount:
            to: 15
            from: 5
        //How long the stain will last.
        stain-life:
            to: 120
            from: 80
        //How long bone that was bled will last.
        bone-life: 100
        //Wool colour (14 is still red)
        wool-color: 14
        //Chance that bone will be dropped when damaged by projectile.
        bone-chance: 6
        //What materials can be stained.
        saturated-materials:
        - stone
        - grass
        - dirt
        - cobblestone
        - wood
        - sand
        - gravel
        - sandstone
        - wool
        - double-step
        - snow-block
        - clay
        - netherrack
        - soul-sand
        //How long the particles last.
        particle-life:
            to: 15
            from: 5
        //Chance that wool will be dropped when damaged by projectile.
        wool-chance: 50
        //If floors can be stained or not.
        stains-floor: true
    
    Use this chart to change the colour of the wool http://www.minecraftwiki.net/wiki/Data_values#Wool
    Hope this helps guys. If you have any other questions about the config feel free to drop me a PM and I'll try to explain it better.
    Features:
    • Complete overhaul!
    • Mobs now drop Red wool/Redstone/Bones and stain the ground with their blood
    • Drops disappear over time and are not pickup-able
    • Config file has been added, the following can be configured:
      • Max particles
      • Amount of drops
      • How long the stain lasts
      • The colour of the wool
      • Chance of bone being dropped
      • Chance of wool being dropped
      • How long the drops stick around before disappearing
      • Can disable the stain effect for Creepers, on entity damage, or entity death
    **NOTE: This code was developed by Snowleo, he was generous enough to leave a source code for people to pull from :D by request I changed it to this and personally I much prefer it now. Full credit goes to Snowleo, I only tweaked the code a tiny tiny bit**
    Download


    Email me if you have any questions
    Change-log:
    Version 3.4:
    • Compatibility with CraftBukkit 1.1-R1
    • New Bukkit Event system
    • Optimized block replacement (should not trigger any physics update anymore)
    • Optimized event handling
    • Statistics by Hidendra
    General info: Since Version 3.4 this plugin send statistics about the usage to the serverhttp://metrics.griefcraft.com/. You can disable this using the command /bleedingmobs disable-metrics
    Version 3.1
    • Candy mode (Hint: set particle material to cake)
    Version 3.0
    This project has a new owner. I'm the original author of the mod.
    • Support for Enderdragon (broken, because Bukkit does not call the events, but it will work once they implement them)
    • Fall damage now creates a blood effect (can be configured)
    • Implemented the NoLagg compatibility.
    • More comments in the config.yml
    • Blood is only triggered, if the damage event is not canceled (can be configured)
    • Updated for 1597
    Also all the changes that I made in my branch:
    • Prevent Enderman pickup of wool blocks
    • Enderman bleed black wool and coal
    • The blood can be configured now in config
    • Fix bug with explosions releasing particles twice
    • Different colored blood stains don't overwrite each other
    • Updated for the new config code.
    Version 2.5 part 1/2
    • Added bits of code provided by bergerkiller that will hopefully let this and NoLagg co-exist.
    • Next update will update the config file.
    Version 2.3
    • Thanks again to Snowleo, the chunk reload issue was fixed.
    Version 2.2
    • Snowleo has added a config file, which allows stains to be toggled for certain events
    • If I have the time, and if I feel like it, I may attempt to add to the config file to make individual mobs toggle-able.
    Version 2.1
    • Tweaked a method to fix the onEntityExplode. It isn't completely fixed yet, but I think it's a bit better then it was before. Thank you too Zarius for pointing out the problem too me :)
    Version 2.0
    • Code has been completely changed
    • Expect to love this plugin A LOT more
    Version 1.3
    • Minor bug fix
    • Added additional features
    Version 1.2
    • Small adjustment too remove Dropped Redstone​
    Version 1.1
    • Recoded so that players can't pick up restone that is dropped, and it disappears when they try to pick it up (should prevent any lagging from occuring if a lot of mobs are taking damage)
    Version 1.0
    • Finished plugin and released it to bukkit :) with thanks too nisovin for helping with a part in the coding
    Version 0.1
    • Didn't work at all
    To-Do list:
     
  2. Offline

    Perdog

    Actually... Can I see your config file? After looking at the error log again I think you may have a few numbers mixed up in there.
     
  3. Offline

    phondeux

    I'm using the default with creeper blood set to zero.
     

    Attached Files:

  4. Offline

    Perdog

    You cannot have any numbers set to 0, it has to be 1 or more. That would explain the issue

    Also, Updated for the new 1.8 RB :D

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

    phondeux

    How do I make it so creepers dont bleed then? I just want the wool and sulfur effect.
     
  6. Offline

    MuttsNuts

    Sometimes zip files are intended to be jars so I just rename the file type from .zip to .jar and they work. Obviously if it was intended to be a .zip file then thats probably not going to work.
     
  7. this conflicts with nolagg, together, they let you pick up the red wool, redstone, and bones
     
  8. Offline

    MuttsNuts

    Yeah I mentioned this on the BukkitDev site and also in the NoLagg thread. Seems like nothing can be done about it sadly :'(. It's choose one or the other. I stuck with this until I can find a dev that can strip out the only part I want from the NoLagg plugin that benifits me, the TNT part of it. Works like a dream :)
     
  9. Offline

    blackwolf9

  10. Offline

    Perdog

    I fixed it so that the jar was inside the file :p
    Like MuttsNuts said, I'm aware of the issue, I'm just not sure how to fix it :( I would look into it but with work and everything I spend what free time I have on the new plugin I'm developing.
    If you want I could maybe try to strip that part out (With the other Devs permission of course) and just send it to you in a pm or something?
    I would LOVE to do that for you, but I don't know how to hook into other plugins yet :( I'm currently trying to learn for my new plugin, and once I do learn I'll see if I can add that in here for you if I find the time. It may take a while though :/
     
  11. Offline

    MuttsNuts

    @Perdog
    That would be awesome!
    I have no idea when it comes to coding so that would be superb.
    So yeah, if bergerkiller, dev of NoLagg is happy for you to do that that'll be cool, just throw me a pm.
    As it happens, if you're interested. I am currently setting up a server and really could do with having a team of coders on board.
    I am holding off going live at the moment with the 1.9 update round the corner as its bound to break everything and maps needing to be scrapped again (as predicted by Bukkit team), so just taking a bit of time to try and get things set up and running smoothly and the way I want them.
    I have a silly amount of plugins that can be played about with (with plugin owners permissions of course) to better the server and for coders like yourself to practice and develop your skill.
    My server runs from a fully dedicated server located in Germany, currently has 8GB ram, x2 1TB raid 1, AMD Athlon II X4 605e, 64bit WWS 2008 R2. All hardware will be upgraded in the near future to 32GB ram, Intel Xeon X3440 and 60GB SSD etc.
    Server address is mcraftonline.com, whitelist only, so just ask if wanting whitelisted. As mentioned at the moment server is in setting up stage with a few players that pop in now and again.
    Anyway thank you again. Really appreciated.
    Kudos for the most unique plugin available at present.;)
     
  12. Offline

    Perdog

    I would absolutely love to be apart of a team if you get one put together :D Like you said it would be a great learning experience (as I am still learning, there are a lot of things that I could learn from some other reallllyy good devs :p). Let me know if you do start putting a team together :) I think it would be a lot more fun to work with people and problem solve things together, rather then work alone and have to post things on the forums and wait for replies (which can sometimes take a while :p).

    In the mean time I'll PM @bergerkiller, or if he happens to see that first, and ask him if it's okay.
     
  13. Offline

    MuttsNuts

    :D I'll keep you posted on the building of an awesome dev team. I take it your IGN is Perdog? If so I'll add you to the whitelist so you can pop in at any time. I have a forum for my server coming soon too. I'll let you know the address as soon as it's alive.
    Look forward to working with you.:D
     
  14. Offline

    Perdog

    You are correct to assume such :p

    Also, I got a pm back and he said it was okay as long as I give him credit, or give it a nolagg name, but since I'm not publishing it, I'll just put his name in the author part of the plugin.yml :)
     
  15. Offline

    MuttsNuts

    That sounds good :). Can't wait for the result. My server handles TNT quite well but as 2 of my classes will have use of TNT but with no way to control spamming of it (a cooldown or similar), this works just as well. Well works very well in fact and makes large TNT detonations fun to watch :D.
    Thanks again. I've whitelisted you now so if you ever wanna pop on and see whats goin' on, you can.
     
  16. Offline

    VoidWhisperer

    Please make the config for this easier to configure. Also, make it easier use the configurations without making the plugin go insane everytime you load it. The config is currently confusing.
     
  17. Offline

    Perdog

    I know it's really confusing but that's the only way to really do it :/ I'm really sorry about that. PM me, and let me know what problems your having with it, and I'll gladly help you out with it :)
     
  18. Offline

    Cubear

    Would there be a way of toggling this per entity type? currently it works on all entities but i notice that creepers have their own special configurations. people on my server complain about skeletons having blood.. is it possible to make them only spit bones when struck?
     
  19. Offline

    Perdog

    Well I wasn't going to because it's gonna be a mess to try to do it, but since it's been requested more then once, how can I say no :p I'll give it a go, and see what I can come up for you guys :)
     
  20. Offline

    kahlilnc

    Oh for some reason some people were picking up all the wool and bones that were dropping.
     
  21. Offline

    MuttsNuts

    Are you using the NoLagg plugin as currently that causes this but a fix should hopefully be coming soon.
     
  22. Offline

    kahlilnc

    lol yeah. Bad luck I have ;(
     
  23. Offline

    MuttsNuts

    Yeah I chose this over NoLagg to be honest but Perdog tells me NoLagg may be hooking into BleedingMobs to fix this small issue. Also check out LandMines. Well worth a look at. Runs perfectly, only has a minor console error message that doesn't cause any harm. It was fully tested on my server for a couple hours last night and it recieves a thumbs up. Explosion size is 2x2 with current config and at this moment cannot be changed (coming soon). Direct hit to a player causes 9 hearts damage. All in all a good plugin :D
     
  24. Offline

    BioRage

    Don't let this die! :)
     
  25. Offline

    Rocky447744

    Hi, Funny Plugin, BUT i wont that players can be take the wool or bones.... how i can fix this?
    Help me out PLEASE! ;)
     
  26. Offline

    Perdog

    Its not dying :p I'm just doing a bunch of other projects at the moment, and its hard to make time for all of them :p
    I think you're asking to have pickupable drops? If that's the case then... I can try to work it in as a config option but like I said, I'm busy with other projects, I will try to make time though :)
     
  27. Offline

    MuttsNuts

    Perdog is extremely busy and will try to keep this up to date. Don't worry guys, BleedingMobs isn't going anywhere :D
     
  28. Offline

    dragonz102

    If you can You Should Add Rainbow mode you know "For the Lolz"
     
  29. Offline

    happypumkin

    Or bleed cakes, yummy yummy blood cakes
     
  30. Offline

    Legolas75893

    PLEZZZ UPDATE :D? loljk, take your time.
     
  31. Offline

    MuttsNuts

Share This Page