Potion Effect Swords

Discussion in 'Archived: Plugin Requests' started by Paralax1800, Oct 26, 2012.

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

    Paralax1800

    Hi,
    Could someone make a plugin that adds potion effects on swords,
    For example when you type /potion (potion name) whilst holding a sword you kind of bind a potion effect to that sword so when you hit with that sword the potion will break, you can set the potion to what ever you want.
    Commands: /potion (potion name)
    Permissions: potion.swords

    Thanks
     
    SICC likes this.
  2. Offline

    RingOfStorms

    So like they would be harmful potions? And those potion effects would be applied to the entity hit?
     
  3. Offline

    Paralax1800

    Yes,
    You can set the potion to what ever you wish ,
    so for example if you set it to potion of slowness then the player hit by the sword would have a slowness effect ,
    its kind of like a splash potion in a sword that only effects the player that is hit by the sword not the user.
     
  4. Offline

    Welknair

    I quite like this idea! For use on other servers, could a configurable option be added to allow the sword to use actual potions from your inventory?
     
  5. Offline

    AmoebaMan

    I'm on it. Dibs basically. I think I might actually record this as part of a YouTube coding series. :p

    Finished. I'll be polishing it off a little bit and uploading to BukkitDev some time soon.

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

    Welknair

    Sweetness! Does this include my suggestion of it using potions from the inventory?
     
  7. Offline

    Paralax1800

    Thanks

    Could you send me the link when its done

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

    AmoebaMan

    Paralax1800 Would you like this implemented as well? Wouldn't be too hard I don't think, but you may not have use of it.
     
  9. Offline

    RingOfStorms

    Just put it in and have it configurable? :confused:
     
  10. Offline

    Paralax1800

    yeah put it in but have a option in the config to turn it off or on.
     
  11. Offline

    AmoebaMan

    Haven't added RingOfStorm's concept, but here's a download link for the plugin. It should suit your purposes.

    PotionSwords v1.0

    Usage:
    • To bind effects to swords, use the command /bindeffect (or /be), and add effects based on the following format: [name]:[level]:[duration]. For example, to add 30 seconds of Poison II to a sword, type the command /bindeffect poison:2:30
    • To clear effects from a sword, use the command /cleareffects
    • To see the effects on a sword, use the command /vieweffects
    Keep in mind: due to limitations on Minecraft, I cannot attach the effects directly to the swords. Instead they are saved separately, with an ID value that is stored as the level of the Power enchantment on the sword. The Power enchantment will not affect the sword's performance by itself, but its level serves as the identifier for the potion effects bound to it. DO NOT remove this enchantment, as doing so will remove the potion effects permanently.
     
    georqq likes this.
  12. Offline

    georqq

    Thanks man this is awesome :D
    Would it be possible to attach potion effects to other items like axes or snowballs?
    Snowballs would be cool for snowball fights ^^
     
  13. Offline

    Paralax1800

    Thanks Heaps
     
  14. Offline

    SICC

    Wait, if the potion only lasts for a set amount of time, why would you need to use a command to clear the effects?

    Also, is there anyway to make the a default time for the potion effects? Like say /be posion:2:10 would be the only time you would be allowed to use? This is a really cool idea, but i would want to make it where people would have to pay to use this command, and if you can set any amount of time you want, i wouldn't be able to set a price for it, if that makes any sense lol.

    One more thing, which potions exactly can you attack to your sword?

    Great job man, gonna try this out.
     
  15. Offline

    AmoebaMan

    The potion effect that is applied when the victim is hit has a limited duration. The effects stay bound to the weapon forever.

    If you and others are interested in using this as an actual element for a server, I may take the time to expand it further and make the things you are requesting possible. The changes that would need to be made are minor, but they still need to be made. The current version has no ability to restrict the effects you attach.

    Literally any effect currently. I was binding Jump 50 to my sword and using it to kill pigs when they jumped to get over blocks.

    Thanks man, the greatest reward for coding something is always just knowing that somebody likes what you've wrought. :D
     
    Williscool98 likes this.
  16. Offline

    SICC

    Ah i see, that makes sense now. Sorry for the late reply, been kinda busy this week. Got around to testing it and it works great.

    Expanding this would definitely be cool, I think this is something that alot of people would want to try out if you did indeed work on it a little more.

    I think if you had set times for each potion it would work great. Cause as of now, using a diamond sword and lets say using it with poison is a little OP lol.


    No problem, I know how much work can go into these things so im always appreciative to people who make plugins. Especially ones who take up requests like this one.
     
  17. Offline

    AndyMcB1

    Is there any chance you could upload the source and tag me once done, if you're okay with that?
     
  18. Offline

    AmoebaMan

    Source is on GitHub, just do a quick Google search for PotionSwords GitHub.
     
  19. Offline

    Welknair

    Eagerly awaiting the addition of the inventory-potions option :)
     
  20. Offline

    T4L_Goose

    Would it be possible to add potion effects that would apply to the holder? I want to make sort of legendary weapons, but I want them to have some sort of downside. Maybe have 2 commands. One that adds effects to the attacked players, and one that adds effects to the holder of the weapon.

    Also, is it possible to add this to ANY weapon or tool? That would make things very interesting.
     
  21. Offline

    DerpyKitteh

    Can you bind the potions to other things beside swords? If not, can this be added?
     
  22. Offline

    Dualzz

    Could you just bind a command to an item, so everyone could use it? If they have permission maybe? Can anyone explain how it should be added to a plugin then?
     
  23. Offline

    Gammafication

    Could you update it so you can bind effects to any item?
     
  24. Offline

    Zarius

    If the other plugin here doesn't get updated with it: OtherDrops can convey a potioneffect with hitting a mob with any item (including lorenames). Eg.

    PHP:
      ANY_CREATURE:
        - 
    triggerhit
          tool
    stick
          lorename
    "Stick of slowness"
          
    potioneffect.victimSLOW@200@2  # slow level 2 for 200 ticks (10seconds)
          
    permissionsslowstick  # add this line if you want to limit to a permission (otherdrops.custom.slowstick)
     
      
    PLAYER:
        - 
    triggerhit
          tool
    stick
          lorename
    "Stick of slowness"
          
    potioneffect.victimSLOW@200@2  # slow level 2 for 200 ticks (10seconds)
          
    permissionsslowstick  # add this line if you want to limit to a permission (otherdrops.custom.slowstick)
    Supports any item/tool & any potioneffect. Lots of other conditions/actions (eg. limit to a certain world, or apply a potioneffect to the attacker, etc)
     
  25. Offline

    Enjoicraft

    How do I make it so it applies a potion effect to a PLAYER
     
  26. Offline

    Enjoicraft

    I tried it, and it's not working D: What file do I put it in? I put this in otherdrops-drops.yml

    Where is the trigger: hit line? I can't see it in your example :(

    I tried this and it still didn't work :(
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
  27. Offline

    Enjoicraft

    I downloaded the latest one. From april 4th
     
  28. Offline

    mattyluggs

    AmoebaMan

    Please can you make a Bukkit Dev page for "Potion Swords" It in an epic idea and would love to add it to my server! I have downloaded the version you linked but don't really get how the command for binding the potion is working. /bindeffect jump:10:10 adds the effect "JUMP:9:200" ??
     
  29. Offline

    Bugattikid2012

    Does anyone know how to get the OtherDrops to do this? I can't get it to work... Help?
     
  30. Offline

    timtower Administrator Administrator Moderator

    You probably want Zarius for this
     
Thread Status:
Not open for further replies.

Share This Page