Back to mods
midi project artwork

Modrinth · Minecraft mod

midi

A lightweight Minecraft mod for sending MIDI-like actions from the client to the server via custom plugin messages.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which midi release matches 1.21.2?

Updated 1 year ago
Best match for your filters 1.0.0
Game version 1.21.2
Loader Fabric

midi 1.0.0 targets 1.21.2 with Fabric. It must be installed on the client. Do not install it on the dedicated server. 1 required mod needs a matching file.

Where it goes

Is midi required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked client-only.

What else does midi 1.0.0 need?

1.0.0 on 1.21.2. Every mod below is checked against that same setup.

1 required mod needs a matching file

Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

Fabric API Needed by midi 1.0.0
required
No matching file

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add midi without breaking your instance.

Built for midi 1.0.0 on 1.21.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.0. It targets 1.21.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.0. It opens that exact file at the source.

About this project

What does midi add?

🎹 MIDI Plugin Message Mod

This Minecraft mod adds support for sending MIDI actions from the client to the server using custom plugin messages. It can be used to control in-game instruments, sound systems, lighting effects, or other MIDI-reactive features.

📦 Plugin Message: midi:action

The plugin message is based on a custom payload called MidiAction, sent via the CustomPayload system.

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 (e.g., "Launchpad")
command int MIDI command (e.g., 144 = Note On)
channel int MIDI channel (0–15)
data1 int First data value (e.g., note number)
data2 int Second data value (e.g., velocity)

🛠 Example Usage

Sending from the Client

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

Receiving on the Server

Register a global receiver in your server mod:

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

⚙️ Technical Details

  • Packet ID: midi:action
  • Codec: Custom implementation using FriendlyByteBuf
  • Minecraft Version: 1.20.5+ (uses CustomPacketPayload API)

✅ Requirements

  • Minecraft 1.20.5 or higher
  • Fabric (or another compatible mod loader)
  • A server mod that handles incoming MidiAction payloads

Got questions or suggestions? Feel free to open an issue or reach out
directly!

Project description from Modrinth.

Pick your setup

midi by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

11 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

midi versions and loaders

2 of 21 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.