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
ukulib

ukulib

small utility library used in my mods

2.07M
380
Library
Utility

Compatibility

Minecraft: Java Edition

1.21.x
1.20.x
1.19.2–1.19.4
1.19
1.18.2
1.17.1
1.16.5
1.15.2
1.14.4
b1.7.3

Platforms

Fabric
Quilt

Supported environments

Client-side
Client and server

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

View source Join Discord server
Donate on Ko-fi

Creators

uku
uku Owner

Details

Licensed MPL-2.0
Published 2 years ago
Updated last week
DescriptionGalleryChangelogVersions

banner

Maven metadata URL Javadoc badge

Mod icon by the amazing aqo!

The coolest fabric library mod on the internet, which has 0 (zero) dependencies.
Javadoc can be found here for the latest version, or at https://maven.uku3lig.net/javadoc/releases/net/uku3lig/ukulib/VERSION for older versions.

Features

  • A simple yet powerful config system, which also provides utilities for vanilla-style config screens.
  • Various sets of utilities for commands, positioning, text manipulation, etc.
  • Only this for now... but more will come soon™️ ! (ideas and feedback are appreciated :D)

How to use

Add the following to your gradle.properties (see above shield or the maven repo for version info):

# https://github.com/uku3lig/ukulib
ukulib_version=...

build.gradle:

repositories {
    maven {
        url "https://maven.uku3lig.net/releases"
    }
}

dependencies {
    modApi "net.uku3lig:ukulib:${project.ukulib_version}"

    // you can also include it directly if you don't want your users to download it
    include "net.uku3lig:ukulib:${project.ukulib_version}"
}
Development versions

GitHub Workflow Status Maven metadata URL

Development version numbers end with -build.<build number>, e.g. 0.2.2+1.19.2-build.65.
They are not guaranteed to be stable or even work at all, but they are available if you want to test the latest changes.
They are also not published to the releases maven repo, so you have to add the following to your build.gradle:

repositories {
    maven {
        url "https://maven.uku3lig.net/snapshots"
    }
}

Integrating your config screen

Ukulib provides an api class, UkulibAPI, which you can extend to integrate your mod's config screen with ukulib. Example:

public class YourUkulibAPIClass implements UkulibAPI {
    @Override
    public Function<Screen, AbstractConfigScreen<?>> supplyConfigScreen() {
        return parent -> new YourConfigScreen(parent, ...);
    }
}

You then need to add the ukulib entrypoint in your fabric.mod.json:

"entrypoints": {
    ...
    "ukulib": [
      "your.awesome.mod.YourUkulibAPIClass"
    ]
  }

Modrinth is open source.

main@4bafae8

© 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.