LibGamerule
Java mod listed for Minecraft 1.16. Downloads from the MC Java Mods app on Android.
⬇ Download on CurseForgeThe author built this one for Minecraft 1.16.1 on Fabric. On other versions it may install and then do nothing.
LibGamerule
Libgamerule allows for easily adding custom gamerules on the Fabric modloader.
Usage (for mod devs)
// Adding a boolean gamerule
GameRules.RuleKey<BooleanRule> MY_GAMERULE = Gamerule.register(
"myGameRule", // name in /gamerule
BooleanRule.create(true) // default to true
);
// Get the gamerule data
boolean value = Gamerule.get(MY_GAMERULE);
Supported Rule types:
- BooleanRule
- DoubleRule (+min/max)
- IntRule (+min/max)
- EnumRule (Any Enum)
- StringRule (greedy strings)
Libcd support (datapack/modpack devs)
Conditions (note: does not support enums)
{
"when": [
{
"comment": "Boolean gamerule check",
"libgamerule:gamerule_has_value": "my_gamerule"
},
{
"comment": "Typed gamerule check",
"libgamerule:gamerule_has_value": {
"name": "my_gamerule_typed",
"type": "int",
"value": 10
}
}
]
}
Creating gamerules in scripts
var GameruleTweaker = libcd.require("libgamerule.GameruleTweaker");
GameruleTweaker.addGamerule("my_gamerule", "boolean", false);
GameruleTweaker.addGamerule("my_gamerule_typed", "integer", 7);
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.16.1
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on CurseForge — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
- Ships as libgamerule-0.0.6-1.16.1.jar — drop this file into the mods folder
- Download size: 28 KB
- Download link checked 14 Oct 2026 — working
These come from our own check of the pack file, not from the source page.