Health Bossbar Help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Incorrupt

Member
Jan 15, 2021
1
0
1
23
I am trying to make a bossbar that matches the value of the enemies health. I have tried for hours and tried examples from previous people with no luck.

I have been trying stuff like this:

Code:
on damage:
    victim is chicken
    set {_health} to victim's health*100/damage*100
    create bossbar titled "&fChicken &8(&aLevel 1&8)" and id "chick1" for attacker with progress {_health} with colors red
    wait 5 seconds
    hide bossbar "chick1"

Was hoping someone would know how to solve this.

Server Version: 1.14
Skript Version: Latest
SkQuery 4.1.4
skRayFall+v1.9.18.jar
Skellet
SharpSK
 
Status
Not open for further replies.