CurseForge · Minecraft mod
Unruled API
Expands on the vanilla gamerules to add new gamerules types for other mods to use
Quick answer
Which Unruled API release should I use?
Unruled API 0.4 - Fabric 1.20 targets 1.20.2, 1.20.3, 1.20.1 with Fabric, Quilt. 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 Unruled API 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 Unruled API 0.4 - Fabric 1.20 need?
Unruled API 0.4 - Fabric 1.20. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Unruled API without breaking your instance.
Built for Unruled API 0.4 - Fabric 1.20. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use Unruled API 0.4 - Fabric 1.20. It targets 1.20.2, 1.20.3, 1.20.1 with Fabric, Quilt; 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 Unruled API 0.4 - Fabric 1.20. It opens that exact file at the source.
About this project
What does Unruled API add?
Unruled API
(for some reason CurseForge doesn't like to properly render the boxed url or code blocks, along other aspects, sorry about that. Don't hesitate to head on to the Modrinth page to see the proper and colored version)
Allows to create new form of gamerules, beyond the restrictive vanilla integers and booleans.
Albeit not registering them automatically, this mod allows you to easily create new floating, long, double, string, text and enum-driven gamerules, using the generative static methods of the mc.recraftors.unruled_api.UnruledApi class.
For consistency, methods have also been created to allow instantiating vanilla gamerules.
Example:
public void gamerulesRegistration() { myGameRule = registerGamerule("my_gamerule", category, UnruledApi.createFloat(1.5)); myOtherGameRule = registerGamerule("my_other_gamerule", category, UnruledApi.createString("some text")); myLastGameRule = registerGamerule("my_last_gamerule", category, UnruledApi.createBoolean(false, (server, rule) -> { onLastRuleChange(server, rule); })); }
Each rule can also be easily consulted using the IGameRulesProvider interface.
Example:
String value = ((IGameRulesProvider)gamerules).unruled_getString(myStringGameRule);float aFloat = ((IGameRulesProvider)gamerules).unruled_getFloat(myFloatGameRule);
How to use in your project
You can implement this mod in your project using the Modrinth maven.
Don't hesitate to read the official documentation.
Need help
Don't hesitate to join our Discord!
Add the Modrinth maven repository
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
<br /><br />
Import the mod
loom example:
dependencies { // using modApi allows your project's dependents to also import dependencies by default modApi "maven.modrinth:unruled-api:${project.unruled_version}"}
forgeGradle example:
dependencies { implementation "maven.modrinth:unruled-api:${project.unruled_version}"}
For copyright reasons, we require you to not include (JiJ, jar-in-a-jar, shadow, etc) this mod inside of your own. Thank you for your comprehension.
Project description from CurseForge.
Pick your setup
Unruled API by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.20.3
4 loader builds1.20.2
4 loader builds1.20.1
4 loader builds1.20
4 loader builds1.19.4
4 loader builds1.19.3
4 loader builds1.19.2
4 loader builds1.19.1
4 loader builds1.19
4 loader builds1.18.2
3 loader builds1.18.1
3 loader buildsShowing the newest 12 of 13 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Unruled API versions and loaders
Unruled API 0.4 - Fabric 1.20
unruled_api-fabric+1.20-0.4.jar
11 Apr 2024
Unruled API 0.4 - Fabric 1.19
unruled_api-fabric+1.19.2-0.4.jar
11 Apr 2024
Unruled API 0.4 - Forge 1.20
unruled_api-forge+1.20-0.4.jar
11 Apr 2024
Unruled API 0.4 - Forge 1.19
unruled_api-forge+1.19.2-0.4.jar
11 Apr 2024
Unruled API 0.3 - Forge 1.20
unruled_api-forge+1.20-0.3.jar
22 Feb 2024
Unruled API 0.3 - Forge 1.19
unruled_api-forge+1.19.2-0.3.jar
22 Feb 2024
Unruled API 0.3 - Forge 1.18
unruled_api-forge+1.18.2-0.3.jar
22 Feb 2024
Unruled API 0.3 - Fabric 1.20
unruled_api-fabric+1.20-0.3.jar
22 Feb 2024
Unruled API 0.3 - Fabric 1.19
unruled_api-fabric+1.19.2-0.3.jar
22 Feb 2024
Unruled API 0.3 - Fabric 1.18
unruled_api-fabric+1.18.2-0.3.jar
22 Feb 2024
Unruled API 0.1 - Fabric 1.20
unruled_api-fabric+1.20-0.1.jar
31 Jan 2024
Unruled API 0.1 - Fabric 1.19
unruled_api-fabric+1.19.2-0.1.jar
31 Jan 2024
Looking for an older file? The official CurseForge project page is in Resources.