O O kowo-lib Mod extends owo-lib with cleaner Kotlin DSL syntax for building custom Minecraft user interfaces. This library mod simplifies how you write UI screens, attach child components to parent layouts, set padding, and trigger sizing animations inside Kotlin projects. It runs directly on top of owo-lib and uses Kotlin context parameters to keep screen code short and easy to read.

O O kowo-lib Mod

Features:

  • Kotlin UI DSL: Provides Kotlin builder blocks such as root, padding, and onPress through the xyz.bonfiremc.kowo.dsl.* package.
  • Simplified Child Components: Uses the unary + operator with calls like +stack, +button, and +label to add child widgets straight into a parent component.
  • Sizing And Animation Helpers: Offers shorthand values like 75.fill and 50.fill alongside clean animation calls such as horizontalSizing().animate(...) and animation.reverse().
  • Works with BaseOwoScreen, FlowLayout, OwoUIAdapter, and panel surfaces like Surface.panelWithInset.
  • Provides .literal and .styled text helpers for writing button and label text cleanly in Kotlin.
  • Pairs with owo-config when you include the owo-lib annotation processor in your build file.
  • Requires owo-lib as a library dependency to load and render custom screens.

Configuration:

  • -Xcontext-parameters: Required Kotlin compiler flag added to kotlin.compilerOptions.freeCompilerArgs inside build.gradle so the DSL compiles properly.

How to Use:

  1. Add this library and owo-lib to the dependencies section of your build.gradle file, along with the owo-lib annotation processor if you use owo-config.
  2. Add -Xcontext-parameters to freeCompilerArgs inside your Kotlin compilerOptions block in build.gradle.
  3. Import xyz.bonfiremc.kowo.dsl.* in your Kotlin screen class that extends BaseOwoScreen<FlowLayout>.
  4. Define your layout inside the root block using +stack, +button, +label, padding, and onPress to assemble screens and UI animations.

O O kowo-lib Mod Download Links

Filter by

For Minecraft 1.21.11, 1.21.10, 1.21.9

For Minecraft 1.21.8, 1.21.7, 1.21.6

Click to rate this post!
[Total: 0 Average: 0]
QUICK MINECRAFT SURVEY · ONE TAP
Mods & Modpacks

How do you handle updating your mods when a new Minecraft version drops?

13 responses · See the full results →