功能介绍
SpindleMark 是一种为整合包快速添加音乐唱片的方法。只需将任何 Ogg Vorbis、XM、S3M 或 MOD 格式的文件放入游戏目录中新建的 music 文件夹中,模组便会自动扫描并识别这些文件,使其出现在一个新的创造模式标签页中。唱片会随机生成颜色,而显示的作者/标题则直接取自音频文件的元数据标签。播放时长追踪精确到刻(tick)。
使用方法
仅注册一个物品——服务器完全不了解具体播放的是哪种音乐,这使得更新变得轻松,原型开发也更为快捷。熟悉 NBT 数据的用户可以让唱片播放游戏中的任意声音事件。按下 F3+T 即可重新加载音乐列表。
模块文件还可以选择使用 BZip2 进行压缩以节省空间。为什么选择 BZip2?原版 Minecraft 实际上内置了解压该格式的库,而在我的测试中,它是无需 添加新代码 即可使用的最佳压缩算法。
从版本 1.1.0 开始,你还可以通过在 music 目录中添加 JSON 文件来加入“内置”唱片。假设你一直希望《Biome Fest》能作为音乐唱片出现:
{
"artist": "C418",
"title": "Biome Fest",
"length": "06:22.94",
"sound": "minecraft:music/game/creative/creative1",
"start": "29.76"
}
start 字段允许你跳过曲目开头,适用于那些像《Biome Fest》这样有很长前奏的曲目,以便在作为唱片播放时能够跳过前奏部分。
这里提供了一组 JSON 文件包,用于添加所有创造模式和菜单曲目的内置唱片。
设计初衷
本模组最初是为 BlanketCon 23 的自定义展台音乐而创建的!
这个名字毫无意义——当时我不确定该如何称呼这个模组,于是查阅了一张黑胶唱片术语词汇表,并挑选了第一个听起来有趣的名字。据说,“spindle mark”(主轴标记)是唱片上的一种瑕疵,表明该唱片已被多次播放且未得到妥善呵护。
What
SpindleMark is a quick way to add music discs to modpacks. Simply drop any Ogg Vorbis, XM, S3M, or MOD file into the new music directory in your game directory, and it will be scanned and discovered, appearing in a new creative tab. Discs get randomly generated colors, and the displayed author/title are plucked right from the audio tags. Play length tracking is tick-accurate.
How
Only one item is registered — the server is entirely unaware of what the music is, making for easy updates and quick prototyping. NBT-savvy users can make discs that play any sound event in the game. A simple F3+T will reload the music list.
Module files may also be optionally compressed with BZip2 to save space. Why BZip2? Vanilla actually ships a library for decompressing it, and in my testing it's the best compression algorithm available without adding new code for module files.
As of 1.1.0, you can also add "built-in" discs via JSON files in the music directory. Let's say you've always wished Biome Fest was available as a music disc:
{
"artist": "C418",
"title": "Biome Fest",
"length": "06:22.94",
"sound": "minecraft:music/game/creative/creative1",
"start": "29.76"
}
start allows you to skip into the track, for things that have a long lead-in like Biome Fest that you would like to skip when being played as a disc.
Here's a pack of JSON files for adding built-in discs of every Creative and menu track.
Why
Created for custom booth music at BlanketCon 23!
The name is meaningless — I wasn't sure what to call this mod, so I looked up a glossary of vinyl record terms and picked the first one that sounded interesting. Apparently a "spindle mark" is a type of blemish on a disc indicating it's been played many times and without much care.
评论 0
登录后参与评分
还没有评论,来抢沙发吧