Potion on Armor

Discussion in 'Archived: Plugin Requests' started by drkakaq, Dec 28, 2013.

  1. Offline

    drkakaq

    I am requesting a plugin that would allow a user to have a potion effect only when they have their armor equipped. I.E., a player is invisible, only when they are wearing their golden boots (this is for kitpvp). I would need it to hook into the king kits plugin so that when they select that kit, it gives them the potion effect, but when they remove the armor, it takes the effect away.
     
  2. Offline

    scarabcoder

    Hmm... This sounds easy. I might be able to do this. I'm going to need more info, though. Either I add a config, or you will have to tell me what armor goes to what potion effects.

    drkakaq Done with version 1.0. This one makes all of the gold (*ahem* budder) armor have special potion effects. The helmet has water breathing, the chestplate has extra hearts, the leggings have jump boost, and the boots have speed. Download: http://scarabcoder.pancakeapps.com/butterpotion.jar

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  3. Offline

    Garris0n

    ಠ_ಠ
     
    mattrick and Fluxanoia like this.
  4. Sky fans -_-
     
    Garris0n and Fluxanoia like this.
  5. Offline

    drkakaq

    Could you add a config file so that I could use it in future kit updates, and would it be possible to make it per world as well? Thanks for version one so fast! My server is currently running 1.7.2 if that makes any difference.
     
  6. Offline

    scarabcoder

    Sure! Give me an example of a config.
     
  7. Offline

    drkakaq

    Worlds Enabed:
    - world
    Armor:
    - Armor Type: [Armor Name/ID]
    - Potion Type: [Potion Effect]
    - Potion Amplifier: [Potency/Amplifier]
    - Lore Check: [Check for Specific Lore True/False]
    - What lore should we check for:
    - Infinite Potion Time: [True/False]
    - If False, how long:
     
  8. Offline

    scarabcoder

    Last edited by a moderator: Jun 6, 2016
  9. Offline

    drkakaq

    scarabcoder That'a alright. I just really need this plugin to be more configurable so I can use it in future updates. I do appreciate the effort.
     
  10. scarabcoder if you give me the source, I can do the configuration. (I should :D) In the last time I have learned much about configurations etc. :D
     
  11. Offline

    drkakaq

  12. Offline

    scarabcoder

    I'll try and send you the source, or make a new one. It really isn't too hard! Lionhard
     
  13. Offline

    xxCrazySkullxx

    Can you do this plugin it's potion effects on swords and armor. I have a example config?

    http://forums.bukkit.org/threads/sword-damage-potion-effect.214215/
     
  14. Offline

    scarabcoder

    xxCrazySkullxx That does sound easy, in a way. Do you want it to work like enchantments, with lores? And I may still continue this...
     
  15. Offline

    xxCrazySkullxx

    Umm. I don't really know what you mean but, I want it if they have the sword and premission node to use the effect they can use it.
     
  16. Offline

    drkakaq

    Adding effects to weapons and stuff would be pretty awesome if you could add that. scarabcoder
     
  17. Offline

    scarabcoder

    I'll try making the armor one now.
     
  18. Offline

    xxCrazySkullxx

  19. Offline

    drkakaq

  20. Offline

    scarabcoder

    So sorry for not working on this. I have been doing Minecraft mods.... Someone else might have to do this. Sorry :(
     
  21. Offline

    drkakaq

    Is anybody else interested in taking over a project like this one?
     
  22. Offline

    ShearsSheep

    scarabcoder
    Would chu be able to send me the code, i may need it in future.
     
  23. Offline

    scarabcoder

    ShearsSheep I don't have the code anymore, it got deleted :(
    However, here is the basic outline:
    Player click inventory event:
    wait one tick (it won't work if you don't), then check if the player is wearing, for example, diamond boots. If he is, add speed for infinity. If he isn't, remove speed effects. Of course, if the player drinks a potion of speed, then clicks in his inventory, it will remove the speed.
     
  24. Offline

    ShearsSheep

  25. Offline

    drkakaq

    ShearsSheep If you get this plugin working, would you mind posting a link for a download on this thread?
     

Share This Page