Back to mods
Dye project artwork

CurseForge · 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.18?

Updated 3 years ago
Best match for your filters Dye-0.1.2.jar
Game version 1.17.1, 1.19.3, 1.18.1
Loader Forge

Dye-0.1.2.jar targets 1.17.1, 1.19.3, 1.18.1 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

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

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
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 does not explicitly classify this release as client-only or server-only.

What else does Dye-0.1.2.jar need?

Dye-0.1.2.jar on 1.18. 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.jar on 1.18. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use Dye-0.1.2.jar. It targets 1.17.1, 1.19.3, 1.18.1 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

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside Dye-0.1.2.jar. 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.

This is a library mod and that obviously means, it does not affect the users experience in any way.

Project description from CurseForge.

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 CurseForge project page is in Resources.