Gamerule Events

Gamerule Events

Gamerule Events is a Minecraft mod for NeoForge that allows you to trigger custom actions when game rules change.

by
26 Downloads
neoforge
Rent Server with this Mod

About this Mod

Gamerule Events

Gamerule Events is a Minecraft mod for NeoForge that allows you to trigger custom actions when game rules change. Actions are defined via data packs.

Features

  • Trigger Actions on GameRule Change: Execute titles, subtitles, and sounds when a specific game rule is modified.
  • Data Pack Driven: Define your own rules and actions in data/<namespace>/gamerule_events/ JSON files.
  • Multiple Actions: Supports setting title/subtitle (with fade timings) and playing sounds.

Example Configuration

Create a file at data/<namespace>/gamerule_events/<name>.json:

{
  "rules": [
    {
      "gamerule": "minecraft:doDaylightCycle",
      "when": {
        "equals": "false"
      },
      "actions": [
        {
          "type": "broadcast_title",
          "title": { "text": "Daylight Cycle Stopped", "color": "red" },
          "subtitle": { "text": "Gamerule change detected", "color": "yellow" },
          "fadeIn": 10,
          "stay": 60,
          "fadeOut": 10
        },
        {
          "type": "broadcast_sound",
          "sound": "minecraft:block.note_block.pling",
          "volume": 1.0,
          "pitch": 1.0
        }
      ]
    }
  ]
}

Notes:

  • gamerule must match the in-game gamerule identifier (usually namespaced like minecraft:doDaylightCycle).
  • when.equals is compared to the serialized new gamerule value; booleans should be "true" / "false".
  • After editing JSON, run /reload to apply changes.

Supported Actions

The datapack schema uses an actions[] array. Supported action types:

  • broadcast_title

    • title (Component JSON) optional
    • subtitle (Component JSON) optional
    • fadeIn (int, default 10)
    • stay (int, default 40)
    • fadeOut (int, default 10)
  • broadcast_sound

    • sound (string, resource location like minecraft:block.note_block.pling)
    • volume (float, default 1.0)
    • pitch (float, default 1.0)

Installation

Gamerule Events targets NeoForge 26.1 (Minecraft 26.1) or later.

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.

Available Versions

Gamerule Events 1.2.3release
MC 26.1, 26.1.1, 26.1.2neoforge
May 20, 2026
Gamerule Events 1.2.2release
MC 26.1, 26.1.1, 26.1.2neoforge
May 6, 2026
Gamerule Events 1.2.1release
MC 26.1, 26.1.1, 26.1.2neoforge
May 6, 2026
Gamerule Events 1.2.0release
MC 26.1, 26.1.1, 26.1.2neoforge
May 6, 2026
Gamerule Events 1.0.0release
MC 26.1, 26.1.1, 26.1.2neoforge
May 6, 2026

How to Install Gamerule Events on Your Server

1

Order Server

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

2

Set neoforge Loader

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

3

Install Mod

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

Compatibility

Mod Loaders

neoforge

Minecraft Versions

26.1.2, 26.1.1, 26.1

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Gamerule Events server crashes on startup – what to do?

Most common cause: wrong neoforge 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 (26.1.2). You can switch loaders with one click in the panel.

Is Gamerule Events compatible with neoforge?

Gamerule Events officially supports neoforge for Minecraft 26.1.2, 26.1.1, 26.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Gamerule Events – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Gamerule Events 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 Gamerule Events 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

26.1.226.1.126.1