Health regeneration issue

Discussion in 'Plugin Development' started by ryunnz2, Jul 15, 2012.

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

    ryunnz2

    Long story short, I'm making an rpg plugin, annndd one of the "races" we'll call it, always regenerates health back to at least 3 hearts, regardless of starvation. Anyone know how to make this happen?
     
  2. Offline

    Kodfod

    1st off, check to see if player health is > 6 (do 6 because you count half hearts and 6 is 3 hearts so you want to stop at 6)
    if Total Health is > 6 then do a repeating task which you can find a tut HERE.

    In That Repeating task, heal the player for 1 for every x ammount of seconds
     
  3. Offline

    ryunnz2

    Thanks! This is my first plugin so I'm just getting things down one at a time.
     
  4. Offline

    Kodfod

    Use the bukkit wiki Developer Portal. It Helps immensely.
     
Thread Status:
Not open for further replies.

Share This Page