CurseForge · Minecraft mod
LibGamerule
A library mod to add gamerules
Quick answer
Which LibGamerule release matches 1.15.2?
libgamerule-0.0.4-1.15.2.jar targets 1.15.2 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
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.4-1.15.2.jar need?
libgamerule-0.0.4-1.15.2.jar on 1.15.2. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
1 extra mod was pulled in by another dependency. Indented rows show who needs each one. 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.4-1.15.2.jar on 1.15.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use libgamerule-0.0.4-1.15.2.jar. It targets 1.15.2 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 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.4-1.15.2.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.4-1.15.2.jar
25 Feb 2020
libgamerule-0.0.2-1.15.2.jar
24 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.