Adding extra health to a player

Discussion in 'Plugin Development' started by TGlev, Sep 5, 2014.

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

    TGlev

    Dear Bukkit Developers,
    I am trying to add extra health to a player in Minecraft, but I want a huge number. Like 1000 hearts, if I use the setMaxHealth() method it will show the health of a player using the health bar. If you use a huge number like 1000 it will cover a big part of your screen. Is there any way to fix this? I just want a player to have a 1000 hearts, if its possible also displaying this under the playername, but this is possible with a scoreboard I belive.

    Sorry if my english is bad, it's not my native language. Please correct my english if I'm wrong.
     
  2. Offline

    Totom3

    TGlev One option is to use health scaling : Player#setHealthScale(double) and Player#getHealthScale()
     
  3. Offline

    nzkiwi.5000

    Another option is to virtually give the player the 1k health. Make a damage listener and check if the player that has got 1000 health is damaged, then recount rthe damage and apply the recounted damage to him.
     
  4. Offline

    teej107

  5. Offline

    nzkiwi.5000

Thread Status:
Not open for further replies.

Share This Page