Home›Java›Mods›Gamerule Events
Gamerule Events
ModsJava

Gamerule Events

Java mod listed for Minecraft 26.x. Downloads from the MC Java Mods app on Android.

by ImEden6 · on Modrinth

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

⬇ Download on Modrinth

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

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:

Supported Actions

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

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.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more