{"id":74739,"date":"2026-06-04T11:07:52","date_gmt":"2026-06-04T08:07:52","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/gamerule-events\/"},"modified":"2026-06-04T11:07:52","modified_gmt":"2026-06-04T08:07:52","slug":"gamerule-events","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/gamerule-events\/","title":{"rendered":"Gamerule Events"},"content":{"rendered":"<p># Gamerule Events<\/p>\n<p>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.<\/p>\n<p>## Features<\/p>\n<p>&#8211; **Trigger Actions on GameRule Change**: Execute titles, subtitles, and sounds when a specific game rule is modified.<br \/>\n&#8211; **Data Pack Driven**: Define your own rules and actions in `data\/<namespace>\/gamerule_events\/` JSON files.<br \/>\n&#8211; **Multiple Actions**: Supports setting title\/subtitle (with fade timings) and playing sounds.<\/p>\n<p>## Example Configuration<\/p>\n<p>Create a file at `data\/<namespace>\/gamerule_events\/<name>.json`:<\/p>\n<p>&#8220;`json<br \/>\n{<br \/>\n  &#8220;rules&#8221;: [<br \/>\n    {<br \/>\n      &#8220;gamerule&#8221;: &#8220;minecraft:doDaylightCycle&#8221;,<br \/>\n      &#8220;when&#8221;: {<br \/>\n        &#8220;equals&#8221;: &#8220;false&#8221;<br \/>\n      },<br \/>\n      &#8220;actions&#8221;: [<br \/>\n        {<br \/>\n          &#8220;type&#8221;: &#8220;broadcast_title&#8221;,<br \/>\n          &#8220;title&#8221;: { &#8220;text&#8221;: &#8220;Daylight Cycle Stopped&#8221;, &#8220;color&#8221;: &#8220;red&#8221; },<br \/>\n          &#8220;subtitle&#8221;: { &#8220;text&#8221;: &#8220;Gamerule change detected&#8221;, &#8220;color&#8221;: &#8220;yellow&#8221; },<br \/>\n          &#8220;fadeIn&#8221;: 10,<br \/>\n          &#8220;stay&#8221;: 60,<br \/>\n          &#8220;fadeOut&#8221;: 10<br \/>\n        },<br \/>\n        {<br \/>\n          &#8220;type&#8221;: &#8220;broadcast_sound&#8221;,<br \/>\n          &#8220;sound&#8221;: &#8220;minecraft:block.note_block.pling&#8221;,<br \/>\n          &#8220;volume&#8221;: 1.0,<br \/>\n          &#8220;pitch&#8221;: 1.0<br \/>\n        }<br \/>\n      ]<br \/>\n    }<br \/>\n  ]<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>Notes:<br \/>\n&#8211; `gamerule` must match the in-game gamerule identifier (usually namespaced like `minecraft:doDaylightCycle`).<br \/>\n&#8211; `when.equals` is compared to the serialized new gamerule value; booleans should be `&#8221;true&#8221;` \/ `&#8221;false&#8221;`.<br \/>\n&#8211; After editing JSON, run `\/reload` to apply changes.<\/p>\n<p>## Supported Actions<\/p>\n<p>The datapack schema uses an `actions[]` array. Supported action `type`s:<\/p>\n<p>&#8211; `broadcast_title`<br \/>\n  &#8211; `title` (Component JSON) optional<br \/>\n  &#8211; `subtitle` (Component JSON) optional<br \/>\n  &#8211; `fadeIn` (int, default `10`)<br \/>\n  &#8211; `stay` (int, default `40`)<br \/>\n  &#8211; `fadeOut` (int, default `10`)<\/p>\n<p>&#8211; `broadcast_sound`<br \/>\n  &#8211; `sound` (string, resource location like `minecraft:block.note_block.pling`)<br \/>\n  &#8211; `volume` (float, default `1.0`)<br \/>\n  &#8211; `pitch` (float, default `1.0`)<\/p>\n<p>## Installation<\/p>\n<p>Gamerule Events targets NeoForge **26.1** (Minecraft **26.1**) or later.<\/p>\n<p>## License<\/p>\n<p>This project is licensed under the MIT License &#8211; see the [LICENSE.txt](LICENSE.txt) file for details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gamerule Events is a Minecraft mod for NeoForge that allows you to trigger custom actions when game rules change.<\/p>\n","protected":false},"featured_media":74740,"template":"","meta":{"_minecraft_slug":"gamerule-events","_minecraft_project_id":"EC7DlBPJ","_minecraft_author":"ImEden6","_minecraft_license":"MIT","_minecraft_downloads":8,"_minecraft_follows":0,"_minecraft_client_side":"required","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"gamerule-events.zip","_minecraft_size_bytes":168158,"_minecraft_version_count":4,"_minecraft_updated_at":"2026-05-16T13:00:40.122720Z","_minecraft_date_created":"2026-05-07T22:27:41.244309Z","_minecraft_date_modified":"2026-05-06T14:51:22.173096Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/gamerule-events","_minecraft_icon_attachment_id":74740,"_minecraft_imported_at":"2026-06-04T08:07:53+00:00","_minecraft_import_hash":"9ed8e15fe02d44bdb43037676721f2d8","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[158],"mod_loader":[160],"minecraft_version":[83,167,163],"class_list":["post-74739","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-neoforge","mod_loader-neoforge","minecraft_version-26-1","minecraft_version-26-1-1","minecraft_version-26-1-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Gamerule Events - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/gamerule-events\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Gamerule Events - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Gamerule Events is a Minecraft mod for NeoForge that allows you to trigger custom actions when game rules change.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/gamerule-events\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/gamerule-events\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/gamerule-events\\\/\",\"name\":\"Gamerule Events - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/gamerule-events\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/gamerule-events\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/gamerule-events-icon-53f8f10ca5a0b6c9ba1f47402fb004de38deb1d0_96.webp\",\"datePublished\":\"2026-06-04T08:07:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/gamerule-events\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/gamerule-events\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/gamerule-events\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/gamerule-events-icon-53f8f10ca5a0b6c9ba1f47402fb004de38deb1d0_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/gamerule-events-icon-53f8f10ca5a0b6c9ba1f47402fb004de38deb1d0_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/gamerule-events\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Gamerule Events\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Gamerule Events - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/gamerule-events\/","og_locale":"en_US","og_type":"article","og_title":"Gamerule Events - Minecraft","og_description":"Gamerule Events is a Minecraft mod for NeoForge that allows you to trigger custom actions when game rules change.","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/gamerule-events\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/gamerule-events\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/gamerule-events\/","name":"Gamerule Events - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/gamerule-events\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/gamerule-events\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/gamerule-events-icon-53f8f10ca5a0b6c9ba1f47402fb004de38deb1d0_96.webp","datePublished":"2026-06-04T08:07:52+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/gamerule-events\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/gamerule-events\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/gamerule-events\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/gamerule-events-icon-53f8f10ca5a0b6c9ba1f47402fb004de38deb1d0_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/gamerule-events-icon-53f8f10ca5a0b6c9ba1f47402fb004de38deb1d0_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/gamerule-events\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"Gamerule Events"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/74739","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/74740"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=74739"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=74739"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=74739"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=74739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}