简介:
十年来,我一直制作根据我的心情、当前游玩状态和游戏风格或特定主题/梗来改变游戏音乐的资源包。这一直让我困扰的是,我从未找到一个易于使用的模板包,以至于每次休整时,我都不得不面对 Mojang 修改后的游戏索引,在记事本中逐个搜索哈希码,以确认我之前的音乐包是否仍可使用,或者开发者是否完全更改了系统。今天,我花了 3 个小时反复检查,确保创建了一个工作正常的自定义音乐模板包。因此,我只需替换其中空的文件并打包成 zip,即可制作一个新的资源包。我只能希望 Mojang 在未来的更新中不会更改该系统,这样我只需要向模板中添加少量其他文件即可。
功能:
- 所有内容都位于各自的位置,清晰标明其对应的音乐
- 文件为空(零字节),因此预期文件大小很小
- 下载方便
- 替换简便
- 替换完想要的音乐后,只需将其压缩即可
更新!(重要!):
许多用户抱怨,在处理我提供的模板资源包中的 .ogg 文件(删除、重命名、移动它们)时,他们的 PC 会冻结或变慢。我在评论中已经反复强调过这一点,但很多人似乎不愿意阅读我的回复,因此继续带着同样的投诉来找我。我将尝试解释关于 .ogg(vorbis)文件的问题。此问题并非由我的模板或我提供的资源包引起。在发布任何数据/资源包之前,我都会进行彻底测试,以确保不会上传任何有 bug 的内容。因此,这个资源包本身没有任何问题。你遇到的 PC 冻结、变慢、崩溃 或 甚至无法执行任何操作 的问题,是在处理 vorbis 文件时由微软导致的,而不是我的责任。多年来,Windows 在进行涉及 vorbis 文件的文件操作时一直存在这些相同的问题。不信?请点击下方文字查看相关链接自行验证。尽管我试图通过将空的占位符 .ogg 文件替换为 1 秒的静音(实际音频)来缓解这个问题,但从 1.19.4 版本开始,模板中的 .ogg 文件不再是占位符,而是实际的无声音频文件,如果不再使用,删除它们应该不会给任何人带来麻烦……但由于微软未能永久修复该问题,处理 vorbis 文件时仍可能出现故障。祝你好运,伙伴!
2024.07.22 更新:
自 1.18 版本起,微软改变了游戏内音频的工作方式。我还没有时间进行测试,但我认为替换后的音乐必须与被替换音频的长度完全一致。例如,wet_hands.ogg 的长度为 1 分 30 秒。用于替换它的音频也必须具有相同的长度,否则将无法正常工作。
别忘了 Minecraft 使用的是 .ogg vorbis 格式,而不是 .ogg opus 文件格式。它会播放第一种(vorbis),但不会播放第二种(opus)。
我不做任何保证,但我会尝试研究该模组,添加更新中的额外音乐文件,并测试微软对音频文件时长限制的影响。希望能在冬季完成。
2024.10.09 更新(bug 修复?):
-由用户提交-
不确定你是否已经找到了修复此问题的方法,但以防万一:需要添加一个 sounds.json 文件来修复替换了音频的音乐唱片,否则它们会作为环境世界音乐播放。
你可以从 Minecraft 资源网站获取这个 JSON 文件(域名应为 .cloud)。然后只需将 music 部分和 music record 部分复制并粘贴到一个单独的文件中,接着将该文件放入资源包的 sound 文件夹内即可。
我自己也测试过,发现替换后的音乐唱片不再随机作为环境音乐播放。此外,这也能防止环境音乐随机中断或重叠播放。
2025.05.16 更新(音轨时长):
在创建资源包时,请务必查看原始音轨及其持续时间。请记住这些数值,因为你只能使用长度相同(或更短)的音乐来替换指定歌曲。这意味着你可能需要编辑/裁剪比原始音轨更长的歌曲(对此我推荐使用 Audacity)。
以下是各音轨及其持续时间的列表:
使用方法:
- 1. 下载 .zip 文件
- 2. 将其解压到文件夹中
- 3. 打开 assets 文件夹,然后根据你想更改的内容进入 >minecraft>sounds>music 或 records
- 4. 在 YouTube 上搜索它们的名称,例如对于唱片,“Minecraft 11.ogg”,这样你就可以听到它对应的歌曲是什么
- 5. 下载你希望用来替换的歌曲(需为 .ogg 格式)。我个人使用 4K Video Downloader 来一次性下载和转换,但也有其他工具可用
- 6. 完成替换游戏中你想使用的音乐后,删除所有你未修改的 .ogg 文件(这非常重要。如果你不删除这些未修改的文件,当资源包激活时,游戏将无法在这些位置播放任何内容,因为它们只是空的快捷方式文件)
- 7. 在你下载的 "Custom Music & Recording Hollow Template 1.0.0" 目录中,用适当的描述修改 pack.mcmeta 文件,并修改 pack.png(如果你想使用自定义封面图的话)
- 8. 将 assets 文件夹、pack.mcmeta 和 pack.png 压缩为 ZIP 格式,然后你就可以使用了
恭喜!你已经制作了一个自定义音乐包/资源包! :)
如果需要确认操作是否正确,这里有一个视频教程:
Introduction:
For 10 years I've been making resource packs that change the game's music according to my mood, my current play and game style or for a specific theme/meme. It always bothered me how I never found an easy to use template pack so when I take a break I won't have to look at Mojang's changed game indexes, search the hash codes one by one in notepad to see whether or not my previous music pack is still useable or the devs completely changed the system. Today I spent 3 hours just to double check and make sure that I created a well working template pack for custom music thus all I have to do is replace the empty/hollow files inside and zip it to make a new resource pack. I can only hope Mojang won't change the system with the upcoming updates and all I'll have to do is to add a few other files to the template.
Features:
- Everything is in their respective place signifying what music it is
- The files are hollow thus small file size is expected
- Easy download
- Easy replacement
- Just zip it when you've replaced the music you wish to use
Update! (important!):
Many users complained that their PC freezes, slows down when working with the .ogg files (deleting, renaming, moving them) I provided in the template resource pack. I cannot stress this enough in the comments and many of you doesn't feel like reading my replies thus keep coming to me with the same complaints I'll try to explain the issue with the .ogg (vorbis) files. The issue is NOT caused by my template, nor the resource pack I provided. Before publishing any of my data/resource packs I thoroughly test them not to upload anything buggy. Thus there is nothing wrong with this resource pack of mine. The issues are NOT caused by the empty .ogg vorbis files I provided as placeholders. The issues of your PC freezing, slowing down, crashing or not even doing anything when handling vorbis files is on Microsoft, not me. For over a decade now Windows produced these very same issues when doing file operations with vorbis files. Don't believe me? See for yourself in the outlined words that are clickable links. Even though I tried to ease this problem by replacing the empty placeholder .ogg files with 1 seconds of silence (actual audio) so as of 1.19.4 the .ogg files within the template are not placeholders but actual, silent audio files that shouldn't give anyone any trouble to delete if unused... there still could be issues with handling vorbis files thanks to Microsoft not fixing the issue permanently. Happy trails partner!
Update 2024.07.22:
Since 1.18 Microsoft changed how audio works in-game. I've not had the time to test it yet but I believe the replacement music has to be the exact same length in time that of the replaced audio. For example wet_hands.ogg is 1 minutes and 30 seconds long. The audio you replace it with has to be the same length or else it won't work.
Don't forget that Minecraft uses .ogg vorbis and not .ogg opus file format extension. It'll play the first one (vorbis), but not the second one (opus).
I'm not making any promises but I'll try to look into the mod, add the extra music files from the updates and test out the duration limit in the audio files that Microsoft set. During the winter, hopefully.
Update 2024.10.09 (bug fix?):
-Submitted by user-
Not sure if you have already found a fix for this yet but in case you haven't a sounds.json file is needed to fix music discs you have replaced the audio of from playing as ambient world music.
You can get this JSON file from the Minecraft assets site, it should have the .cloud domain. Then just copy and paste the music section along with the music record section into their own file that you can then put into the resource pack where the sound folder is.
I've tested it myself a little bit and I've found no more issues with replaced music disc tracks randomly playing as ambient music anymore. It should also prevent ambient music from randomly cutting out and overlapping as well.
Update 2025.05.16 (track lengths):
To help yourself in the resource pack creation always check out the original track and its duration. Remember them, for you can only replace the given song with identical length of music (or shorter!), this will likely mean that you'll have to edit/cut the song that is longer than the original one (for this I recommend using audacity).
Here is a list of the tracks and their duration:
How to use:
- 1. Download the .zip file
- 2. Unzip it into a folder
- 3. Open the assets folder then go to >minecraft>sounds>music or records depending which one you want to change
- 4. Look up their names on YouTube, for example in case of records "Minecraft 11.ogg" then you can listen which song it is
- 5. Download a song you wish to replace it with in .ogg file format (I personally use 4k video downloader to download and convert in one go but there are several tools)
- 6. After you are finished with replacing the music you wish to use in-game, delete all the other .ogg files you haven't modified (This is very important. If you don't delete the files you haven't modified the game won't play anything in their place once the resource pack is active since they're empty shortcut files)
- 7. Modify the pack.mcmeta in your downloaded "Custom Music & Recording Hollow Template 1.0.0" directory with the appropriate description of what you modified and then the pack.png if you want to use custom cover art
- 8. ZIP the assets folder, pack.mcmeta and pack.png then you're good to go
Congrats! You've made a custom music pack/resource pack! :)
Video tutorial here if you want to make sure:
评论 0
登录后参与评分
还没有评论,来抢沙发吧