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

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

?

Do you find this useful?

Yes 216 vote(s) 85.4%
No 37 vote(s) 14.6%
     
  1. Offline

    Perdog

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [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.

    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 [user]bergerkiller[/user] 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 [user]Zarius[/user] 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 [user]nisovin[/user] for helping with a part in the coding

    Version 0.1
    • Didn't work at all

    To-Do list:

    This post has been edited 53 times. It was last edited by h31ix Dec 16, 2012.
  2.  
  3. Offline

    Perdog

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This was a few weeks ago? Okay, well if you're willing, download it again, there's been an update. It may or may not have fixed that problem.
  4. Offline

    Gandalf_911

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm having this issue on my server, I think it has to do with when the creepers explode?
    Code:
    2011-08-16 18:36:49 [SEVERE] Could not pass event ENTITY_EXPLODE to BleedingMobs
    java.util.ConcurrentModificationException
        at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
        at java.util.AbstractList$Itr.next(Unknown Source)
        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)
    oh i think this problem got solved when I installed the latest version of this plugin :) I used the 2.1 earlier :)

    This post has been edited 1 time. It was last edited by Gandalf_911 Aug 15, 2011.
  5. Offline

    Perdog

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    There's another new download now :p it's just an update for the new build.
  6. Offline

    ishar

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @happypumpkin
    i dont use essentials for my god the plugin i use is called feature pack and it works fine with perdogs plugin it also changes the time and weather of the day and locks it and i would suggest getting it if you dont have it
  7. Offline

    theakore

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I cant express how much everyone on my server loves this plugin! keep up the good work :)
  8. Offline

    Wiernusz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Will this work with PVP?
  9. Offline

    Perdog

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It will, it makes all entities "bleed", I'm currently juggling this and another this I'm working on, but I am trying to make something so you can choose what does and doesn't bleed in the config.
  10. Offline

    happypumkin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    ya it works with pvp
  11. Offline

    Perdog

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    lol thanks, can't believe I was noob enough to forget to hit reply.
    Gandalf_911 likes this.
  12. Offline

    clitcomander

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    UPDATE, been using this EPIC plug in since it was stable enough, BUT we do have a big problem i found the other day........

    IF you get injured in anyway warp out of the chunk and warp back in, you can collect all the bones on the ground!!
    thats not good at all, people could just team up smash the hell out of eachother, warp out, warp back and collect......


    so HOW may i ask, do we go about solving this one, cuz its an active/inactive chunk glitch...it forgets its not really dropping the bones when you leave the chunk and come back...
  13. Offline

    Perdog

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Uhmm.... Well.. That's a very good question. I don't think there is a way to fix that :/ It's already in a hashmap and should remember it's location... The only way I can think for you to fix it is to set the life of the bones to something very minimal. That way it isn't able to stay around longer enough for them to warp out and back.
  14. Offline

    snowleo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Perdog Try to use CraftEntity.getUniqueId() instead of getEntityId()
    clitcomander likes this.
  15. Offline

    Perdog

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Doesn't work, creates a crap load of errors though.
  16. Offline

    snowleo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Well you have to change the datatype from Integer to UUID.
    clitcomander likes this.
  17. Offline

    Perdog

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I did but it then says that it can't be static, only problem is I can't find anywhere that it involves static
  18. Offline

    Perdog

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @clitcomander
    Try the new download. Hopefully it fixes the issue. Thank snowleo once again :) he's like a superhero
    clitcomander likes this.
  19. Offline

    bikboii

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I recommend allowing custom drops, but if that is hard to do, the I recommend just giving the options of redstone/bones/red wool/*red dye*
  20. Offline

    clitcomander

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    you guys make a great team, Im a HUGE fan of snow leos, hes part of essentials team, and just look how awsome he is, helping others all the time. thanks you guys!!!:D ill download and check it out tonight, im kinda in the middle of packing today, moving. that was a SUPER fast fix:cool:
  21. Offline

    CGV2222

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Theres a client mod that does the same but actually. I like this one more! :D It would be cooler if they dropped like redstone particles or something though. Just saying.
  22. Offline

    Perdog

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ya I wanted to do that at one point, but I couldn't find particles anywhere in the API. I would love to do that if I could.
    That one was all leo :p I've kinda been neglecting this plugin because I've been trying to make my other one :( So I'm really sorry if this isn't getting upgraded like it should.
    Also I'm moving really soon too, so I understand your busy-ness. Moving sucks.

    This post has been edited 1 time. It was last edited by Perdog Aug 19, 2011.
    clitcomander likes this.
  23. Offline

    doomsage165

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This plugin rocks but could you make a singleplayer version?
  24. Offline

    Perdog

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I would but I have absolutely no idea how to make mods for singleplayer :/ I don't know if its done the same way or not. Sorry :(
  25. Offline

    BioRage

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Is there a way to remove redstone from coming out?
    GothikaGeist310 likes this.
  26. Offline

    snowleo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    In the config, increase the chance for wool.
    GothikaGeist310 likes this.
  27. Offline

    Aza24

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Would you be able to give CButD a source so I can keep your plugin up to date easily?
    Thanks
  28. Offline

    GothikaGeist310

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This is an awesome plugin. However can you change the color of the wool dropped? I noticed you have different numerical values in there for creepers (green blood?) Think you can make blood color configurable?
  29. Offline

    Perdog

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It is configurable
    Code:
     wool-color: 14
    14 is the color id for red, use this chart, and replace 14 with the number of the color you want.

    GothikaGeist310 likes this.
  30. Offline

    Dragon_Slayer

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I like the plugin is there more plugins you can make in 2011 or in 2012
    [diamond] :D
  31. Offline

    GothikaGeist310

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That's awesome! However I still have another question: I noticed that putting the wool chance for everything to 100 meant that there was no more redstone dropping out (That's a GOOD thing!) But then so much wool dropped that it SOMETIMES caused a relatively minor slowdown while bonking Mobs on the head with my weapon. Any other way to stop redstone drops? (Besides when you bonk a creeper's head in, I don't think their guts spill out their eyeballs like a high-pressure "goo" fountain)
  32. Offline

    Perdog

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm currently attempting to make another right now actually, but I'm pretty busy with work and other things, so progress on it is pretty slow

    @GothikaGeist310 Just Increase the bone and wool chances, and set the amount of particles dropped to something lower

Share This Page