Compatibility
Minecraft: Java Edition
1.19
Platforms
Fabric
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
Licensed MIT
Published 2 years ago
Updated 2 years ago
Loose Ends Lib
A library that controls how servers and clients will act when joining without the mod.
Installation:
Add the following to your build.gradle
.
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
modImplementation 'com.github.Totobird-Creations:LooseEndsLib:${looseendslib_version}'
// Optional.
include 'com.github.Totobird-Creations:LooseEndsLib:${looseendslib_version}'
}
Add the following to your gradle.properties
.
looseendslib_version = v1.0.3-mc1.19
Usage:
In your initialiser's onInitialize
method, add the following:
LooseEndManager.getInstance().register(mod_id, mod_name, mod_version)
.whenClientJoins(condition)
.whenJoinServer(condition).
Conditions:
LooseEnd.Condition.REQUIRED
: The peer must also have the mod.LooseEnd.Condition.NONE
: Nothing happens.LooseEnd.Condition.DISALLOWED
: The peer can not have the mod.