← Назад к ресурсам

Bossbar

Create health bars for bosses or entities: easy, performance-friendly, feature-rich.

Modrinth adventure equipment mobs

Описание

# Bossbar **Enhancing Minecraft's bossbar functionality by properly extending it to entities. No more complicated command block setup, lag-inducing detection logic, and cheap attempts at recreating the real deal. This is the real deal now.** # ✅ Features - **Entity bossbars** take the name, health and max health of its entity. - **Range** can be specified for entity bossbars, meaning it's only visible to local players. - **Default bossbars** can be configured (see Configuration) - **Thicken fog & darken skies** with the extended functionality given to entity bossbars. - **Server-side**, meaning clients don't need to download it to connect. - **Easy to use** with the ```/bossbar``` command, swap out a bossbar id with a target selector, and done! - **Optimized** to a lagless extend, compared to Minecraft's bulky command code. # ⚙️ Configuration Configuration can be found in ```config\bossbar.json```. - ```default```: - ``````: [resource_location](https://minecraft.wiki/w/Argument_types#resource_location) - ```range```: [integer](https://minecraft.wiki/w/Argument_types#integer)\ Set the entity bossbar's range. Defaults to ```64```. Any player outside of this range won't see the entity bossbar. - ```darken_sky```: [bool](https://minecraft.wiki/w/Argument_types#brigadier:bool)\ Set if entity bossbar darkens the sky. Defaults to ```false```. - ```thicken_fog```: [bool](https://minecraft.wiki/w/Argument_types#brigadier:bool)\ Set if entity bossbar thickens the fog. Defaults to ```false```. - ```color```: ```(blue|green|pink|purple|red|white|yellow)```\ Set the entity bossbar's bar color. Defaults to ```purple```. - ```style```: ```(notched_6|notched_10|notched_12|notched_20|progress)```\ Set the entity bossbar's visual amount of segments. Defaults to ```progress```. - ```register_before_vanilla```: [bool](https://minecraft.wiki/w/Argument_types#brigadier:bool)\ Register the command extension before vanilla, attempting to parse the bossbar argument as an entity before a server bossbar id. Defaults to ```false```. # 📖 Syntax - ```bossbar set (visible|range|darken_sky|thicken_fog|color|style)``` - ```... visible ```\ Set the entity bossbar's visibility. Defaults to ```false``` for every entity, disabling their bossbar. - ```... range ```\ Set the entity bossbar's range. Defaults to ```64```. Any player outside of this range won't see the entity bossbar. - ```... darken_sky ```\ Set if entity bossbar darkens the sky. Defaults to ```false```. - ```... thicken_fog ```\ Set if entity bossbar thickens the fog. Defaults to ```false```. - ```... color (blue|green|pink|purple|red|white|yellow)```\ Set the entity bossbar's bar color. Defaults to ```purple```. - ```... style (notched_6|notched_10|notched_12|notched_20|progress)```\ Set the entity bossbar's visual amount of segments. Defaults to ```progress```. # 📦 Arguments - ``````: [entity](https://minecraft.wiki/w/Argument_types#entity) - Specifies the entity whose bossbar is to change.\ Must be a player name, a target selector or a UUID. - ``````: [bool](https://minecraft.wiki/w/Argument_types#brigadier:bool) - Specifies the bossbar's visibility.\ Must be either ```true``` or ```false```. - ``````: [integer](https://minecraft.wiki/w/Argument_types#integer) - Specifies the bossbar's range.\ Must be a 32-bit integer number between ```0``` and ```2147483647``` (inclusive). - ``````: [bool](https://minecraft.wiki/w/Argument_types#brigadier:bool) - Specifies if the bossbar darkens the sky.\ Must be either ```true``` or ```false```. - ``````: [bool](https://minecraft.wiki/w/Argument_types#brigadier:bool) - Specifies if the bossbar thickens the fog.\ Must be either ```true``` or ```false```.