Infinite durability and unbreakable equipment

Discussion in 'Archived: Plugin Requests' started by shoter, Nov 20, 2013.

  1. Offline

    shoter

    but you need the lore to be the same as the old armor aswell as the enchants to be honest its a smart idea, but what if you were to do it this way: cancel damage event, then apply the damage directly but taking away certain amount of hp, that way the armor wouldn't get hurt. thomas15v
     
  2. Offline

    thomas15v

    Hmm actually a good idea. If this not work i try that.

    NoArmorDamage.zip

    - Fixed enchantments losts
    - No damage indicator anymore

    Can you show/explain me what you're doing? To break your armor that fast?
     

    Attached Files:

    timtower likes this.
  3. Offline

    shoter

    thomas15v I have linked an epic boss which is a well known plugin allowing for massive customization mob side. You are free to have bosses with over 1000 dmg. Or even 10000000. You might ask well just keep with lower damage, but unfortunately this is the natural scaling process on my server, bosses should get harder and harder.

    timtower

    edit. I even uploaded a video showing armor breaking look on page one.
     
  4. Offline

    thomas15v

    NoArmorDamage.zip

    Changed monitor level to highest i could give (MONITOR). if this not works -_-.
    Btw i can't know how that plugin works (they don't share code).
    But probably they don't use events.
     

    Attached Files:

  5. Offline

    shoter

    thomas15v They share code! But their website is currently down which sucks its all very well documented!.

    Edit. Sorry doesn't work!
     
  6. Offline

    thomas15v

    Ik I also installed that plugin. And checked things out. I get an event if their boss does hits. Lets try what you said.
     
  7. Offline

    shoter

  8. You can use a plugin called Skript

    I have provided you a simple script you can use
    Code:
    every 1 seconds:
        repair helmet of player
        repair chestplate of player
        repair leggings of player
        repair boots of player
        repair sword of player
        repair tool of player
     
  9. Offline

    thomas15v

    My plugin repair the armor every hit. Seems something else is being tricky.
     
  10. Offline

    Garris0n

    I believe there is an nbt tag that does this now.
     
  11. Offline

    shoter

    This is a potentially great idea, I've been using a similar method thus-far however when it comes to bosses being able to on hit the armor it doesn't help.

    Another thing I have noticed is that the armor doesn't lose durability if bosses damage is "reasonable" I have tested with spiderqueen boss which can only deal up to 30 damage and other bosses within a range of 100 damage. They seem not to hurt the armor however when 1000 damage is introduced the armor is one hit gone.
     
  12. Offline

    thomas15v

    shoter I think the armor is already gone before the event can handle it. What means i don't think we can fix this (using the bukkit api).

    I suggest you lower the damage of these mobs.
     
    timtower likes this.
  13. Offline

    shoter

    thomas15v well I know servers that done it like dungeonrealms, there must be a way, there is always a way.
     
  14. Offline

    Necrodoom

    Could always try pair what thomas15v did with a super high unbreaking enchant, though.

    EDIT: actually, will only work up to 40% more damage.
     
  15. Offline

    shoter

    Hey I've heard that in 1.7.2 we are able to change through NBT item property to disable items even beginning to break will this be implemented in the api? Necrodoom thomas15v timtower
     
  16. Online

    timtower Administrator Administrator Moderator

    Probably, but will take some time for the bukkit developers to add it
     
  17. Offline

    thomas15v

    shoter
    Yeah, there's probably a way. But you're pushing minecraft to the limit with setting the damage value's that high. 10000 damage is to high. Everything breaks directly when thats happens.

    I am still working on that deny damage thingy where the health is set directly. Only prob. Its the first time i get errors with player.gethealth(); . So i first need to do some research to completely understand that bug.
     
  18. Offline

    shoter

     
    thomas15v likes this.
  19. Online

    timtower Administrator Administrator Moderator

    thomas15v Is it about "this method is ambiguous?"
     
  20. Offline

    thomas15v

    timtower Euh, yeah. I normally don't program plugins for versions higher that 1.5.2 lol. But I found and solved the problem by my own. (Without raging people on these forums lol)
    But still setting the damage by my own isn't a good idea. Anyone an idea how i set the damage correct? Now a spider can kill me with full diamond (lol i wanted to say quantum).
     
    shoter likes this.
  21. Offline

    shoter

  22. Offline

    filbert66

    Interesting but obvious problem. I'm trying another method...
     
  23. Offline

    shoter

  24. Offline

    shoter

  25. Offline

    filbert66

    Found this in 1.7.2 code, but there is no API to set that. Trying to figure out how to use NBT NMS classes to set it, but that would make it only work on 1.7.2. Would that be OK?
     
    shoter likes this.
  26. Online

    timtower Administrator Administrator Moderator

    If not to big then maybe I can modify it to use reflection ( multi-version )
     
    shoter likes this.
  27. Offline

    shoter

    That would be great!
     
  28. Offline

    shoter

  29. Offline

    shoter

  30. Offline

    filbert66

    Sorry, vacation intervened, and I forgot about this.. I will first be updating my plugins for 1.7.2R0.2, then getting back to this.
     

Share This Page