跳到正文

Custom Bossbars

作者:splker125

Custom Bossbars is a lightweight Forge client/server mod that lets datapacks and commands create custom Minecraft-style bossbars with fully configurable colors, audience, direction, and render mode.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Short Description
Datapack-driven custom bossbars for Forge 1.20.1, with single and dual-sided modes, configurable colors, direction, scoreboards, and player targeting.

CurseForge Description
Configurable Bossbar HUD is a lightweight Forge client/server mod that gives datapacks and server commands a flexible custom bossbar system.

It does not add gameplay logic by itself. Instead, it lets map makers, event hosts, minigame creators, and server owners create custom HUD bars and control them entirely from commands or datapack functions.

Use it for timers, capture zones, faction control, boss phases, progress meters, contested objectives, roleplay events, or any system where a clean visual progress bar helps players understand what is happening.

Basic Commands
Create a bar:

psbossbar add mypack:timer {"text":"Event Timer"}

Set a value:

psbossbar set mypack:timer max 300
psbossbar set mypack:timer value 150

Show it to everyone:

psbossbar set mypack:timer global true

Show it only to selected players:

psbossbar set mypack:timer players @a[team=red]

Use a scoreboard as the progress source:

scoreboard objectives add event_timer dummy
scoreboard players set time event_timer 300

psbossbar set mypack:timer max 300
psbossbar set mypack:timer value_score time event_timer

Create a dual-sided capture bar:

psbossbar add mypack:zone_a {"text":"Zone A"}
psbossbar set mypack:zone_a mode dual
psbossbar set mypack:zone_a max 100
psbossbar set mypack:zone_a value_score cap_a capture
psbossbar set mypack:zone_a marks 5

Show it near a location:

execute positioned 100 ~ 200 run psbossbar set mypack:zone_a players @a[distance=..80]

Invert direction:

psbossbar set mypack:zone_a inverted true

Set colors with decimal RGB values:

psbossbar set mypack:zone_a left_color 9433087
psbossbar set mypack:zone_a right_color 16727622
psbossbar set mypack:zone_a clash_color 16777215

Also you can test the mod using this datapack:
https://www.curseforge.com/minecraft/data-packs/custom-bossbars-toolkit

Requirements

  • Minecraft Forge 1.20.1
  • Must be installed on both the server and each client
  • A datapack, command block setup, or server command logic is needed to control the bars

This mod is best used as a visual HUD tool for creators who already have, or want to build, their own gameplay logic.

You may use this mod in modpacks, servers, videos, and datapacks. Credit is appreciated.
License: MIT

常见问题

Custom Bossbars 支持哪些 Minecraft 版本?

Custom Bossbars 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Custom Bossbars 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

splker125 的其他作品

查看全部 →