Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_p3ejhmzp.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
MidiReceiver - 墨喵 Minecraft 资源
MidiReceiver 图标

MidiReceiver

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/midireceiver
资源信息

Minecraft 版本: 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8

平台: paper

标签: game-mechanics magic

资源介绍

🎼 MIDIReceiver (Spigot Plugin)

The MIDIReceiver plugin listens for midi:action plugin messages and plays matching Minecraft note block sounds in real time.

📡 Incoming Plugin Message: midi:action

The plugin receives MidiAction packets from the client mod and triggers sounds accordingly.

MidiAction Payload Structure

record MidiAction(
    String name,
    int command,
    int channel,
    int data1,
    int data2
)
Field Type Description
name String Name of the MIDI device
command int MIDI command (e.g., 144 = Note On)
channel int MIDI channel (0–15)
data1 int Note number
data2 int Velocity

🔊 MIDI to Minecraft

If command == 144 and velocity > 0, the plugin maps data1 (MIDI note) to Minecraft note block pitch 0–24 and plays the note using player.playNote(...).

✅ Requirements

  • A Spigot/Paper server (1.20+ recommended)
  • A client mod that sends midi:action plugin messages

Need help or want to contribute? Reach out directly!

下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Multicore Magic

价格:0 墨喵币
下载量:0

查看详情
MTA

价格:0 墨喵币
下载量:0

查看详情
White Anime Girl Totem

价格:0 墨喵币
下载量:0

查看详情
HeadPrefix

价格:0 墨喵币
下载量:0

查看详情