BossBar - s99889989/CustomDisplay GitHub Wiki
Display a content in Boss Bar
Attributes
Attribute |
Aliases |
Description |
Default |
Function |
fc |
BossBar function to be used |
None |
Message |
m |
Set the title of the current BossBar |
None |
Style |
|
Set the style of this BossBar[SOLID, SEGMENTED_6, SEGMENTED_10, SEGMENTED_12, SEGMENTED_20] |
SOLID |
Color |
|
Set the color of this BossBar[BLUE, GREEN, PINK, PURPLE, RED, WHITE, YELLOW] |
BLUE |
Progress |
|
Set the progress of the BossBar. This parameter must be between 1.0 (full) and 0.0 (empty) |
0.0 |
Message |
|
CREATE_FOG (A fog is created in the world where the health bar is)DARKEN_SKY (The sky will darken during battle)PLAY_BOSS_MUSIC (The health bar attribute of the ender dragon tells the client to play the BGM of the ender dragob) |
None |
Function
Function |
Description |
create |
Create the BossBar |
set |
Modify the BossBar |
delete |
Delete the BossBar |
Examples
#攻擊顯示BossBar
#The attack shows BossBar.
BoosBarDisplay:
Action:
- Loop[onStart=BoosBarDisplay-Start;onTime=BoosBarDisplay-Time;onEnd=BoosBarDisplay-End;period=10;duration=200]
BoosBarDisplay-Start:
Action:
- BoosBar[Function=create;message={target_name}-{target_nhp}/{target_mhp};Style=SEGMENTED_10;Color=RED;Progress={target_nhp}/{target_mhp}]
BoosBarDisplay-Time:
Action:
- BoosBar[Function=set;message={target_name}-{target_nhp}/{target_mhp};Style=SEGMENTED_10;Color=RED;Progress={target_nhp}/{target_mhp}]
BoosBarDisplay-End:
Action:
- BoosBar[Function=delete]