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.
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
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.
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.
Titles and subtitles
Actions can show a title or subtitle with fade timings, and the title text is a JSON Component.
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.
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?
Which loader and game versions does Gamerule Events support?
How are changes applied to an event file?
More from ImEden6
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…
Official listing
- Modrinth page
- modrinth.com/mod/gamerule-events
- Owner
- ImEden6
- Published
- 2026-05-06
- Updated on Modrinth
- 2026-06-18
- Facts verified
- 2026-10-15
