CurseForge · Minecraft mod
LibGamerule
A library mod to add gamerules
Quick answer
Which LibGamerule release should I use?
libgamerule-0.0.6-1.16.1.jar targets 1.16.1 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.
Where it goes
Is LibGamerule required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does libgamerule-0.0.6-1.16.1.jar need?
libgamerule-0.0.6-1.16.1.jar. Change the file and its required mods may change too.
Install Fabric API first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add LibGamerule without breaking your instance.
Built for libgamerule-0.0.6-1.16.1.jar. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use libgamerule-0.0.6-1.16.1.jar. It targets 1.16.1 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside libgamerule-0.0.6-1.16.1.jar. It opens that exact file at the source.
About this project
What does LibGamerule add?
LibGamerule
Libgamerule allows for easily adding custom gamerules on the Fabric modloader.
Usage (for mod devs)
`
// Adding a boolean gamerule
GameRules.RuleKey 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);
Project description from CurseForge.
Pick your setup
LibGamerule by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.16.1
1 loader build1.16-Snapshot
1 loader build1.15.2
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
LibGamerule versions and loaders
libgamerule-0.0.6-1.16.1.jar
30 Jun 2020
libgamerule-0.0.5-1.16.1.jar
30 Jun 2020
libgamerule-0.0.5-1.16.1.jar
30 Jun 2020
libgamerule-0.0.4-1.15.2.jar
25 Feb 2020
libgamerule-0.0.4-20w08a.jar
25 Feb 2020
libgamerule-0.0.2-20w08a.jar
24 Feb 2020
libgamerule-0.0.2-1.15.2.jar
24 Feb 2020
libgamerule-20w07a-0.0.1.jar
18 Feb 2020
libgamerule-1.15.2-0.0.1.jar
18 Feb 2020
Looking for an older file? The official CurseForge project page is in Resources.