How do i refuse making health bar larger?

Discussion in 'Plugin Development' started by jakgon, Aug 29, 2015.

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

    jakgon

    hey, i'm making plugin and
    i want to protect making health bar larger(lines)
    so i want to just make use 10 fields of health bar,

    but not only make just 10 field, also i want to make make one fields of health size larger.
    it means, if i want to have 60 health, not a 3 lines of health bar. just use 10 fields(like 1.5.2) and one fields of health bar is 6 health. if i get 6 health, my one field can full-charged.

    how can i do that?
     
  2. Offline

    maxecito

    Code:
    player.setHealthScale(health);
    = You can set the health with maxHealth to whatever, 2000, and then use this, to keep the display at 1 "bar".
     
  3. Offline

    jakgon

    it's not work at 1.7.10
     
  4. Offline

    maxecito

    It is. (http://jd.bukkit.org/)
    Player.setHealthScaled(health);
     
Thread Status:
Not open for further replies.

Share This Page