▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/PlayCustomSounds
PlayCustomSounds

PlayCustomSounds

This project allowed owners to add new disc to their server

4
1

这是一个允许服主添加新唱片到服务器的插件,拥有资源包和插件播放逻辑。 对于玩家:玩家只需载入资源包后点击播放即可播放新添加的唱片 对于服主: 服主需要制作好资源包后分发给玩家供玩家下载使用,然后在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. For players: Players can simply load the resource pack and click play to play the newly added music disc For server owners: 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

Совместимость

Minecraft: Java Edition

1.21.x

Поддерживаемые окружения

Сервер

Детали

Лицензия:LicenseRef-All-Rights-Reserved
Опубликован:1 неделю назад
Обновлён:1 неделю назад
Главная