Wiki 9Minecraft OwO Lib Mod Wiki
OwO Lib Mod Wiki › Configuration

OwO Lib Mod — Configuration

Configuration System (owo-config)

The owo-config system is an annotation-driven framework that automatically generates graphical configuration screens. It supports advanced features like server-client synchronization and real-time validation.

Key Features

  • Automatic Screen Generation: Config screens are built using owo-ui and can be customized via XML without changing code.
  • Synchronization: Options can be marked for automatic syncing from the server to the client, preventing gameplay inconsistencies.
  • Search Functionality: Built-in search bar allows users to quickly find specific options by name or value.
  • Constraints: Developers can define ranges, regex patterns, or custom predicates to validate user input.
  • Restart Requirements: Options can be flagged to notify the user if a game restart is required to apply changes.

Supported Data Types

Standard primitives (int, float, boolean, String), Enums, Lists, Sets, and custom objects. It also natively supports the Color type with an integrated picker.

Commands

OwO Lib adds administrative and debug commands to assist both players and developers.

Command Description
/owo-config Opens the configuration screen for any registered mod, even if ModMenu is not installed.
/owo-ui debug (Developer only) Toggles the UI inspector to debug layout boundaries and component properties.