Skip to content

MIDIPlugin message bridge for MIDI actions

Send MIDI events from the client to the server with a typed payload.

MIDI preview

Overview

MIDI is a Minecraft mod that forwards MIDI actions from client to server using the midi:action plugin message. It is ideal for instruments, lighting effects, or any MIDI-driven gameplay system.

MidiAction payload

java
record MidiAction(
    String name,
    int command,
    int channel,
    int data1,
    int data2
)

Quick usage

Client send

java
ClientPlayNetworking.send(
    new MidiAction("Launchpad", 144, 0, 60, 127)
);

Server receive

java
ServerPlayNetworking.registerGlobalReceiver(
    MidiAction.ID,
    (payload, context) -> {
        System.out.println("Received MIDI action from device: " + payload.name());
    }
);

Requirements

  • Minecraft 1.20.5+
  • Fabric (or compatible loader)
  • Server mod that handles incoming MidiAction payloads