nineMinecraft is a joke site.
nineMinecraft is in no way affiliated with Modrinth or 9minecraft. (And frankly, who wants to be affiliated with the latter?)
Bossbar Lib

Bossbar Lib

Data pack

A simple bossbar library allowing for per entity bossbars

Server Game MechanicsLibraryUtility

30 downloads
2 followers

Bossbar Lib

What is it?

Bossbar lib is a library that provides entity specific bossbar functions. It is highly reccomended that you use a datapack to use this however commandblocks will work fine.

Functionality:

Upon creating a bossbar you will be able to display the bossbar with function eb:display_bar. If the entity is a player, that entity will see the bossbar for themselves, if not, you will need to add the showBossbar tag to the entity to display it to all nearby entites.

How to use:

After installing the datapack and reloading you will be able to create a bossbar. To do this run the function eb:add_bossbar command to create a bossbar for yourself. To craete it for other entities you will need to execute as them. To display your bossbar, in a repeating commandblock you need to run execute as @a run function eb:display_bar. If you wish to change your bossbar you will need 2 commands at a minimum: in a repeating commandblock: execute as @a run function eb:update_bar and then to change the values you can use any of these commands:

  • function eb:change_bossbar_value {value:<Positive Integer>} - Changes the value of the bossbar
  • function eb:change_bossbar_max {max:<Positive Integer>} - Changes the maximum of the bossbar
  • function eb:change_bossbar_color {color:"<Valid Bossbar Color>"} - Changes the color of the bossbar
  • function eb:change_bossbar_style {value:"<Valid Bossbar Style>"} - Changes the style of the bossbar
  • function eb:change_bossbar_name {value:'<Valid JSON Formatting>'}

Project members

SmoothTurtle872

Member


Technical information

License
Project ID