跳到正文

KuroMusic

作者:chloe_koopa

Provide tools (e.g. command) that can play music from the internet, mainly for map makers and servers

收藏

介绍

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

Introduction

Currently it adds a command that can play music from the internet.
Supports mp3 and ogg audio format.
Have special support for NetEase Cloud Music share links.

Usage

/playmusic <music_url> <sound_source> <targets>
similar to the playsound command.

/setbackgroundmusic <url> <targets> set the (looping) background music for selected targets

/stopbackgroundmusic stop the looping background music for yourself (No permission needed by default)

example:

/playmusic "https://github.com/lender544/new1.20.1/raw/refs/heads/master/src/main/resources/assets/cataclysm/sounds/music_disc/ignis_theme.ogg" music @a
This will play the song when fighting with Ignis in L_Ender’s Cataclysm mod,
from its GitHub source code repo.

/playmusic "https://music.163.com/#/song?id=431855484" music @a
Play Sweet Dream (the notorious menu theme of the GTNH modpack)
using the share link of NetEase Cloud Music.

/playmusic "./kubejs/testdata.mp3" music @a
Play ./kubejs/testdata.mp3 from the clients’ local file system,
with the game instance folder as the current directory

Permissions

Node Usage Default Permission Level
kuromusic.music.play permission to use /playmusic 2 (OP/functions)
kuromusic.background_music.set permission to use /setbackgroundmusic 2 (OP/functions)
kuromusic.background_music.stop_self permission to use /stopbackgroundmusic 0 (Everyone)

常见问题

KuroMusic 支持哪些 Minecraft 版本?

KuroMusic 支持 Minecraft Java 版 1.20.1–1.21.1,共 3 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

KuroMusic 怎么安装?

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

评论

登录后评论和评分

chloe_koopa 的其他作品

查看全部 →