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

    Tex©

    I am running bukit build 1000 creeper plugin is v2.3 and your plugin is v2.1


    I think (stressing that i'm not 100% positive but am leaning to this plugin) this is conflicting with http://forums.bukkit.org/threads/se...explosions-and-fire-after-a-while-1000.22476/

    if it isn't I'm sorry and help if it is i hope ye can fix it.

    what happens is there will be some other mob hitting you or the opposite and the creeper explodes taking out the "blood" and seeing how if the section replaces the blocks it sees them as "placed blocks" I could fix it by disabling that feature in creeper heal but if you can fix it i would be most great full also keep up the good work :D

    Code:
    2011-08-05 01:19:21 [SEVERE] Could not pass event ENTITY_EXPLODE to BleedingMobs
    java.util.ConcurrentModificationException
        at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:782)
        at java.util.ArrayList$Itr.next(ArrayList.java:754)
        at me.Perdog.BleedingMobs.ParticleEntityListener.onEntityExplode(ParticleEntityListener.java:67)
        at org.bukkit.plugin.java.JavaPluginLoader$61.execute(JavaPluginLoader.java:670)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at net.minecraft.server.Explosion.a(Explosion.java:195)
        at net.minecraft.server.World.createExplosion(World.java:1467)
        at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:145)
        at net.minecraft.server.EntityCreeper.a(EntityCreeper.java:118)
        at net.minecraft.server.EntityCreature.c_(EntityCreature.java:64)
        at net.minecraft.server.EntityLiving.v(EntityLiving.java:685)
        at net.minecraft.server.EntityMonster.v(EntityMonster.java:26)
        at net.minecraft.server.EntityLiving.m_(EntityLiving.java:218)
        at net.minecraft.server.EntityMonster.m_(EntityMonster.java:30)
        at net.minecraft.server.EntityCreeper.m_(EntityCreeper.java:68)
        at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
        at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
        at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
        at net.minecraft.server.World.cleanUp(World.java:1104)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  3. Offline

    Perdog

    I don't get the problem.. Is it replacing the red wool back to the spot where the block was destroyed? or is it not returning any blocks at all?
     
  4. Suggestion:
    Fork goremod on github, and continue there, its easier to track and share code updates using github, as code updates are done relationally.
     
  5. Offline

    Perdog

    That's the plan, I just finished speaking to him earlier today and he's completely okay with me forking the newest version he made, and he's okay with me tweaking it if I have too
     
  6. Offline

    L3nnyBoss

    The Blood on the Ground, does it change to the material before the blood after a while?
     
  7. Offline

    Perdog

    Yes it does, after about.. 10 seconds-ish
     
  8. Offline

    Stupid96

    great Plugin!
    Can I upload a BleedingMob version without bleeding creepers?
     
  9. Offline

    Perdog

    No need too, on monday I'll be updating to a new version, forked from snowleo, everyrhing is configurable, and I think (might be wrong) that you can toggle that, if not I'll try to add it in
     
  10. Offline

    Tex©

    ill set up a fresh server and try to duplicate the problem with just the too plugins and ill get back to you about that and it would make the redwool drop like it would if i dropped it
     
  11. Offline

    Perdog

    Okay thanks :) but wait until monday, because I'll have the newer version posted and it may solve that issue
     
  12. Offline

    clitcomander

    HOW configurable??? like can yu choose for your skeletons to bleed bonemeal and white wool dust?? and so on for each mob??? but either way im still super happy and using this from now on. WE FREAKING LOVE THIS PLUG!
     
  13. Offline

    Perdog

    Not sure yet, I haven't even gotten the time to check it out yet, but that's what I'm going to be working on today :) So keep your eyes peeled for 2.2 :)
     
  14. Offline

    Nytemare3701

    BUG: Bleeding mobs + CreeperHeal causes a fire destroying the red wool to loop the destroy/rebuild trigger, spawning red wool every second.

    [​IMG]
     
  15. Offline

    clitcomander

    I like how when I tnt the ground bleeds, like its mother earth or something...LOL
     
  16. Offline

    Nytemare3701

  17. Offline

    Perdog

    Just an FYI too everyone here on the forums, because I feel like I owe an explanation.
    I know I haven't released a new version as promised :( and I apologize, but I do have good reasoning. Firstly being that I tried out the new version myself and kept getting strange errors. I've been trying to fix them but I haven't had much time to myself lately, and that brings me into point #2 which is my finals are starting next week, so I've been cramming a lot lately. I have been working on it while I've had time though, and I promise that I will get the latest version up ASAP sorry everyone who is waiting :(
     
    clitcomander likes this.
  18. Offline

    Ross Gosling

    @Perdog

    REQUEST

    Configure what bleeding eg disable people bleeding or sheep etc
     
  19. Offline

    Perdog

    So I FINALLY got around to updating this :) Download the new version, check out the new config, and lemme know if you have any bugs/issues :)
     
    Brock Blocking Samson likes this.
  20. Offline

    clitcomander

    im gonna hold out for the individual mobs config.
     
  21. Offline

    Perdog

    So the individual mobs is something that a lot of people would like to see then?
     
  22. Offline

    Stephen304

    How do I set it so that the drops disappear instantly? I still want them to appear but not to stay. The config file is really confusing.

    Edit: Nevermind, I got it. At first I set the from/to of particle life to 0 hoping it would make the "particles" disappear instantly but I then realized that only bones stayed for a bit so I set all bone chance to 0 and it looks great now!

    (I found lingering bones to be annoying and I think most players would confuse it with an actual item if it stayed for too long)
     
  23. Offline

    Perdog

    Very true, and sorry about the config file, I don't know how to make them yet, and this is the one that was provided with the fork. I don't know if there is any other way to do it. Once you figure it out though it's not that bad.
     
  24. Offline

    Larrix

    There is one thing to say: PEGI 16 :D
     
  25. Offline

    james0

    This is seriously one of the most clever and good looking mods I have ever seen. Always wanted a bleeding plugin. Also does it work with other texture packs. Great mod 10/10
     
    Brock Blocking Samson likes this.
  26. Offline

    Perdog

    Good question, although I don't see why it wouldn't work with a different texture pack, depending on the texture pack you have it may make it look really different or strange. I don't see how it could break it though.
     
  27. Offline

    Ross Gosling

    @Perdog

    the configs now really confusing and i'm just going with the default as its impossible to configure
     
  28. Offline

    Stupid96

    @Perdog

    Hi, I've found a bug, with sticky-pistons.
    Do you know what I mean?
    If yes, could you please fix it?

    sorry, I had an outdated version!:rolleyes:

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

    Perdog

    I'll put a tut in the description on how to do the config, I know it seems really confusing at first because I was a little lost with it when I first saw it, but it really isn't that bad.

    Glad to know you solved the problem, but next time you report a problem give a little more detail then that :p or else I won't know what's going on.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  30. Agreed, it's rare for me to find a plugin that's feels like it belongs in my folder all the times. (ex: heroic death) Most plugins I feel as if I'm just testing, having some fun with it and later trash the plugin later down the road, not the case with this one.

    It's very cool when the blood splashes down a cave shaft, or off a cliff, or those long sniper arrow shots. Looks great from far away.
     
  31. Offline

    ishar

    nice mod does this make passive mods and other player bleed as well?
     

Share This Page