BS-CustomJukebox Bedrock 扩展
BS-CustomJukebox 的配套插件,通过 Geyser/Floodgate 为 基岩版 提供支持。
功能
- 声音桥接 — 当唱片机插入自定义唱片时,自动为基岩版玩家播放对应的自定义唱片音效
- 资源包生成器 — 使用一条命令即可从现有的自定义唱片生成兼容基岩版的
.mcpack 文件
- 自定义物品注册 — 通过 Geyser 注册自定义唱片物品,使基岩版玩家能够看到独特的唱片纹理
- 对 Java 版玩家零影响 — Java 版的播放体验完全不受影响
- 优雅降级 — 即使未安装 Geyser/Floodgate,插件也能正常运行(仅记录警告日志,不会崩溃)
工作原理
- 监听来自 BS-CustomJukebox 的唱片播放事件
- 通过 Floodgate 检测基岩版玩家
- 拦截 Java 版的声音并改为播放映射到基岩版的等效音效
- 通过 Geyser 的自定义物品 API 注册自定义物品
快速设置
- 安装 BS-CustomJukebox、Geyser-Spigot 和 Floodgate
- 将此插件放入你的
plugins/ 文件夹中
- 将
.ogg 音效文件放置在 plugins/CustomJukebox/sounds/ 目录下 —— Pack Generator 导出的文件夹布局与此完全一致,因此你可以直接将其解压到 plugins/ 中
- 运行
/cjb-bedrock generate 以创建基岩版资源包
- 将生成的
.mcpack 复制到 Geyser 的 packs/ 文件夹中
- 重启服务器
命令
| 命令 |
描述 |
/cjb-bedrock generate |
生成基岩版资源包 |
/cjb-bedrock reload |
重新加载配置 |
/cjb-bedrock status |
显示插件状态及依赖信息 |
/cjb-bedrock help |
显示帮助信息 |
权限: customjukebox.bedrock.admin(默认:OP)
?️ 准备音效文件
基岩版需要与 Java 版资源包相同的 .ogg 文件,但需作为独立文件存在,而非打包在资源包内。CustomJukebox Pack Generator 可在浏览器中从相同的音轨构建出两种格式:Java 版资源包、插件所需的 disc.json,以及一个“下载基岩版文件”的 zip 包(目录结构为 CustomJukebox/sounds/ 和 CustomJukebox/textures/)。将其解压到 plugins/ 后,运行 /cjb-bedrock generate 即可。
该工具会在本地将 mp3、wav 和 flac 转换为 Ogg Vorbis 格式,因此无需上传任何内容至外部服务器;它还能统一所有音轨的响度,确保不会出现某张唱片音量远大于其他唱片的情况。
? 链接
BS-CustomJukebox Bedrock Extension
Companion plugin for BS-CustomJukebox that adds Bedrock Edition support via Geyser/Floodgate.
Features
- Sound Bridging — Custom disc sounds are automatically played to Bedrock players when a disc is inserted into a jukebox
- Resource Pack Generator — Generates a Bedrock-compatible
.mcpack from your existing custom discs with a single command
- Custom Item Registration — Registers custom disc items via Geyser so Bedrock players see unique disc textures
- Zero impact on Java players — Java Edition playback is completely unchanged
- Graceful degradation — Plugin runs without Geyser/Floodgate installed (logs a warning, no crash)
How it works
- Listens for disc playback events from BS-CustomJukebox
- Detects Bedrock players via Floodgate
- Intercepts the Java sound and plays the Bedrock-mapped equivalent instead
- Custom items are registered through Geyser's Custom Items API
Quick Setup
- Install BS-CustomJukebox, Geyser-Spigot, and Floodgate
- Drop this plugin into your
plugins/ folder
- Place your
.ogg sound files in plugins/CustomJukebox/sounds/ — the Pack Generator exports exactly this folder layout, so you can unzip it straight into plugins/
- Run
/cjb-bedrock generate to create the Bedrock resource pack
- Copy the generated
.mcpack to Geyser's packs/ folder
- Restart the server
Commands
| Command |
Description |
/cjb-bedrock generate |
Generate Bedrock resource pack |
/cjb-bedrock reload |
Reload configuration |
/cjb-bedrock status |
Show plugin status and dependency info |
/cjb-bedrock help |
Show help |
Permission: customjukebox.bedrock.admin (default: OP)
🛠️ Preparing the sound files
Bedrock needs the same .ogg files as the Java pack, as loose files rather than inside it. The CustomJukebox Pack Generator builds both from the same tracks in your browser: a Java resource pack, the plugin's disc.json, and a "Download Bedrock files" zip laid out as CustomJukebox/sounds/ and CustomJukebox/textures/ — unzip it into plugins/ and run /cjb-bedrock generate.
It converts mp3, wav and flac to Ogg Vorbis locally, so nothing is uploaded anywhere, and it can match the loudness of all your tracks so one disc is not far louder than the next.
🔗 Links
评论 0
登录后参与评分
还没有评论,来抢沙发吧