
Gamerule Events
Gamerule Events is a Minecraft mod for NeoForge that allows you to trigger custom actions when game rules change.
28
0
28
0
Changelog
[1.0.0] - 2026-06-18
Changed
- Version: Ported mod to Minecraft 26.2 (NeoForge 26.2.0.1-beta).
Changelog
- Removed the client-only entrypoint and set both NeoForge and Minecraft dependency sides to
SERVER.
- Removed the client-only entrypoint and set both NeoForge and Minecraft dependency sides to
Massive change
- Made it a server-only mod, client optional.
Minor bug fixes where audio won't play
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
- Expanded datapack
Release
Ссылки
Авторы
Сведения
Лицензия:
Опубликован:1 месяц назад
Обновлён:6 часов назад
ID проекта:
