Skip to content

Triggers

A modular Forge-style event API for triggers!

FabricNeoForgeForge
Loaders
FabricNeoForgeForge
Downloads on Modrinth
10.9K
Followers on Modrinth
2
versions
10
Updated
October 24, 2026Oct 24
Published
in 2026
This is a library — other mods need it, and it adds nothing to the game by itself

At a glance

A library: other mods need it
Runs on Fabric, NeoForge and Forge
For Minecraft 1.20.1, 1.21.1
Needed in the game and on the server
Latest version — 1.1.0-1.21.1-neoforge from October 24, 2026
License MIT — free
Where it's needed
In gamerequiredOn serverrequired

Needed both in the game and on the server

Game versions1.20.1, 1.21.1

Triggers

forge fabric neoforge

About

Triggers is a library mod that provides a unified, modular, Forge-style event API for in-game triggers and advancement criteria. It abstracts standard Minecraft triggers (such as item enchantment, block interactions, taming animals, and earning stats) into an easy-to-use event bus. This allows developers to seamlessly listen to and handle these actions across multi-loader environments (Forge, Fabric, and NeoForge) without needing to mixin to the triggers themselves.

For Developers

Adding to your build.gradle

You can easily add Triggers to your development environment using the Modrinth Maven.

First, add the Modrinth maven to your repositories block:

repositories {
    exclusiveContent {
        forRepository { 
            maven { 
                url = "https://api.modrinth.com/maven" 
            } 
        }
        filter { 
            includeGroup "maven.modrinth" 
        }
    }
}

Then, add the mod as a dependency in your dependencies block:

dependencies {
    // Replace <version> with the target version of Triggers
    implementation "maven.modrinth:triggers:<version>" 
}

Example Usage

Triggers uses a custom event bus that functions similarly to Forge's event bus. You can register listeners to Triggers.EVENTS and listen for specific events.

import com.evandev.triggers.Triggers;
import com.evandev.triggers.event.events.TriggerEntityEvent;
import com.evandev.triggers.event.events.TriggerPlayerEvent;

public class MyMod {
    public static void init() {
        // Listen for when a player enchants an item
        Triggers.EVENTS.addListener(TriggerPlayerEvent.Enchant.class, event -> {
            System.out.println(event.player.getName().getString() + " enchanted " + event.item);
        });

        // Listen for when an animal is tamed
        Triggers.EVENTS.addListener(TriggerEntityEvent.TameAnimal.class, event -> {
            if (event.causedByPlayer != null) {
                System.out.println("Animal tamed by: " + event.causedByPlayer.getName().getString());
            }
        });
    }
}

License

Code license (MIT)


discord-plural github-plural

FAQ

How to install Triggers?

Install Fabric for your Minecraft version, download Triggers for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Triggers support?

Triggers has builds for Minecraft 1.20.1, 1.21.1.

Is Triggers needed on the server?

Needed in the game and on the server

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More