Triggers

Triggers

A modular Forge-style event API for triggers!

by
124 Downloads
fabricforgeneoforgelibrary
Rent Server with this Mod

About this Mod

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

Available Versions

Triggers Fabric 1.21.1 - 1.0.1release
MC 1.21.1fabric
April 28, 2026
Triggers Neoforge 1.21.1 - 1.0.1release
MC 1.21.1neoforge
April 28, 2026
Triggers Forge 1.20.1 - 1.0.1release
MC 1.20.1forge
April 22, 2026
Triggers Fabric 1.20.1 - 1.0.1release
MC 1.20.1fabric
April 22, 2026
Triggers Forge 1.20.1 - 1.0.0release
MC 1.20.1forge
April 22, 2026

How to Install Triggers on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.1).

3

Install Mod

Open the mod browser in the dashboard and search for "Triggers". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabricforgeneoforge

Minecraft Versions

1.21.1, 1.20.1

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Triggers server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.1). You can switch loaders with one click in the panel.

Is Triggers compatible with fabric and forge and neoforge?

Triggers officially supports fabric, forge, neoforge for Minecraft 1.21.1, 1.20.1. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Triggers – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Triggers consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Triggers with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.11.20.1