Mineuniverse
Log in Register
Mods

Triggers Library

A modular Forge-style event API for triggers!
by evanbones
Download Claim this project
77 downloads
0 likes
Updated Jul 6, 2026
0 hypes
API and Library

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 = "" rel="noopener nofollow" target="_blank">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

Triggers Fabric 1.21.1 - 1.0.1
MC Fabric, 1.21.1
Release 2026-04-28 Get
Triggers Neoforge 1.21.1 - 1.0.1
MC 1.21.1, NeoForge
Release 2026-04-28 Get
Triggers Forge 1.20.1 - 1.0.1
MC 1.20.1, Forge
Release 2026-04-22 Get

More from evanbones

Packdev Toolkit
85
project-926069
7,908
Scholar Unofficial Backport
67,860
Reoreganized
6,590
Reliable Gliders
6,530
project-506560
5,206

You Might Also Like

Vivecraft
A Minecraft VR mod on a loader of your choice!
9,988,339
Athena
A crossplatform (Forge/Fabric) solution to connected block textures for 1.19.4+
99,799,527
Lodestone
A collection of code used throughout projects under the Lodestar team.
9,914,417
TheDragonLib
A library for most of sokratis12GR's Mods
9,910,232
Multi Mob Library
A library mod containing essential files for Daveyx0's mob mods
9,892,767
FTB Library (Forge) (Legacy)
FTB Library is a library mod that is used for some of our mods.
98,265,314