Bossbar
通过正确扩展实体功能来增强 Minecraft 的原生 bossbar(Boss 血条)功能。不再需要复杂的命令方块设置、导致卡顿的检测逻辑,以及拙劣的仿制品。这才是真正的解决方案。
✅ 特性
- 实体 Boss 血条:自动获取其所属实体的名称、当前生命值和最大生命值。
- 范围:可以为实体 Boss 血条指定可见范围,即仅对范围内的本地玩家可见。
- 默认 Boss 血条:可配置默认值(参见配置部分)。
- 加厚雾效 & 变暗天空:利用赋予实体 Boss 血条的扩展功能实现。
- 服务端运行:客户端无需下载即可连接服务器使用。
- 易于使用:配合
/bossbar命令使用,只需将 bossbar ID 替换为目标选择器即可完成操作! - 高度优化:相比 Minecraft 臃肿的原生命令代码,实现了几乎无卡顿的性能表现。
⚙️ 配置
配置文件位于 config\bossbar.json。
default:<entity_type>: resource_locationrange: integer
设置实体 Boss 血条的可见范围。默认为64。超出此范围的玩家将看不到该实体 Boss 血条。darken_sky: bool
设置是否在使用实体 Boss 血条时变暗天空。默认为false。thicken_fog: bool
设置是否在使用实体 Boss 血条时加厚雾效。默认为false。color:(blue|green|pink|purple|red|white|yellow)
设置实体 Boss 血条的颜色。默认为purple。style:(notched_6|notched_10|notched_12|notched_20|progress)
设置实体 Boss 血条视觉上的分段数量。默认为progress。
register_before_vanilla: bool
在原版命令之前注册命令扩展,尝试先将 bossbar 参数解析为实体,然后再解析为服务端 Boss 血条 ID。默认为false。
? 语法
bossbar set <target> (visible|range|darken_sky|thicken_fog|color|style)... visible <visible>
设置实体 Boss 血条的可见性。默认为false(即禁用所有实体的 Boss 血条)。... range <range>
设置实体 Boss 血条的可见范围。默认为64。超出此范围的玩家将看不到该实体 Boss 血条。... darken_sky <darken_sky>
设置是否在使用实体 Boss 血条时变暗天空。默认为false。... thicken_fog <thicken_fog>
设置是否在使用实体 Boss 血条时加厚雾效。默认为false。... color (blue|green|pink|purple|red|white|yellow)
设置实体 Boss 血条的颜色。默认为purple。... style (notched_6|notched_10|notched_12|notched_20|progress)
设置实体 Boss 血条视觉上的分段数量。默认为progress。
? 参数说明
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
/bossbarcommand, 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:<entity_type>: resource_locationrange: integer
Set the entity bossbar's range. Defaults to64. Any player outside of this range won't see the entity bossbar.darken_sky: bool
Set if entity bossbar darkens the sky. Defaults tofalse.thicken_fog: bool
Set if entity bossbar thickens the fog. Defaults tofalse.color:(blue|green|pink|purple|red|white|yellow)
Set the entity bossbar's bar color. Defaults topurple.style:(notched_6|notched_10|notched_12|notched_20|progress)
Set the entity bossbar's visual amount of segments. Defaults toprogress.
register_before_vanilla: bool
Register the command extension before vanilla, attempting to parse the bossbar argument as an entity before a server bossbar id. Defaults tofalse.
? Syntax
bossbar set <target> (visible|range|darken_sky|thicken_fog|color|style)... visible <visible>
Set the entity bossbar's visibility. Defaults tofalsefor every entity, disabling their bossbar.... range <range>
Set the entity bossbar's range. Defaults to64. Any player outside of this range won't see the entity bossbar.... darken_sky <darken_sky>
Set if entity bossbar darkens the sky. Defaults tofalse.... thicken_fog <thicken_fog>
Set if entity bossbar thickens the fog. Defaults tofalse.... color (blue|green|pink|purple|red|white|yellow)
Set the entity bossbar's bar color. Defaults topurple.... style (notched_6|notched_10|notched_12|notched_20|progress)
Set the entity bossbar's visual amount of segments. Defaults toprogress.
? Arguments
<target>: entity- Specifies the entity whose bossbar is to change.
Must be a player name, a target selector or a UUID.
- Specifies the entity whose bossbar is to change.
<visible>: bool- Specifies the bossbar's visibility.
Must be eithertrueorfalse.
- Specifies the bossbar's visibility.
<range>: integer- Specifies the bossbar's range.
Must be a 32-bit integer number between0and2147483647(inclusive).
- Specifies the bossbar's range.
<darken_sky>: bool- Specifies if the bossbar darkens the sky.
Must be eithertrueorfalse.
- Specifies if the bossbar darkens the sky.
<thicken_fog>: bool- Specifies if the bossbar thickens the fog.
Must be eithertrueorfalse.
- Specifies if the bossbar thickens the fog.
下载 Bossbar
下载 Bossbar
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Bossbar
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Bossbar
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Bossbar
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Bossbar
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Bossbar
下载 Bossbar
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Bossbar
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 添加了配置选项
register_before_vanilla
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
一个基于构建器的 Minecraft 配置库!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧