ModsFinder

Gamerule Events

by ImEden6

Gamerule Events lets data packs attach custom actions to changes in a game rule, such as doDaylightCycle or any other rule in the minecraft namespace.

NeoForgeClient and serverMIT License26.1 – 26.2

What it does

Each event is defined as a JSON file under data/<namespace>/gamerule_events/, and it names the gamerule to watch. When that rule is set to the value given in the when.equals field, the actions listed in the file run. Booleans are written as true or false, and the comparison uses the serialized value of the new setting. Edits take effect after a reload of data packs.

The mod is needed on NeoForge for 26.1 and later, and it runs on client and server, so both the server and every player need it installed. It is released under the MIT License but is not open source. Files exist for four game versions, 26.1 – 26.2, and the latest build, 1.0.0 for 26.2, was published on 2026-06-18.

Key features

  1. Data pack driven

    Event rules and their actions are written in JSON, so no Java code is needed to add a new reaction to a rule change.

  2. Multiple actions per event

    An event's actions array can hold several entries, so one rule change can trigger a title, a sound and a broadcast together.

  3. Titles and subtitles

    Actions can show a title or subtitle with fade timings, and the title text is a JSON Component.

  4. Sounds and broadcasts

    Actions can play a sound or send a broadcast message when the watched rule is set to the chosen value.

Compatibility

Latest build for each game version and loader.

26.21.0.0
26.1.21.2.3
26.1.11.2.3
26.11.2.3
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Use cases

Announcing a rule change on a server

A server owner can display a title and play a sound to every player when a rule such as doDaylightCycle is switched off.

Custom rule reactions in a pack

A modpack author can tie a themed message to a specific gamerule value without writing a separate mod.

Who it’s for: The mod suits data pack authors and server owners on NeoForge who want messages or sounds to follow gamerule changes. Players on a client-only setup have no use for it, since it needs to run on both sides.

Questions

Does Gamerule Events need to be installed on the server?

Yes. Servers that run it need every player to install it too.

Which loader and game versions does Gamerule Events support?

It is published for NeoForge only, with files for 26.1 – 26.2. Its own description names NeoForge 26.1 and later as the target.

How are changes applied to an event file?

After the JSON is edited, a data pack reload applies the changes. The gamerule value must match the in-game identifier, usually written with a namespace such as minecraft:doDaylightCycle.

More from ImEden6

All projects

What the author says

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. Notes: - gamerule must match the in-game gamerule identifier (usually namespaced like minecraft:doDaylightCycle). - when.equals is compared to the serialized new…
ImEden6, on the Modrinth page

Official listing

Owner
ImEden6
Published
2026-05-06
Updated on Modrinth
2026-06-18
Facts verified
2026-10-15