Solved No Strength II

Discussion in 'Plugin Help/Development/Requests' started by FlobGaming, Apr 7, 2015.

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

    FlobGaming

    Hello! It would really help me if someone could please make a simple, light-weight plugin that just disables the brewing of strength II potions. So basically When you have brewed a normal strength potion and when you try to put glowstone dust to make it a tier 2, it simply wont do anything. Thanks!
    ~ Flob
     
  2. Offline

    BladeFireTurtle

    I should be able to find time to do this today. (I'm assuming you want someone to make it for you because of the other thread). :)
     
  3. Offline

    FlobGaming

    :D Yes your right btw.
     
  4. Offline

    BladeFireTurtle

    Phew! Well that was the longest time I've spent writing 45 lines of code! :oops:
    Turns out PotionStands don't really have a nice API so I tried a few things before I could get it to work.

    I would've liked it to cancel the placement of STR pots when there is goldstone dust in the stand however this wasn't possible as if the player placed it fast enough they could still make a STRII potion.

    Instead I've made it check upon completion of a potion if there is glowstone dust and any strength potion (extended potion included) and cancel the event if there is. This means if there is a strength potion in the stand along with any other potion type and you are using glowstone it won't so anything and will just keep looping (trying to brew but not being able to). - You may need to explain this to your players.

    While not the best solution its the best I could do. Here's the link: https://copy.com/VeqqCOzd2lxTYZbC

    Hope that helps! :)
     
  5. Offline

    FlobGaming

    Thanks @BlazeFireTurtle the plugin works great and sorry for requesting something twice within 24 hrs xD. This will really help me :D.
     
  6. Offline

    nverdier

    @FlobGaming Please mark your thread as filled. See this for more info.
     
  7. Offline

    BladeFireTurtle

    No worries, glad I could help! :)
     
Thread Status:
Not open for further replies.

Share This Page