Random BACAP Challenges
将 BlazeandCave’s Advancement Pack 转变为为你或你的服务器运行的轮换挑战系统。
玩家(或全服)会获得一个随机的 BACAP 进度目标去完成。
依赖: 你的世界 datapacks/ 文件夹中需安装 BlazeandCave’s Advancements Pack。
推荐: 使用隐藏 Boss 栏的材质包,例如 Invisible Boss Bars
测试环境: Paper (26.3)
功能
- 单人模式 – 为自己随机选择一个 BACAP 进度目标。
- 全局挑战 – 为整个服务器随机选择一个 BACAP 进度目标
(启用 BACAP 合作模式 以同步玩家间的进度)。
- Boss 栏界面 – 根据 BACAP 分类显示彩色的标题和描述。
- 组件侧边栏与 GUI – 查看进度目标的各项条件:
- 带有 ✓/✗ 标记的计分板侧边栏。
- 分页的物品箱 GUI。
- 计时器指令 – 在动作栏中显示简单的游戏内计时器:开始 / 停止 / 状态 / 重置。
- 可点击的帮助 – 使用
/challenge 查看并运行你有权使用的指令。
- 跳过投票(全局) – 玩家可以投票跳过当前的全局挑战。
- 可选计时器 – 在动作栏中追踪你的游玩时间。
- 过滤功能 – 通过配置文件包含/排除特定分类和 ID。
- 独立的权限控制 – 分别管理个人指令、全局管理和投票权限。
- 多语言支持 – 内置英语和德语;易于扩展。
指令
个人挑战
/challenge # 显示可点击的帮助菜单
/challenge start # 开始或恢复你的个人挑战
/challenge next # 选择一个新的个人挑战
/challenge stop # 隐藏你的个人挑战
/challenge status # 显示当前活跃的挑战及你的进度
全局挑战
/challenge global start # 为所有在线玩家启动全局挑战
/challenge global next
/challenge global stop
/challenge global skip # 投票跳过当前的全局挑战
/challenge global status
/challenge components true|false # 切换侧边栏显示
/challenge components gui # 打开当前挑战的物品箱 GUI
/timer start | stop | status | reset
默认情况下,启动、立即跳过和停止全局挑战需要 OP 权限或分配的相应权限。
权限
个人挑战、进度显示、计时器和跳过投票默认对所有玩家开放。全局管理仅限 OP 操作。
请使用 LuckPerms 等权限插件来分配或拒绝特定的权限。
| 权限 |
允许的操作 |
默认设置 |
randombacap.use |
访问挑战指令;其子指令也需此权限 |
所有人 |
randombacap.personal.start |
开始或恢复个人挑战 |
所有人 |
randombacap.personal.next |
跳过个人挑战 |
所有人 |
randombacap.personal.stop |
停止个人挑战 |
所有人 |
randombacap.personal.status |
使用 /challenge status |
所有人 |
randombacap.components |
使用进度侧边栏和 GUI |
所有人 |
randombacap.timer |
使用计时器指令 |
所有人 |
randombacap.global.start |
启动全局挑战 |
OP |
randombacap.global.next |
立即跳过全局挑战 |
OP |
randombacap.global.stop |
停止全局挑战 |
OP |
randombacap.global.skip |
投出或撤回跳过票 |
所有人 |
randombacap.global.status |
查看全局挑战状态 |
所有人 |
randombacap.admin |
授予全局启动、跳过和停止权限 |
OP |
公共服务器: 保持默认设置,并将 randombacap.admin 赋予受信任的管理员。
小型群组: 如果希望朋友能够启动共享挑战,请给他们 randombacap.global.start 权限,同时保持对立即跳过和停止操作的限制。
帮助菜单和指令建议仅显示玩家有权限使用的指令。
配置(节选)
config.yml 中你真正关心的键值:
language: en # en 或 de
filter:
only_categories: [] # 例如 [redstone, technical]
exclude_categories:
- statistics
exclude_ids: [] # 要排除的确切进度 ID
exclude_prefixes: [] # 要排除的 ID 前缀
exclude_regex: [] # 使用正则表达式的高级过滤
更改配置后请重启服务器。
提示:如果你过滤得太严格,可能会导致可用的挑战非常少。
安装
- 安装 Paper 26.3 并使用 Java 25 或更高版本 运行。
- 将匹配的 BlazeandCave’s Advancements Pack 安装到
world/datapacks/ 目录,或自定义名称世界的 datapacks/ 文件夹中。
- 将此插件的 JAR 文件放入
plugins/ 目录。
- 完全重启服务器。
- 使用
/challenge 获取帮助,/challenge start 进行单人游戏,或 /challenge global start 启动共享挑战。
从旧版本插件更新
停止服务器,替换旧的插件 JAR 文件,然后重新启动服务器。
你现有的设置、保存的进度和自定义消息将继续保留。缺失的消息条目将使用内置的默认值。
1.2 新增内容: 非 OP 玩家需要被分配权限才能启动、立即跳过或停止全局挑战。
兼容性
- 基于 Bukkit/Adventure API 构建,并在 Paper 上经过测试。
- 可与大多数玩法插件共存;它仅读取 BACAP 进度并显示 UI。
本地化
自带英语和德语消息。
1.2 版本更新日志
- 添加了可点击的帮助菜单和更清晰的状态显示。
- 为个人指令、全局管理和投票添加了独立的权限。
- 修复了
/timer status 显示挑战状态的问题。
- 修复了打开进度 GUI 时关闭侧边栏的问题。
- 修复了全局选择回退到所有在线玩家已完成挑战的问题。
常见问题
问:玩家是否需要下载任何内容?
答:不需要。只有服务器需要安装该插件和 BACAP 数据包。
问:我能否将命令限制在特定用户组?
答:默认情况下所有人都可以使用这些命令。请使用你的权限插件来限制或别名化命令。
问:支持哪些 Minecraft 版本?
答:已在 1.21.x 版本上测试过。如果你的 BACAP 数据包非常旧,插件会警告可能存在的不兼容问题。
这是我的第一个插件,请在 GitHub 上报告错误或请求新功能。
享受挑战吧!
Random BACAP Challenges
Turn BlazeandCave’s Advancement Pack into a rotating challenge system for you or your server.
Players (or everyone globally) get a random BACAP advancement to complete.
Requires: BlazeandCave’s Advancements Pack installed in your world’s datapacks/ folder.
Recommended: a texture pack that hides the bossbar, e.g. Invisible Boss Bars
Tested on: Paper (26.3)
Features
- Solo – pick a random BACAP advancement for yourself.
- Global challenges – pick a random BACAP advancement for the whole server
(enable the BACAP Coop Mode to sync advancements between players).
- Bossbar UI – colored title & description based on the BACAP category.
- Components sidebar & GUI – see the advancement’s individual criteria:
- Sidebar scoreboard with ✓/✗ markers.
- Paginated chest GUI.
- Timer command – simple in-game timer in the action bar: start / stop / status / reset.
- Clickable help – use
/challenge to see and run the commands available to you.
- Skip vote (global) – players can vote to skip the current global challenge.
- Optional timer – track your playtime in the action bar.
- Filtering – include/exclude categories and IDs via config.
- Separate permissions – control personal commands, global management and voting independently.
- Localization – English and German included; easy to extend.
Commands
Personal challenges
/challenge # show clickable help
/challenge start # start or resume your personal challenge
/challenge next # pick a new personal challenge
/challenge stop # hide your personal challenge
/challenge status # show the active challenge and your progress
Global challenges
/challenge global start # start a global challenge for all online players
/challenge global next
/challenge global stop
/challenge global skip # vote to skip the current global challenge
/challenge global status
/challenge components true|false # toggle the sidebar
/challenge components gui # open the chest GUI for the current challenge
/timer start | stop | status | reset
Starting, immediately skipping and stopping global challenges require OP or assigned permissions by default.
Permissions
Personal challenges, progress displays, the timer and skip voting are available to everyone by default. Global management is restricted to OPs.
Use a permissions plugin such as LuckPerms to assign or deny individual permissions.
| Permission |
Allows |
Default |
randombacap.use |
Access to challenge commands; also required for their subcommands |
Everyone |
randombacap.personal.start |
Start or resume personal challenges |
Everyone |
randombacap.personal.next |
Skip personal challenges |
Everyone |
randombacap.personal.stop |
Stop personal challenges |
Everyone |
randombacap.personal.status |
Use /challenge status |
Everyone |
randombacap.components |
Use the progress sidebar and GUI |
Everyone |
randombacap.timer |
Use timer commands |
Everyone |
randombacap.global.start |
Start global challenges |
OP |
randombacap.global.next |
Immediately skip global challenges |
OP |
randombacap.global.stop |
Stop global challenges |
OP |
randombacap.global.skip |
Cast or withdraw skip votes |
Everyone |
randombacap.global.status |
View global challenge status |
Everyone |
randombacap.admin |
Grants global start, next and stop |
OP |
Public server: Keep the defaults and give trusted moderators randombacap.admin.
Small group: Give your friends randombacap.global.start if they should be able to start shared challenges, while keeping immediate skipping and stopping restricted.
Help and command suggestions only show commands the player has permission to use.
Configuration (excerpt)
config.yml keys you’ll actually care about:
language: en # en or de
filter:
only_categories: [] # e.g. [redstone, technical]
exclude_categories:
- statistics
exclude_ids: [] # exact advancement IDs to exclude
exclude_prefixes: [] # ID prefixes to exclude
exclude_regex: [] # advanced filtering with regex
Restart the server after changing the configuration.
Tip: If you filter too aggressively, you might end up with very few available challenges.
Installation
- Install Paper 26.3 and run it with Java 25 or newer.
- Install the matching BlazeandCave’s Advancements Pack in
world/datapacks/, or the datapacks/ folder of your custom-named world.
- Place this plugin’s JAR in
plugins/.
- Fully restart the server.
- Use
/challenge for help, /challenge start for solo play, or /challenge global start for a shared challenge.
Updating from an older plugin version
Stop the server, replace the old plugin JAR and start the server again.
Your existing settings, saved progress and customized messages remain in use. Missing message entries use the included defaults.
New in 1.2: Non-OP players need assigned permissions to start, immediately skip or stop global challenges.
Compatibility
- Built against the Bukkit/Adventure API and tested on Paper.
- Works alongside most gameplay plugins; it only reads BACAP advancements and shows UI.
Localization
Ships with English and German messages.
What changed in 1.2?
- Added clickable help and a clearer challenge status.
- Added separate permissions for personal commands, global management and voting.
- Fixed
/timer status showing the challenge status.
- Fixed opening the progress GUI switching off the sidebar.
- Fixed global selection falling back to challenges already completed by all online players.
FAQ
Q: Do players need to download anything?
A: No. Only the server needs the plugin and the BACAP datapack.
Q: Can I restrict commands to specific groups?
A: By default everyone can use them. Use your permissions plugin to gate or alias commands.
Q: Which Minecraft versions are supported?
A: Tested on 1.21.x. If your BACAP pack is very old, the plugin will warn about possible incompatibilities.
This is my first plugin, please report bugs or request features on GitHub.
Enjoy the challenge grind!
评论 0
登录后参与评分
还没有评论,来抢沙发吧