说明:
现在你可以直接将音频和视频文件放入,模组会在启动时自动转换这些文件!
- 将 jar 文件复制到你的 mods 文件夹中
- 创建一个名为 "Soundboard" 的新文件夹(它会被自动创建)
- 将你的声音文件放入此文件夹
- 运行 jar 文件(双击)以更新声音
- 启动 Minecraft!
对于服务器:
- 按照上述步骤操作
- 只需将你生成的 jar 文件分享给你的朋友
- 直接将 jar 文件复制到你的服务器上
- 启动服务器并享受吧!
你需要在服务器和客户端上拥有相同的声音,否则会出现错误提示!
按键:
J : 打开 Soundboard 菜单
小键盘按键:播放声音
小键盘 0 : 停止当前播放的声音
本地运行
你也可以通过命令行运行 jar 文件:
java -jar jar_path/jar_name
常见问题
为什么需要运行 jar?为什么不自动执行?
要播放声音,你需要一个 sounds.json 文件来告诉游戏有哪些文件存在,以及一个存储声音的 sounds 文件夹。
问题在于,当文件在 Windows 上被使用时,我无法覆盖它,但我需要生成这些文件(在 Linux 上可以正常工作,但这通常不是一个好主意)。
我本可以使用 Mixin,但目前我没有相关技能,这是我第一个 Minecraft 模组。
这是一个简单的 Soundboard,使用的方式虽然简单粗暴,但确实有效。
Explanation :
You can now directly put your audio and video files, the mod will automatically convert these files when you launch it!
- Copy the jar in your mods folder
- Create a new folder named "Soundboard" (it will be automatically created)
- Put your sounds in this folder
- Run the jar (double click on it) to update the sounds
- Launch Minecraft!
For server :
- Follow the steps above
- Just share your generated jar file to your friends
- Copy directly the jar file on your server
- Launch your server and enjoy!
You need to have the same sounds on server and client, otherwise it will bring you an error message!
Keys :
J : open the soundboard menu
Numpad keys : play the sounds
Numpad 0 : stop the playing sound
Run Locally
You can run the jar file using command line too :
java -jar jar_path/jar_name
FAQ
Why do you need to run the jar ? Why is it not automatic ?
To play a sound you need a sounds.json file which indicates to the game what
files exists, and a sounds folder where sounds are stored.
The problem is that I cannot overwrite the file when it's already in use on Windows but I need
to generate these files (it works on Linux but it's generally a bad idea).
I may be could use Mixin but I do not have the skill for the moment, this is
my first mod for Minecraft.
It's a simple soundboard, the used way is just scandalous.
评论 0
登录后参与评分
还没有评论,来抢沙发吧