? CustomMusic+
CustomMusic+ 让你将自定义配乐带入 Minecraft —— 但目前仅支持 .ogg 音频文件。如果你的音乐是 .mp3 格式,则需要先将其转换为 .ogg。一个快速简便的方法是使用 Audacity(免费)、VLC Media Player,或 CloudConvert 等在线转换器。
CustomMusic+ 是一个轻量级的客户端 Fabric 模组,允许你直接在 Minecraft 中添加、播放和管理自己的音乐和播放列表 —— 无需使用资源包或编辑声音文件。
每个 Minecraft 实例(按版本或整合包区分)都拥有独立的 custommusic 文件夹,使得你可以为每个设置配备完全独特的配乐。
? 文件夹结构
每个 Minecraft 版本都有自己独立的文件夹:
.minecraft/
├── 1.21.6/
│ └── config/
│ └── custommusic/
│ ├── chill.ogg
│ ├── battle_theme.ogg
│ ├── night.ogg
│ └── playlists/
│ ├── chillvibes.txt
│ └── boss_battle.txt
只需将你的 .ogg 曲目或基于文本的播放列表放入其中,游戏启动时 CustomMusic+ 会自动加载它们。
⚙️ 核心功能
✅ 直接从文件系统播放 .ogg 曲目
✅ 支持具有顺序播放功能的 .txt 播放列表
✅ 实例特定的文件夹(非常适合多版本设置)
✅ 首次启动时自动创建文件夹
✅ 轻量级客户端模组 —— 无需服务器
✅ 统一的命令系统,位于 /CustomMusic 下
✅ 适用于所有支持 OpenAL 的 Fabric 版本
? 命令
| 命令 |
描述 |
/CustomMusic play <name> |
立即播放曲目或播放列表。 |
/CustomMusic stop |
停止当前播放并清空队列。 |
/CustomMusic pause |
暂停当前曲目或播放列表。 |
/CustomMusic resume |
恢复暂停的播放。 |
/CustomMusic list |
列出所有可用的曲目和播放列表。 |
/CustomMusic search <keyword> |
搜索包含关键词的歌曲/播放列表。 |
/CustomMusic reload |
重新扫描文件夹以查找新音乐和播放列表。 |
/CustomMusic help |
显示帮助和使用信息。 |
? 工作原理(技术摘要)
| 组件 |
角色 |
CustomMusicPlusClient |
客户端入口点 —— 注册命令,处理刻和播放队列。 |
PlaylistManager |
创建/扫描 custommusic 和播放列表文件夹中的 .ogg、.mp3 和 .txt 文件。 |
OggDecoder |
使用 LWJGL STB Vorbis 将 .ogg 解码为原始 PCM 数据。 |
AudioPlayer |
使用 LWJGL OpenAL 处理播放(播放、停止、暂停、恢复)。 |
? MP3 文件会被检测并列出,但尚不可播放 —— Minecraft 原生仅支持 .ogg。
? 示例用法
/CustomMusic play chillvibes 按顺序播放 playlists/chillvibes.txt 中的所有曲目
/CustomMusic search night 查找所有包含“night”的曲目和播放列表
? 计划中的功能
每首曲目的音量控制 随机播放 & 循环模式 “正在播放” 覆盖层 通过 TinySound 或 FFmpeg 支持 MP3 解码 GUI 播放列表浏览器
? 兼容性
要求 信息 加载器 Fabric 环境 仅限客户端 依赖项 Fabric API 支持的格式 .ogg(可播放),.mp3(仅列出)
❤️ 致谢
由 hindustani_gamer_fardin 开发和维护
? CustomMusic+
CustomMusic+ lets you bring your own soundtrack into Minecraft — but only .ogg audio files are currently supported. If you have music in .mp3 format, you’ll need to convert it to .ogg first. A quick and easy way to do this is by using Audacity (free), VLC Media Player, or an online converter like CloudConvert.
CustomMusic+ is a lightweight, client-side Fabric mod that lets you add, play, and manage your own music and playlists directly in Minecraft — without using resource packs or editing sound files.
Every Minecraft instance (per version or modpack) gets its own custommusic folder, allowing you to have a completely unique soundtrack for each setup.
? Folder Structure
Each version of Minecraft has its own independent folder:
.minecraft/
├── 1.21.6/
│ └── config/
│ └── custommusic/
│ ├── chill.ogg
│ ├── battle_theme.ogg
│ ├── night.ogg
│ └── playlists/
│ ├── chillvibes.txt
│ └── boss_battle.txt
Just drop your .ogg tracks or text-based playlists inside, and CustomMusic+ will load them automatically when the game starts.
⚙️ Core Features
✅ Play .ogg tracks directly from your filesystem
✅ Support for .txt playlists with sequential playback
✅ Instance-specific folders (perfect for multi-version setups)
✅ Auto folder creation on first launch
✅ Lightweight client-side mod — no server required
✅ Simple, unified command system under /CustomMusic
✅ Works with all Fabric versions that support OpenAL
? Commands
| Command |
Description |
/CustomMusic play <name> |
Plays a track or playlist immediately. |
/CustomMusic stop |
Stops current playback and clears the queue. |
/CustomMusic pause |
Pauses current track or playlist. |
/CustomMusic resume |
Resumes paused playback. |
/CustomMusic list |
Lists all available tracks and playlists. |
/CustomMusic search <keyword> |
Searches for songs/playlists containing the keyword. |
/CustomMusic reload |
Rescans folders for new music and playlists. |
/CustomMusic help |
Displays help and usage information. |
? How It Works (Technical Summary)
| Component |
Role |
CustomMusicPlusClient |
Client entrypoint — registers commands, handles ticks and playback queue. |
PlaylistManager |
Creates/scans custommusic and playlist folders for .ogg, .mp3, and .txt files. |
OggDecoder |
Uses LWJGL STB Vorbis to decode .ogg into raw PCM data. |
AudioPlayer |
Handles playback using LWJGL OpenAL (play, stop, pause, resume). |
? MP3 files are detected and listed but not playable yet — Minecraft natively supports only .ogg.
? Example Usage
/CustomMusic play chillvibes Plays all tracks in playlists/chillvibes.txt sequentially
/CustomMusic search night Finds all tracks and playlists containing “night
? Planned Features
Volume control per track Shuffle & loop modes “Now Playing” overlay Support for MP3 decoding via TinySound or FFmpeg GUI playlist browser
? Compatibility
Requirement Info Loader Fabric Environment Client-side only Dependencies Fabric API Supported Formats .ogg (playable), .mp3 (listed only)
❤️ Credits
Developed and maintained by hindustani_gamer_fardin
评论 0
登录后参与评分
还没有评论,来抢沙发吧