Gamerule Events
No reviews yet
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.
Neoforge is a fork of the Minecraft Forge available for versions 1.20.1+ of Minecraft. Many Forge mods are compatible with Neoforge and vice versa.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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 for details.
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.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers