
Gamerule Events
Gamerule Events is a Minecraft mod for NeoForge that allows you to trigger custom actions when game rules change.
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:
gamerulemust match the in-game gamerule identifier (usually namespaced likeminecraft:doDaylightCycle).when.equalsis compared to the serialized new gamerule value; booleans should be"true"/"false".- After editing JSON, run
/reloadto apply changes.
Supported Actions
The datapack schema uses an actions[] array. Supported action types:
broadcast_titletitle(Component JSON) optionalsubtitle(Component JSON) optionalfadeIn(int, default10)stay(int, default40)fadeOut(int, default10)
broadcast_soundsound(string, resource location likeminecraft:block.note_block.pling)volume(float, default1.0)pitch(float, default1.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
How to Install Gamerule Events on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set neoforge Loader
In the panel under "Egg", select the neoforge loader and matching Minecraft version (26.1.2).
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
Minecraft Versions
26.1.2, 26.1.1, 26.1
Server-side
✓ RequiredRecommended 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.