Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Bossbar Wiki › Guides › Create a Custom Bossbar for Any Entity

Create a Custom Bossbar for Any Entity

Setting Up the Bossbar

The Bossbar Mod automatically creates a bossbar for any entity you designate. You don't need to manually configure health values—the bossbar syncs in real-time with the entity's current and maximum health.

Using the Command

Use the /bossbar command with a target selector to assign a bossbar to an entity:

`

/bossbar add @e[type=zombie,distance=..50] "Boss Name"

`

Replace zombie with any entity type and customize the name in quotes. The bossbar will appear only to players within the configured visibility range, so distant players won't see it.

Customizing Appearance

The bossbar automatically displays the entity's name and health percentage. As the entity takes damage, the bossbar depletes in sync. You can adjust the visibility range in the mod's configuration file to control how far away players can see the bossbar.

Removing a Bossbar

When the entity dies or you want to remove the bossbar, use:

`

/bossbar remove @e[type=zombie]

`

This ensures no orphaned bossbars remain in your world.