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

    So drop red dye instead of Redstone? and make skeletons drop bones? It's do-able, pretty easily, but if you want to be able to pick it up then I don't think I'll add that, just because then the item they drop would be way to easily to acquire
     
  3. Offline

    pengh

    that could be, it might have been my wolf attacking.

    ps: and ya I agree, this shouldn't drop anything you pickup, purely aesthetic.
     
  4. Offline

    Perdog

    AH yes if your wolf was attacking that would cause that issue, I'm about too test the next version which will only cause the drop if a Player entity attacks them
    Other feature include:
    • Sheep drop Wool
    • Chickens drop Feathers
    • Creepers drop Sulphur
    • Skeletons drop Bones
    • Spiders drop Web
    • Players also drop Redstone
    All of which are non-pickup-able
     
  5. Offline

    pengh

    awesome, I look forward to trying it.
     
  6. Offline

    olimoli123

    Good idea tho :D
     
  7. Offline

    Perdog

    Thank you :)
     
  8. Offline

    yakasuki

    great plug-in but can you change blood to red dye it 'would be much better XD
     
  9. Offline

    clitcomander

    I was seriously doubting myself when i started looking for people to help get this off the ground. many people told me bloods not supposed to be in minecraft, I said NO. i should be dammit.

    yeah im surprised it caught on so fast, i dident even get a chance to try this hemoglobin one someone els made for me to try.
    http://forums.bukkit.org/threads/we-need-a-blood-plug-please.27607/
    i hope we get a bunch of ideas and further development of this until it looks really really good.

    also i have more of these great idea plug ins, just never knew anyone with enough talent to make them worth developing.

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

    olimoli123

    hmm, i got an idea. When you get attacked, you turn red.. well i know zombies do, maybe you can take advantage of that?
     
  11. Offline

    Perdog

    I looked into it earlier but Red dye isn't classified under Materials, so ItemStack wouldn't pick up the string, I'll look into it again though, there may be another way to do it.

    @clitcomander I agree notch should add blood into the game options, and I only say options because the graphics of the blood may cause lag, so it would probably be better if it was toggle-able. And what are these ideas? I doubt I have the talent but attempting them may be a good learning experience :)

    It might be possible, but I have a suspicion that it's client side, and it's just a quick texture change when the Zombies take damage. Never the less I'll see what I can do :)

    But none of this will likely get done till around 4 tonight, I got classes at 10 and 2
     
  12. Offline

    microskies

    I have a few suggestions :) Sorry if they have already been said, I have a habit of reading but not taking in anything :/
    • Making it so the redstone image is kind of broken apart so it looks more like blood (Kind of like how smoke from Flames are, although this may be impossible without the help of BukkitContrib)
    • Having sheep drop redstone as well as Wool, I reckon that would be cool, and more realistic :)
    • Having a configurable 'drops' so you can make the 'blood' look different.
    • Oh crap, I forgot this one :(
     
  13. Offline

    Perdog

    @microkies I think the first request is impossible.. at least for my skill level, I have no idea how to use bukkitcontrib yet.
    2nd request is easy too add in so that can be done for sure :)
    and 3rd is possible.. But I'm still learning how to do configurables, I'll add it too the list but don't expect it to get implemented very soon

    And I'm quite surprised by how many requests I'm getting for this :D I didn't think it would be this popular haha

    Got redstone changed to red rose, and sheeps now also drop "blood", testing it now, if all goes well download should be updated to version 1.4 soon :D

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

    yakasuki

    hmmm when they bleed out do they get hurt in the process cuz that would be cool like you hit them with a type of sword and it has a time limit to bleeding out and the person gets hurt cuz he's bleeding XD it would make it more realistic the only thing is the time limit for bleeding out XD (i probably made this to hard to read i suck at explaining)
     
  15. Offline

    Perdog

    Pretty sure I understand what your talking about, Hit them once, they bleed for specified amount of time, and during the time they take constant damage.. Only problem being is I don't have the slightest idea how to do that lol
     
  16. Offline

    clitcomander

    http://www.youtube.com/watch?v=-eoCG3SgE_A
    can you make it do this???
    just make a lil less fall out and only bones when the mob dies, and make it so when creepers explode the wool isent blown out of the ground as a pick up. that or take out creepers all together.
     
  17. Offline

    Perdog

    @clitcomander I watched that video earlier today actually lol I was blown away, I WANT to make my plugin do that SOOOOO BADLY, it would be freaking amazing, but I don't know how... BUT I am willing to give it a try, if I start making any progress I'll post seperate url's here in the comments, and if I start making REALLY good progress, I'll update the link for this to it. No promises though because all of this is completely new to me.

    @clitcomander The deed is done sir :D

    Plugin has been completely overhauled, A LOT more visually pleasing.
    Check it out :D
    I'll get some screen-shots up tomorrow if I have time, if not then some will be up Monday or Tuesday, in the mean time download and get a first hand experience of what it looks like :D

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

    At first I was like -_-
    Then I tried it. Thumbs up. It's very visual. Nearly looks like it belongs in the game.
     
  19. Offline

    matthayez011

    can you make an option were it takes out bones and redstone?
     
  20. Offline

    Perdog

    @Brock Blocking Samson Thanks :D but I can't take full credit on it :p
    @matthayez011 I can try and see what I can do for you, but I'm not that great with coding configs yet
     
  21. Offline

    riotherio

    just to say, you're awesome! :D
     
  22. Offline

    jtlcr777

    I love this, gives a good visual affect. When you DO get good at making configs, do you think you can add how much "blood" comes out? Because right now I think the mobs bleed a little too much, and I would like to tone it down.

    I sorta don't like the bones coming out (unless its a skele), so make that configurable too. good luck on learning how to make configs!
     
  23. Offline

    Perdog

    Thanks :D
    Will add that to my list of To-Do's for you :D
     
  24. Offline

    clitcomander

    all i have to say is WOW, for your first plug in im blown away, your doing a great job. Ill be checking this everyday now, Im very pleased to see so many blood plugs since i posted the idea on the forums section. ill tell you some of my top secret ideas soon see if you can take a stab at them.


    and a heads up, i DID run into a problem with the creepers blowing the wool out of the ground. this is a potentially big problem for some servers like mine, cuz people will go around blowing the hell out of the ground harvesting red wool. if anything just make creepers not bleed onto the ground like in the video i posted above. just items, and in the video, i can honestly say thats too many items as you cant see through them well while fighting. so maybe half the ammount of just like you siad in your to do list, add an option in config for that.

    AGAIN, WOW, your gonna be a popular plug in developer if you stick with it.
     
  25. Offline

    Perdog

    Wow thank you :) but I'm going to have to make the note in the original post a bit bigger, I don't want people expecting amazing things out of me :p the person that posted the video you sent me left a source code for me to pull from, I've been looking over that code learning it, and i edited it a bit to clean it up. I think I can edit the amount of blood that the drop, as for the creeper problem... that may take me some time to figure out, I can probably just stop them from bleeding completely, or maybe make it explosion proof.. I'll check it out.
    as for those secret ideas, the sound like the would be complicated, but I'll try to do them if youd like :) and new versions wont be out till monday or tuesday, I'm going to visit my grandpa for the long weekend, and I apologize for any huge spelling mistakes in this, I'm doing it from my android and its jumpy as hell lol
     
  26. Here's a quick demo video of the plugin in action. (v.2) Day and night examples on friendly and hostile mobs.
    Wish I could of found a pig to rapid hit but oh well.

    http://www.youtube.com/watch?v=dxHsz0qHwD0
     
  27. Offline

    Perdog

    Vv
    Very nice! Do you mind if I use this video in the description? :)
     
  28. Yeah go right ahead.
     
  29. Bug report: When ground is full of blood, if u dig the floor fast -> u get red wool
     
  30. Offline

    pengh

    wow love the blood effect on the ground, coming along nicely
     
  31. Offline

    clitcomander

    yeah same thing when the creeper explodes, it honestly THE only reason its not in my server now, we tried it out for 30 min, and I MISS IT SOO BAD. after you have had your mobs bleed, you cant go back.

    I shall be patient and wait till monday or tuesday when the epic developer tweaks it a bit. it will be even better.
     

Share This Page