armor replace

Discussion in 'Plugin Requests' started by Cubefun, Jan 31, 2022.

Thread Status:
Not open for further replies.
  1. Offline

    Cubefun

    I want a plugin that replace better armor when the player pick armor or take it from chest
    even if the player have no armor
    no permission or command needed
    minecraft version: 1.8.8
     
  2. Offline

    pixelrider2000

    I mean it's pretty clear that unenchanted diamond armor is better than unenchanted iron armor and thus would replace it when picked up. But what if the armor is enchanted? I can't think of a way to deal with that of the top of my head. I mean who is to decide, whether a diamond helmet with 'thorns III' is better or a second diamond helmet with 'unbreaking II'?

    Could you elaborate on your idea a bit further?
    Thanks ;)
     
  3. Offline

    Cubefun

    i just want the normal armor without enchantment but i mean if the player has for example iron armor but he picked up enchanted diamond armor it replace anyways its about like what is better
    thank you
     
  4. Offline

    pixelrider2000

    OK, one more question though: When the player picks up better armor, should the old one be replaced or should it drop on the ground or else?
     
  5. Offline

    Cubefun

    just replace it put it in the inventroy
     
  6. Offline

    pixelrider2000

    Got it. I'll start work on this in about a week or so. Shouldn't take too long to make :)
     
  7. Offline

    pixelrider2000

    When the player picks up an item from the ground, it should work. I didn't figure out how to do it when a player picks up an item from a chest though.

    Let me know if it works :)
     

    Attached Files:

  8. Offline

    Cubefun

    ok i will test this but i need the chest thou so when u figure out tell me
    and thank you so much
    and maybe inventoryclick event something like that
    and if u can add a msg that the armor replaced for each boots etc.. just something like better boosts has been equiped etc..
     
  9. Offline

    gochi9

    But what if a plyer crafts a better armor? Should that be equipped as well?

    Also what if a player enchants a armor?
     
  10. Offline

    Cubefun

    no need to add these events :D
     
  11. Offline

    gochi9

    This is the plugin

    I think it should work okay.

    Command: /ar - Permission: ar.reload - Reload config messages
     
    Last edited: Feb 6, 2022
  12. Offline

    Dai_Kunai

    Out of curiosity, if they grab armor from a chest and it equips it, where does the old armor go?
     
  13. Offline

    Cubefun

    just to the player inventory
     
Thread Status:
Not open for further replies.

Share This Page