PlayCustomSounds

This project allowed owners to add new disc to their server

12

Quick challenge

How far can you run before the mobs catch you?

PlayCustomSounds

这是一个允许服主添加新唱片到服务器的插件,拥有资源包和插件播放逻辑。 音乐键名:玩家只需音乐键名即可播放新添加的唱片 音乐键名: 服主需要制作好资源包后分发给玩家供玩家下载使用,然后在config.yml中写出你在资源包中载入的音乐键名 资源包的结构应该是这样:

``` pack.zip ├── pack.mcmeta └── assets/ └── playcustomsounds/ ├── sounds/ │ └── any.ogg └── sounds.json ``` pack.mcmeta的写法:

``` { "pack": { "pack_format": [这里填写包版本] "description": "这里填写包的介绍" } } ``` sounds.json的写法 ``` { "constant_moderato": { "subtitle": "sounds.playcustomsounds.constant_moderato", "sounds": [ { "name": "playcustomsounds:constant_moderato", "stream": true } ] }, "zenbon_zakura": { "subtitle": "sounds.playcustomsounds.zenbon_zakura", "sounds": [ { "name": "playcustomsounds:zenbon_zakura", "stream": true } ] }, "drowning_love": { "subtitle": "sounds.playcustomsounds.drowning_love", "sounds": [ { "name": "playcustomsounds:drowning_love", "stream": true } ] } } ``` (仅供参考,可以更改歌曲名称等内容) 播放音乐的命令:/pcs [音乐名称] 停止音乐的命令:/sm

This is a plugin that allows server owners to add new albums to the server, featuring resource packs and plugin playback logic. music key name: Players can simply music key name to play the newly added music disc music key name: Server owners need to create a resource pack and distribute it to players for download and use. Then, in the config.yml, specify the music key name you have loaded in the resource pack The structure of the resource pack should be like this:

``` pack.zip ├── pack.mcmeta └── assets/ └── playcustomsounds/ ├── sounds/ │ └── any.ogg └── sounds.json ``` The writing style of pack.mcmeta:

``` { "pack": { "pack_format": [Fill in the package version here] "description": "Fill in the introduction of the package here" } } ``` The writing style of sounds.json ``` { "constant_moderato": { "subtitle": "sounds.playcustomsounds.constant_moderato", "sounds": [ { "name": "playcustomsounds:constant_moderato", "stream": true } ] }, "zenbon_zakura": { "subtitle": "sounds.playcustomsounds.zenbon_zakura", "sounds": [ { "name": "playcustomsounds:zenbon_zakura", "stream": true } ] }, "drowning_love": { "subtitle": "sounds.playcustomsounds.drowning_love", "sounds": [ { "name": "playcustomsounds:drowning_love", "stream": true } ] } } ``` (For reference only, the song title and other content can be changed) The command of starting to play music: /pcs [music name] The command of stopping playing music: /sm

ADS