CraftMusic
CraftMusic 是一款面向 Minecraft(NeoForge)的客户端本地音乐播放器。它可在游戏内播放来自你电脑的音频文件,并显示同步歌词。
功能说明
- 播放放置在游戏文件夹
CraftMusic/ 中的本地音频文件。
- 支持 ogg、mp3、flac、wav 格式。在 Windows 上完全支持中文文件名/路径。
- 提供游戏内 UI 用于浏览和控制播放,以及可选的浮动(屏幕)歌词。
主要特性
- 播放:播放/暂停/继续、上一首/下一首、拖拽进度条、音量控制,以及模式:顺序 / 全部循环 / 随机 / 单曲循环。
- UI:快速播放界面,包含曲目列表(双击播放)、进度条、时间文本、音量条、模式切换、刷新、打开文件夹、设置。
- 歌词:自动检测同名的
.lrc 文件(UTF-8/GBK);居中面板,高亮当前行并带有柔和缩放效果;若无歌词则显示“无歌词 / 纯音乐”。
- 浮动歌词:可开关;渲染范围可选全局或仅限游戏内;位置可选左上/右上/左下/右下(左边缘左对齐,右边缘右对齐)。
- 键位绑定:默认按 M 打开 UI。标题画面也设有按钮。
- 命令:
/craftmusic play <path>、/craftmusic stop、/craftmusic ui、/craftmusic tone。
- 持久化:设置保存至
config/craftmusic-client.json。
Supported Languages
CraftMusic now supports 12 languages for a truly global experience:
-
English (en_us) ??
-
Simplified Chinese (zh_cn) ??
-
Traditional Chinese - Hong Kong (zh_hk) ??
-
Traditional Chinese - Taiwan (zh_tw) ??
-
Classical Chinese (lzh) - Literary style
-
Korean (ko_kr) ??
-
Japanese (ja_jp) ??
-
Spanish (es_es) ??
-
French (fr_fr) ??
-
德语 (de_de) ??
-
俄语 (ru_ru) ??
-
LOLCAT (lol_us) - I can has mewsic!
使用方法
- 将你的音频文件放入
<Minecraft 游戏目录>/CraftMusic/。
- 启动游戏。按 M 键或点击标题界面的 “CraftMusic” 按钮以打开播放器。
- 双击歌曲进行播放。使用底部控件来搜索、切换曲目、调节音量以及更改模式。
- 歌词:在与音频文件同名的位置放置一个
.lrc 文件。如果找到,歌词会自动同步。
- 浮动歌词:在设置中控制开启/关闭、渲染范围(全局 / 世界内)以及位置。
配置(config/craftmusic-client.json)
volume:float 类型,范围 0.0–1.0
mode:SEQUENTIAL | REPEAT_ALL | SHUFFLE | REPEAT_ONE
lyricEffects:boolean 类型,启用歌词滚动/缩放效果
floatingLyrics:boolean 类型,浮动歌词开关
floatingLyricsRender:GLOBAL(所有界面)| WORLD(仅游戏内)
floatingLyricsPosition:TOP_LEFT | TOP_RIGHT | BOTTOM_LEFT | BOTTOM_RIGHT
要求
- 客户端模组,基于 NeoForge 的 Minecraft。
- 仅限 Windows 平台。原生音频后端(miniaudio)以 Windows DLL 形式分发。
限制
鸣谢
故障排除
- “Audio output not ready”(音频输出未就绪):确保原生 DLL 已正确加载(Windows 系统),然后重启游戏。
- 中文文件名无法播放:该模组在 Windows 上使用宽字符 API;请确保文件存在且可读。
CraftMusic
CraftMusic is a client-side local music player for Minecraft (NeoForge). It plays audio files from your computer inside the game and shows synchronized lyrics.
What it does
- Plays local audio files placed in the game folder
CraftMusic/.
- Supports ogg, mp3, flac, wav. Fully supports Chinese file names/paths on Windows.
- Provides an in-game UI for browsing and controlling playback, plus optional floating (on-screen) lyrics.
Key features
- Playback: play/pause/resume, previous/next, seek by dragging, volume control, and modes: Sequential / Repeat All / Shuffle / Repeat One.
- UI: QuickPlay screen with track list (double-click to play), seekbar, time text, volume bar, mode switch, refresh, open folder, settings.
- Lyrics: auto-detects same-name
.lrc files (UTF-8/GBK); centered panel with current line highlight and gentle scaling; shows “No lyrics / Instrumental” when absent.
- Floating lyrics: toggle on/off; render scope Global or In-World only; position Top-Left/Top-Right/Bottom-Left/Bottom-Right (left edges left-aligned, right edges right-aligned).
- Keybinding: default M opens the UI. Also a title-screen button.
- Commands:
/craftmusic play <path>, /craftmusic stop, /craftmusic ui, /craftmusic tone.
- Persistence: settings saved to
config/craftmusic-client.json.
Supported Languages
CraftMusic now supports 12 languages for a truly global experience:
- English (en_us) ??
- Simplified Chinese (zh_cn) ??
- Traditional Chinese - Hong Kong (zh_hk) ??
- Traditional Chinese - Taiwan (zh_tw) ??
- Classical Chinese (lzh) - Literary style
- Korean (ko_kr) ??
- Japanese (ja_jp) ??
- Spanish (es_es) ??
- French (fr_fr) ??
- German (de_de) ??
- Russian (ru_ru) ??
- LOLCAT (lol_us) - I can has mewsic!
How to use
- Place your audio files into
<Minecraft Game Directory>/CraftMusic/.
- Launch the game. Press M or click the title-screen button “CraftMusic” to open the player.
- Double-click a song to play. Use bottom controls to seek, switch tracks, adjust volume, and change mode.
- Lyrics: put a same-named
.lrc next to the audio file. If found, lyrics sync automatically.
- Floating lyrics: open Settings to control on/off, render scope (Global / In-World), and position.
Configuration (config/craftmusic-client.json)
volume: float 0.0–1.0
mode: SEQUENTIAL | REPEAT_ALL | SHUFFLE | REPEAT_ONE
lyricEffects: boolean, enables lyric scrolling/scale effects
floatingLyrics: boolean, floating lyrics on/off
floatingLyricsRender: GLOBAL (all screens) | WORLD (only in-game)
floatingLyricsPosition: TOP_LEFT | TOP_RIGHT | BOTTOM_LEFT | BOTTOM_RIGHT
Requirements
- Client-side, NeoForge-based Minecraft.
- Windows only. The native audio backend (miniaudio) is distributed as a Windows DLL.
Limitations
Credits
Troubleshooting
- “Audio output not ready”: ensure the native DLL is properly loaded (Windows) and restart the game.
- Chinese filenames not playing: the mod uses wide-character APIs on Windows; ensure the file exists and is readable.
评论 0
登录后参与评分
还没有评论,来抢沙发吧