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
Changelog
Added
- Expanded datapack
whencondition 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_chatbroadcast_actionbarrun_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-basedpermission_level,dimension
- Added command:
/gameruleevents list/gameruleevents validate(reports last reload warning/error counts)
Changed
- Refactored rule matching from simple
equals/anyto predicate-based parsing. - Rules are now sorted by
priorityduring 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
allowCommandActionsto common config (defaultfalse).
Diagnostics and Logging
- Added structured warning logging for invalid audience config:
- unknown audience values/types
- invalid dimension IDs
permission_level > 2limitation warning
- Added reload diagnostics counters:
- warning/error totals captured per reload and exposed via
/gameruleevents validate.
- warning/error totals captured per reload and exposed via
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
2are warned and treated as unsupported in this build

