Mineuniverse
Log in Register
Mods

GameRule-Extensions

[1.7.10] Rewrites Minecraft's gamerules to be more accessible and extensible for mod authors
by rndmorris
Download Claim this project
79 downloads
0 likes
Updated Jul 6, 2026
0 hypes
API and Library

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

Essentia Pipes
2,988
Salis Arcana
10,160

You Might Also Like

Vivecraft
A Minecraft VR mod on a loader of your choice!
9,988,339
Athena
A crossplatform (Forge/Fabric) solution to connected block textures for 1.19.4+
99,799,527
Lodestone
A collection of code used throughout projects under the Lodestar team.
9,914,417
TheDragonLib
A library for most of sokratis12GR's Mods
9,910,232
Multi Mob Library
A library mod containing essential files for Daveyx0's mob mods
9,892,767
FTB Library (Forge) (Legacy)
FTB Library is a library mod that is used for some of our mods.
98,265,314