Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Loose Ends Lib

Loose Ends Lib

A library that controls how servers and clients will act when joining without the mod.

200
3
Library

Compatibility

Minecraft: Java Edition

1.19

Platforms

Fabric

Supported environments

Client-side
Server-side
Client and server

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source

Creators

Totobird-Creations
Totobird-Creations Owner

Details

Licensed MIT
Published 2 years ago
Updated 2 years ago
DescriptionGalleryChangelogVersions

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.

Modrinth is open source.

main@bd61f5d

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.