Back to mods
Dye project artwork

Modrinth · Minecraft mod

Dye

Library to expose INVOKEDYNAMIC to mods.

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

Quick answer

Which Dye release matches 1.19?

Updated 4 years ago
Best match for your filters 0.1.2
Game version 1.17, 1.17.1, 1.18
Loader Forge

Dye 0.1.2 targets 1.17, 1.17.1, 1.18 with Forge. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

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

Installation on the client is optional. Installation on the dedicated server is optional.

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

The source marks this as usable on both the client and server.

What else does Dye 0.1.2 need?

0.1.2 on 1.19. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Dye without breaking your instance.

Built for Dye 0.1.2 on 1.19. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 0.1.2. It targets 1.17, 1.17.1, 1.18 with Forge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

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

About this project

What does Dye add?

A library / modlauncher service that exposes the jvm INVOKEDYNAMIC opcode to modders. For more information on how to use it as a modder, see the GitHub.

Some more explanation on this:

The Java Virtual Machine (JVM) has an opcode called INVOKEDYNAMIC. Each individual occurrence of that opcode in bytecode is permanently bound to a CallSite object when executed the first time. This CallSite is obtained by calling a bootstrap method, which is implemented in plain java. This is for example used to implement lambdas in bytecode.

Dye provides a transform service to replace regular method calls to methods annotated with a special annotation with INVOKEDYNAMIC opcodes to a custom bootstrap method given by the annotation value.

Project description from Modrinth.

Pick your setup

Dye by Minecraft version and loader

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

12 available setups

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

Recent files

Dye versions and loaders

1 of 1 releases match

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