Inactive [MECH/ADMN] ModDamage - Change damage mechanics on the fly!

Discussion in 'Inactive/Unsupported Plugins' started by KoryuObihiro, May 20, 2011.

  1. Offline

    KoryuObihiro

    ModDamage
    We've moved to BukkitDev!
     
  2. Offline

    KoryuObihiro

    I think I've successfully integrated Perms 3.1 - it was just a pain to get the setup correct. Had to start from scratch with Permissions plugin only so I could understand what was going on.

    Anyway, I've updated the bug tracker with new bugs, milestones, and labels so that it's much more informative as to the progress of the next build - 0.9.1 should be coming out shortly, as soon as I crush two more minor bugs I've listed just now. For full details, see the !
     
  3. Offline

    Atkin94

    Nice one, I'll upgrade to Permissions v3.1 then.

    -Thanks for the hard work.
     
    KoryuObihiro likes this.
  4. Offline

    Hex

    Code:
     item:
                    axe:
                    hoe:
                        Diamond:
                            - 'set.0'
                    pickaxe:
                    spade:
                    sword:
    What am I doing wrong? (Trying to make the dmg for the hoes zero.
     
  5. Offline

    Atkin94

    Pretty sure he's in the process of updating the plug-in and as such it'd be better to try this when the new version is released and then if the problem persists a solution would be easier/quicker to find.

    -Regards.
     
  6. Offline

    KoryuObihiro

    @Hex This wiki is your friiiiiend. Then we can talk. But you might want to wait for 0.9.1 to do that.:p

    If you're still having trouble figuring it out after reading the tutorial and the config reference, then g'head and PM me - I'm more than willing to help, but I want you guys to use the resources I've given you first.

    0.9.1 is out! Remember: Progress is tracked in the Github tracker and commit logs. Bugs and feature requests should be posted on the Github issue tracker. ModDamage reference is on the Github wiki. And downloads are on the Github downloads page.

    Just in case it's not clear, I basically use Github for everything. :p But don't be afraid to post here, either! Any feedback is better than none.

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

    Atkin94

    Good job, can you clarify something for me. If I have both Fire and Suffocation strings set to 'set.0' does that mean I will not set on fire and that I will not lost air or does it mean when I am on fire I wont take damage and when I lose air I wont take damage?

    -Regards.
     
  8. Offline

    KoryuObihiro

    @Atkin94 Currently the latter, for technical reasons.
     
  9. Offline

    Atkin94

    That is a shame, I am really only looking to use this plug-in for those features. Ah well, thanks.

    -Regards.
     
  10. Offline

    KoryuObihiro

    Also, it's worth pointing out there is a distinct difference between "drowning" and "suffocation" - the former is water-based, and the latter is block-based (i.e., gravel, sand)
     
  11. Offline

    Atkin94

    Ah thanks for clarifying, I added drowning and set to 'set.0' however I still lose air when underwater. Is this supported and if not would you be willing to add this feature?

    -Basically I would like it so that when underwater the bubbles do not deplete.

    --Thanks for you time.
     
  12. Offline

    KoryuObihiro

    You'd probably want something similar to this, then.
     
  13. Offline

    Atkin94

    Thanks for the suggestion, I had already looked into that before but I hate the idea of having to wear a helmet. I also realise your mod is centered around damage but I hate watching the bubbles on the air meter deplete, anyways thanks, looks like I'll be in search of another plug-in to do that. Still good job on the latest version.

    -Regards.
     
  14. Offline

    Hex

    Is it possible to make the hoe to do 0 dmg?
    Code:
                melee:
                    axe:
                    hoe:
                        - '0'
                    pickaxe:
                    spade:
                    sword:
                    BUKKIT_ITEMNAME:
     
  15. Offline

    KoryuObihiro

    @Hex That'd just add zero to any attacks involving a hoe - you want 'set.0'.

    Other than that, looks good. :)
     
  16. Offline

    Cobrand

    Hey, your mod doesn't work on my server. Zombies have 10 hearts but they must have 30.
    I haven't any error, it just doesn't work ... I think it is because i have made my config.yml wrong, but what is wrong ?

    EDIT2:
    Finally, i got this error :
    Code:
    [SEVERE] Error occurred while enabling ModDamage v0.9.1 (Is it up to da
    te?): java.util.ArrayList cannot be cast to java.lang.String
    java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.St
    ring
    at com.KoryuObihiro.bukkit.ModDamage.Handling.WorldHandler.loadMobHealth
    (WorldHandler.java:373)
    at com.KoryuObihiro.bukkit.ModDamage.Handling.WorldHandler.reload(WorldH
    andler.java:95)
    at com.KoryuObihiro.bukkit.ModDamage.Handling.WorldHandler.<init>(WorldH
    andler.java:68)
    at com.KoryuObihiro.bukkit.ModDamage.ModDamage.loadConfig(ModDamage.java
    :675)
    at com.KoryuObihiro.bukkit.ModDamage.ModDamage.onEnable(ModDamage.java:9
    6)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:750)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:253)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:134)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    I am really sorry if i have made mistakes in my post, i'm still learning english. Please tell me if I did some mistakes.
     
  17. Offline

    KoryuObihiro

    The fact you're giving me a console output is much better than average already - but what Bukkit version are you using? Also, the link is broken for your config, why not just post it here?
     
  18. Offline

    Cobrand

    Eheh you're right, my server is on VQS and I didn't see my server was in 767 build :p
    Thanks, I will try after uptade.
     
  19. Offline

    KoryuObihiro

    Actually, I just started getting an NPE that may need investigation - perhaps you've merited another revision of ModDamage. :p
     
  20. Offline

    tassox33

    Getting these errors quite a bit.
    Code:
    2011-06-05 09:09:10 [SEVERE] Could not pass event ENTITY_DAMAGE to ModDamage
    
    java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftItem cannot be cast to org.bukkit.entity.LivingEntity
    
    at com.KoryuObihiro.bukkit.ModDamage.ModDamage.passDamageEvent(ModDamage.java:434)
    
    at com.KoryuObihiro.bukkit.ModDamage.ModDamageEntityListener.onEntityDamage(ModDamageEntityListener.java:20)
    
    at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:570)
    
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    
    at net.minecraft.server.Explosion.a(Explosion.java:149)
    
    at net.minecraft.server.World.createExplosion(World.java:1339)
    
    at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:137)
    
    at net.minecraft.server.EntityCreeper.a(EntityCreeper.java:120)
    
    at net.minecraft.server.EntityCreature.c_(EntityCreature.java:68)
    
    at net.minecraft.server.EntityLiving.u(EntityLiving.java:692)
    
    at net.minecraft.server.EntityMonster.u(EntityMonster.java:30)
    
    at net.minecraft.server.EntityLiving.o_(EntityLiving.java:231)
    
    at net.minecraft.server.EntityMonster.o_(EntityMonster.java:34)
    
    at net.minecraft.server.EntityCreeper.o_(EntityCreeper.java:69)
    
    at net.minecraft.server.World.entityJoinedWorld(World.java:1071)
    
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:56)
    
    at net.minecraft.server.World.playerJoinedWorld(World.java:1053)
    
    at net.minecraft.server.World.cleanUp(World.java:1030)
    
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:397)
    
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    2011-06-05 09:09:10 [SEVERE] Could not pass event ENTITY_DAMAGE to ModDamage
    
    java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftItem cannot be cast to org.bukkit.entity.LivingEntity
    
    at com.KoryuObihiro.bukkit.ModDamage.ModDamage.passDamageEvent(ModDamage.java:434)
    
    at com.KoryuObihiro.bukkit.ModDamage.ModDamageEntityListener.onEntityDamage(ModDamageEntityListener.java:20)
    
    at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:570)
    
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    
    at net.minecraft.server.Explosion.a(Explosion.java:149)
    
    at net.minecraft.server.World.createExplosion(World.java:1339)
    
    at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:137)
    
    at net.minecraft.server.EntityCreeper.a(EntityCreeper.java:120)
    
    at net.minecraft.server.EntityCreature.c_(EntityCreature.java:68)
    
    at net.minecraft.server.EntityLiving.u(EntityLiving.java:692)
    
    at net.minecraft.server.EntityMonster.u(EntityMonster.java:30)
    
    at net.minecraft.server.EntityLiving.o_(EntityLiving.java:231)
    
    at net.minecraft.server.EntityMonster.o_(EntityMonster.java:34)
    
    at net.minecraft.server.EntityCreeper.o_(EntityCreeper.java:69)
    
    at net.minecraft.server.World.entityJoinedWorld(World.java:1071)
    
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:56)
    
    at net.minecraft.server.World.playerJoinedWorld(World.java:1053)
    
    at net.minecraft.server.World.cleanUp(World.java:1030)
    
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:397)
    
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    2011-06-05 09:09:14 [SEVERE] Could not pass event ENTITY_DAMAGE to ModDamage
    
    java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftItem cannot be cast to org.bukkit.entity.LivingEntity
    
    at com.KoryuObihiro.bukkit.ModDamage.ModDamage.passDamageEvent(ModDamage.java:434)
    
    at com.KoryuObihiro.bukkit.ModDamage.ModDamageEntityListener.onEntityDamage(ModDamageEntityListener.java:20)
    
    at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:570)
    
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    
    at net.minecraft.server.Explosion.a(Explosion.java:149)
    
    at net.minecraft.server.World.createExplosion(World.java:1339)
    
    at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:137)
    
    at net.minecraft.server.EntityCreeper.a(EntityCreeper.java:120)
    
    at net.minecraft.server.EntityCreature.c_(EntityCreature.java:68)
    
    at net.minecraft.server.EntityLiving.u(EntityLiving.java:692)
    
    at net.minecraft.server.EntityMonster.u(EntityMonster.java:30)
    
    at net.minecraft.server.EntityLiving.o_(EntityLiving.java:231)
    
    at net.minecraft.server.EntityMonster.o_(EntityMonster.java:34)
    
    at net.minecraft.server.EntityCreeper.o_(EntityCreeper.java:69)
    
    at net.minecraft.server.World.entityJoinedWorld(World.java:1071)
    
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:56)
    
    at net.minecraft.server.World.playerJoinedWorld(World.java:1053)
    
    at net.minecraft.server.World.cleanUp(World.java:1030)
    
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:397)
    
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    2011-06-05 09:09:14 [SEVERE] Could not pass event ENTITY_DAMAGE to ModDamage
    
    java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftItem cannot be cast to org.bukkit.entity.LivingEntity
    
    at com.KoryuObihiro.bukkit.ModDamage.ModDamage.passDamageEvent(ModDamage.java:434)
    
    at com.KoryuObihiro.bukkit.ModDamage.ModDamageEntityListener.onEntityDamage(ModDamageEntityListener.java:20)
    
    at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:570)
    
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    
    at net.minecraft.server.Explosion.a(Explosion.java:149)
    
    at net.minecraft.server.World.createExplosion(World.java:1339)
    
    at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:137)
    
    at net.minecraft.server.EntityCreeper.a(EntityCreeper.java:120)
    
    at net.minecraft.server.EntityCreature.c_(EntityCreature.java:68)
    
    at net.minecraft.server.EntityLiving.u(EntityLiving.java:692)
    
    at net.minecraft.server.EntityMonster.u(EntityMonster.java:30)
    
    at net.minecraft.server.EntityLiving.o_(EntityLiving.java:231)
    
    at net.minecraft.server.EntityMonster.o_(EntityMonster.java:34)
    
    at net.minecraft.server.EntityCreeper.o_(EntityCreeper.java:69)
    
    at net.minecraft.server.World.entityJoinedWorld(World.java:1071)
    
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:56)
    
    at net.minecraft.server.World.playerJoinedWorld(World.java:1053)
    
    at net.minecraft.server.World.cleanUp(World.java:1030)
    
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:397)
    
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    This is my setup on bukkit 820
    Code:
    Offensive:
        world:  # This should be the name of the world you want to configure - NOT "worldName",
                    #   unless...that's the name. :P
            global: # settings applied regardless of group
                generic:
                    animal:
                    humans:
                    melee:
                    ranged:
                    armor: # Applied whenever...something...is equipped
                    mob:
                    ranged:
                animal:
                    Chicken:
                    Cow:
                    Pig:
                    Sheep:
                    Wolf:
                melee:
                    axe:
                        - 'binom.100*div.2'
                    hoe:
                    pickaxe:
                    spade:
                    sword:
                        - 'binom.100*div.2'
                    BUKKIT_ITEMNAME:
                ranged:
                    bow:
                        - 'binom.100*div.2'
                    egg:
                    snowball:
                armor:
                    EXAMPLE_HELMET.EXAMPLE_LEGGINGS: # Order of equipment doesn't matter - just **no duplicate slots.**
                    EXAMPLE_LEGGINGS.EXAMPLE_CHESTPLATE:
                mob:
                    Creeper:
                        - '20'
                    Ghast:
                        - '20'
                    Giant:
                        - '20'
                    Skeleton:
                        - '20'
                    Slime:
                        - '20'
                    Spider:
                        - '20'
                    Zombie:
                        - '20'
                    ZombiePigman:
                        - '20'
                nature:
                    blockexplosion:
                    burn:
                    cactus:
                    explosion:
                    fall:
                    fire:           # "fire" is exposure to a fire or lava block, "burn" is damage taken
                                    #   after you survive that exposure
                    lava:
                    lightning:
                    suffocation:
                    void:           # "void" is damage from falling through the world
            groups:
                groupname:          # MUST match up with the name in Permissions
                    generic:        # This pretty much follows the global configuration, so specific
                                 #   nodes have been omitted here in favor of readability.
                    animal:
                    melee:
                    ranged:
                    armor:
                    mob:
                    nature:
                    groups:         # this changes PvP damage so group relationships are possible
                        groupname2: # Again, this needs to be a valid group in Permissions
        world1:
            global: # settings applied regardless of group
                melee:
                    axe:
                        - 'binom.100*div.2'
                    sword:
                        - 'binom.100*div.2'
                ranged:
                    bow:
                        - 'binom.100*div.2'
                mob:
                    Creeper:
                        - '1'
                    Ghast:
                        - '1'
                    Giant:
                        - '1'
                    Skeleton:
                        - '1'
                    Slime:
                        - '1'
                    Spider:
                        - '1'
                    Zombie:
                        - '1'
                    ZombiePigman:
                        - '1'
        world2:
            global: # settings applied regardless of group
                melee:
                    axe:
                        - 'binom.100*div.2'
                    sword:
                        - 'binom.100*div.2'
                ranged:
                    bow:
                        - 'binom.100*div.2'
                mob:
                    Creeper:
                        - '10'
                    Ghast:
                        - '10'
                    Giant:
                        - '10'
                    Skeleton:
                        - '10'
                    Slime:
                        - '10'
                    Spider:
                        - '10'
                    Zombie:
                        - '10'
                    ZombiePigman:
                        - '10'
    
    Defensive:
        world:
            global:
                generic:
        # Same format as the Offensive node...except since the world can't take damage
        # you probably don't want to clutter up things with a global "nature" node.
    
    #############################
    # MobHealth config reference
    #
    #    In contrast to damage modification, there is only ONE MobHealth
    #    definition string permitted, and that is as a property of the tree node
    #    in config. For example:
    #
    #    $mobname: 'range.14.2'
    #
    #    Leaf nodes will only get ignored.
    #    *Remember*, 200 is the max for any given mob health.
    #
    #---------------------------------
    #
    #  Integer setting: use an integer to always set a spawned mob's health to #value
    #   ex., $mobname: '3'
    #
    #---------------------------------
    #
    #  Simple range equation (base - range) <= health on spawn <= (base + range)
    #
    #  - 'range.#base.#range'
    #
    #    ex., $mobname: 'range.64.14' means 50 <= mob health on spawn <= 78
    #
    #---------------------------------
    #
    #  Interval-based range equation (base - (interval * factor)) <= health on spawn <= (base + (interval * factor))
    #   ...where factor is calculated in a similar fashion to the Attack Roll in DamageCalculator.
    #
    #  - 'range_int.#base.#interval.#range'
    #
    #    ex., possible outputs for - 'range_int.12.2.3' would be 6, 8, 10, 12, 14, 16, 18.
    #---------------------------------
    
    MobHealth:
        world:
            Chicken: '12'
            Creeper: 'range.20.5'
            Cow: '12'
            Ghast: 'range.35.10'
            Giant: 'range.35.10'
            Pig: '12'
            Sheep: '12'
            Skeleton: 'range.35.10'
            Slime: '12'
            Spider: 'range.35.10'
            Wolf: 'range.35.10'
            Zombie: 'range.35.10'
            ZombiePigman: 'range.35.10'
        world1:
            Chicken: '4'
            Creeper: 'range.10.1'
            Cow: '4'
            Ghast: 'range.15.1'
            Giant: 'range.15.1'
            Pig: '4'
            Sheep: '4'
            Skeleton: 'range.15.1'
            Slime: '4'
            Spider: 'range.15.1'
            Wolf: 'range.15.1'
            Zombie: 'range.15.1'
            ZombiePigman: 'range.15.1'
        world2:
            Chicken: '8'
            Creeper: 'range.15.5'
            Cow: '8'
            Ghast: 'range.25.10'
            Giant: 'range.25.10'
            Pig: '8'
            Sheep: '8'
            Skeleton: 'range.25.10'
            Slime: '8'
            Spider: 'range.25.10'
            Wolf: 'range.25.10'
            Zombie: 'range.25.10'
            ZombiePigman: 'range.25.10'
    
    Scan:
        world:
            global:
                - 'sword'
            groups:
                Default:
                    - 'sword'
        worldName2:
    Let me know if you need any further information. I'm using these mods: Bigbrother, BOSEconomy, Buyabilities, Essentials, HeroSneak, Lockette, MobBounty, Moddamage, Multiverse, NoExplode, OwnBlocks, Permissions, Tips, WorldBorder, WorldEdit, WormholeXTreme. Thanks
     
  21. Offline

    KoryuObihiro

    @tassox33 Ah! Lots on information, right up front. Excellent.

    Alright, so, I've already got the CREATURE_SPAWN NPE in the issue tracker - I'm working on releasing that soon, as right now I somehow managed to completely break MobHealth without my knowing it. It'll be fixed shortly.

    As for your configuration itself...why are you using "binom.100"? You realize that's not necessary if you want something to run every time, right?

    Let me also inform you that the 'range.#base.#range ' calculation string is about to change to a suggestion made by @Digi at the beginning of the thread - it's going to change to literal bottom and upper bounds. In your case, 'range.14.16', or 'range.15.35' (instead of 'range.15.1' and 'range.25.10', respectively)
     
  22. Offline

    tassox33

    I was using that in case I wanted to change it to 50% later. Ah seems fine, I'll just keep a heads up when I DL the new version. LOVE your mod btw, now with mobbounty i can have difficulty/coin reward for mob kills with progression on worlds.
     
  23. Offline

    KoryuObihiro

    About to release 0.9.2. :)

    Released! Downloads gogogo.

    Cobrand, Hex, tassox33 - Let me know if things still aren't working for you.

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

    tassox33

    Thank you man your fast, testing now.
    Tested creeper and zombie deaths on all 3 worlds, working without any errors.
     
    KoryuObihiro likes this.
  25. Offline

    Hex

    It works for me now ;)
     
    KoryuObihiro likes this.
  26. Offline

    tassox33

    got this one this morning, same code as last time, aside from changing range.25.10 to range.10.35
    Code:
    2011-06-06 10:19:01 [SEVERE] Could not pass event ENTITY_DAMAGE to ModDamage
    java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftItem cannot be cast to org.bukkit.entity.LivingEntity
        at com.KoryuObihiro.bukkit.ModDamage.ModDamage.passDamageEvent(ModDamage.java:389)
        at com.KoryuObihiro.bukkit.ModDamage.ModDamageEntityListener.onEntityDamage(ModDamageEntityListener.java:20)
        at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:570)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at net.minecraft.server.Explosion.a(Explosion.java:149)
        at net.minecraft.server.World.createExplosion(World.java:1339)
        at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:137)
        at net.minecraft.server.EntityCreeper.a(EntityCreeper.java:120)
        at net.minecraft.server.EntityCreature.c_(EntityCreature.java:68)
        at net.minecraft.server.EntityLiving.u(EntityLiving.java:692)
        at net.minecraft.server.EntityMonster.u(EntityMonster.java:30)
        at net.minecraft.server.EntityLiving.o_(EntityLiving.java:231)
        at net.minecraft.server.EntityMonster.o_(EntityMonster.java:34)
        at net.minecraft.server.EntityCreeper.o_(EntityCreeper.java:69)
        at net.minecraft.server.World.entityJoinedWorld(World.java:1071)
        at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:56)
        at net.minecraft.server.World.playerJoinedWorld(World.java:1053)
        at net.minecraft.server.World.cleanUp(World.java:1030)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:397)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  27. Offline

    KoryuObihiro

    Ohhh, I see the problem - it's calling a damage event when an item is getting damaged. Eaaaaasy fix.

    Sounds strange, but easily reproducible. What was happening when this error got thrown(if you know)?
     
  28. Offline

    tassox33

    Idk a creeper explosion or ppl shooting arrows usually bring these up more then anything else, but i could be wrong. Heres another , its diff so i think it merits a post.
    Code:
    16:09:36 [SEVERE] Could not pass event ENTITY_DAMAGE to ModDamage
    java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftArrow cannot be
     cast to org.bukkit.entity.LivingEntity
            at com.KoryuObihiro.bukkit.ModDamage.ModDamage.passDamageEvent(ModDamage
    .java:389)
            at com.KoryuObihiro.bukkit.ModDamage.ModDamageEntityListener.onEntityDam
    age(ModDamageEntityListener.java:20)
            at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.j
    ava:570)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:310)
            at net.minecraft.server.Explosion.a(Explosion.java:149)
            at net.minecraft.server.World.createExplosion(World.java:1339)
            at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:137
    )
            at net.minecraft.server.EntityCreeper.a(EntityCreeper.java:120)
            at net.minecraft.server.EntityCreature.c_(EntityCreature.java:68)
            at net.minecraft.server.EntityLiving.u(EntityLiving.java:692)
            at net.minecraft.server.EntityMonster.u(EntityMonster.java:30)
            at net.minecraft.server.EntityLiving.o_(EntityLiving.java:231)
            at net.minecraft.server.EntityMonster.o_(EntityMonster.java:34)
            at net.minecraft.server.EntityCreeper.o_(EntityCreeper.java:69)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1071)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:5
    6)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1053)
            at net.minecraft.server.World.cleanUp(World.java:1030)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:397)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  29. Offline

    KoryuObihiro

    Yeah, gotcha. That should be fixed with this next release - now I just gotta make it worth your while to upgrade. :p
     
  30. Offline

    Deolin

    Hello,
    First sorry for my bad english.
    Into you plugin, the command 'set' as bugged:
    This code:
    Code:
    debugging: verbose
    disableDefaultDamage: false
    disableDefaultHealth: false
    negativeHeal: false
    Offensive:
        world:
            global:
                melee:
                    sword:
                        - 'set.2'
                    WOOD_SWORD:
                        - '6'
    Result '3' damages whit my wood sword. :(
    Whit this code, logical result are:
    wood sword default damage (5)
    - 'set.2'
    wood sword new damage (2)
    - '6'
    wood sword new damage (8)
    No ?
    And this code:
    Code:
    debugging: verbose
     disableDefaultDamage: false
     disableDefaultHealth: false
     negativeHeal: false
    Offensive:
        world:
            global:
                melee:
                    sword:
                        - 'set.2'
                    WOOD_SWORD:
                        - '1'
    Result '-2' damages whit my wood sword and heal targets ! :'(
    Y think your option 'negativeHeal' don't work correctly.
    Whit this other code, logical result are:
    wood sword default damage (5)
    - 'set.2'
    wood sword new damage (2)
    - '1'
    wood sword new damage (3)
    Is very difficult to setting correctly my 'config.yml'... :mad:

    My server config:
    I7 64bits 4cores 8 ways 3,4ghz
    8go ram 1600mhz
    1To ddr sataIII 6g/s
    Nvidia Gforce gtx 460 1024mo gddr5
    Windows 7 ultimate 64bits
    Bukkit 818
    plugins :
    essential 2.3 whit permission integrated
    PermissionsAttributeProvider
    Moddamage 0.9.2
     
  31. Offline

    embty

    Once again I want to use this for chainmail but fail attempts lol
     

Share This Page