promotional bannermobile promotional banner

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.

File Details

gameruleevents-1.2.0.jar

  • R
  • May 6, 2026
  • 49.72 KB
  • 8
  • 26.1
  • NeoForge

File Name

gameruleevents-1.2.0.jar

Supported Versions

  • 26.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:gamerule-events-1535251:8047004"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Changelog

Added

  • Expanded datapack when condition support:
    • not_equals, in, one_of, matches
    • numeric comparisons: gt, gte, lt, lte
    • transition checks: from_equals, to_equals, changed
  • Added rule context model for old/new value matching (GameruleMatchContext).
  • Added new action types:
    • broadcast_chat
    • broadcast_actionbar
    • run_command (config-gated)
  • Added placeholder expansion in messages/commands:
    • {gamerule}, {old}, {new}, {player}
  • Added rule control fields:
    • id, priority, cooldown_ticks, stop_after
  • Added audience support:
    • all, ops, object-based permission_level, dimension
  • Added command:
    • /gameruleevents list
    • /gameruleevents validate (reports last reload warning/error counts)

Changed

  • Refactored rule matching from simple equals/any to predicate-based parsing.
  • Rules are now sorted by priority during reload.
  • Dispatcher now tracks previous gamerule values and cooldown state.
  • Title/sound actions now execute with match context (for placeholders).
  • Updated docs and examples to reflect new schema and actions.

Config

  • Added allowCommandActions to common config (default false).

Diagnostics and Logging

  • Added structured warning logging for invalid audience config:
    • unknown audience values/types
    • invalid dimension IDs
    • permission_level > 2 limitation warning
  • Added reload diagnostics counters:
    • warning/error totals captured per reload and exposed via /gameruleevents validate.

Notes

  • Current permission-level audience behavior is conservative for mapping compatibility:
    • non-op players are rejected
    • op players satisfy up to level 2
    • levels above 2 are warned and treated as unsupported in this build