跳到正文

RegionBGM API

作者:Yuti_35

An API used y others mods to stream background music in Minecraft

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Region BGM API

This mod can be used by others mods as an API in order to stream background music to players, from different sources (youtube, twitch, almost anything).

It can be used in different ways. For example, defining zones with a background music.

The mod use the lavaplayer libray from sedmelluq !

Currently the mod is made for 1.12.2.

Mods using the API

The RegionBGM mod is useless alone, it requires to have another mod installed to be able to exploit it.

Usually, you need to install RegionBGM on client-side and on server-side, and the mod exploiting it on server-side.

For now, here’s the list of the mods using RegionBGM :

  • Zone BGM : A mod using Forge Essentials and RegionBGM in order to define zones where music can be played. It adds immersion in different zones of your server (city, pirate ships, etc…). The mod is required on server-side only.

I hope more mods will come later!

Configuration

You can edit two parameters in the mod’s configuration GUI :

  • enabled : Enables or disables the mod.
  • volume: Set the background music volume.

In-game, each mod using the RegionBGM API is associated to a gamerule bgm_modid which is set to true by default. If this rule is set on false, the mod using the RegionBGM API will be "disabled" (won’t be able to send packets to clients and triggers musics).

Supported sources

The music can be a source from internet : A youtube video, a youtube playlist, a twitch livestream…

As the the mod uses lavaplayer you can check all the supported sources here.

Developers

For more information about how to use the API into your own mod, check the github repository of RegionBGM

Logo

Logo made by Freepik from www.flaticon.com.

常见问题

RegionBGM API 支持哪些 Minecraft 版本?

RegionBGM API 支持 Minecraft Java 版 1.12.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

RegionBGM API 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Yuti_35 的其他作品

查看全部 →