Mineuniverse
Mods
GameRule-Extensions

GameRule-Extensions

MOD
[1.7.10] Rewrites Minecraft's gamerules to be more accessible and extensible for mod authors
by rndmorris
Download Claim this project
97 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
API and Library
Advertisement Remove ads with Premium →

GameRule-Extensions

An extension library to allow mod developers to more easily add custom gamerules, with additional datatype support.

Usage (Mod Developers Only)

Adding a new game rule

  1. Add the API jar as a dependency to your project.
  2. Call dev.rndmorris.gameruleexts.api.GameRulesApi.registerGameRule(...) to add a new gamerule for your mod. The api.rules package contains basic implementations for declaring boolean, numerical, and string gamerules.
  3. If necessary, write your own IGameRule implementation.

Reading a game rule

  1. Call dev.rndmorris.gameruleexts.api.GameRulesApi.getGameRules(...).
  2. The returned IGameRules object can be used to retrieve and update gamerules by their name.

Credits

  • rndmorris (primary author)
  • The GTNH team, for the project template
gameruleexts-v1.0.0.jar
MC Client, Forge, 1.7.10, Server
Release 2024-09-19 Get

More from rndmorris

Advertisement Remove ads with Premium →

You Might Also Like