Logo
MINECRAFTBIBLE
Items
Items

All game items

Blocks
Blocks

Building blocks

Mobs
Mobs

Creatures & monsters

Biomes
Biomes

World biomes

Structures
Structures

Generated structures

Recipes
Recipes

Crafting guides

Advancements
Advancements

Achievements

Loot Tables
Loot Tables

Drop rates

Tags
Tags

Item groupings

All Versions
View all data →
Capes
Cape ArchiveNEW

Browse rare Minecon capes, OptiFine capes, and custom capes from players worldwide

Browse

Player Database
Player DatabasePopular

Search any player

Skin Browser
Skin Browser

Browse & download skins

Cape Gallery
Cape GalleryNEW

Minecon & OptiFine capes

Seed Vault
Seed Vault

Curated seeds

Learn

Guides
GuidesNew

Tutorials & tips

Blog
Blog

News & updates

Community

Community Hub
Community HubHub

Posts, discussions & more

All Versions
View community →
Seed Analyzer
Seed Analyzer

World seed analysis

Loot Explorer
Loot Explorer

Drop rates

Crafting Calculator
Crafting Calculator

Material planning

Enchant Calculator
Enchant Calculator

Probability math

Redstone Lab
Redstone Lab

Signal timing

Trading Profit
Trading Profit

Villager ROI

All Versions
View all tools →
Mods
Mods

Browse all mods

Plugins
Plugins

Server plugins

Resource Packs
Resource Packs

Textures & sounds

Shaders
Shaders

Visual enhancements

Datapacks
Datapacks

World logic

Scanner
Mod Intelligence

Scan & analyze any mod

All Versions
View all mods →
Loading...
IntroductionIntroductionVersion HistoryVersion HistoryGuidesGuidesBlog & NewsBlog & News
ItemsItemsBlocksBlocksMobsMobsRecipesRecipesBiomesBiomesStructuresStructuresAdvancementsAdvancementsLoot TablesLoot TablesTagsTags
ModsModsPluginsPluginsResource PacksResource PacksShadersShadersDatapacksDatapacks

MinecraftBible

The Ultimate Wiki

Logo
MINECRAFTBIBLE

The ultimate Minecraft reference. Every item, block, mob, and recipe documented with precision.

Community

  • Skin Browser
  • Cape Gallery
  • Seed Vault
  • Blog
  • Guides

Database

  • Items
  • Blocks
  • Mobs
  • Recipes
  • Biomes
  • Structures

Tools

  • Seed Analyzer
  • Mod Intelligence
  • Crafting Calculator
  • Enchant Calculator

Mods & Packs

  • Mods
  • Plugins
  • Resource Packs
  • Shaders
  • Datapacks

Site & Legal

  • About
  • Authors
  • Editorial Policy
  • Corrections
  • Contact
  • Privacy Policy
  • Terms of Service
  • DMCA
  • Sitemap

© 2026 MinecraftBible. Not affiliated with Mojang or Microsoft.

PrivacyTermsContact
xlib
PluginApache-2.0

xlib

Utilities to simplify plugin development

255
Downloads
1
Followers
8 months ago
Updated
📦
3
Versions
libraryutilitybukkitfoliapaperpurpurspigot
Download Latestv2.0.0-SNAPSHOTView on Modrinth

📖About xlib

THIS PLUGIN IS ARCHIVED! USE PAPER-LANGUAGE-KOTLIN https://modrinth.com/plugin/paper-language-kotlin

Introducing XLIB!

XLIB simplifies plugin development for Minecraft for beginner developers using Kotlin. The library is designed so that developers don't have to worry about certain functions and can create and implement their ideas.

Installation

Choose the module you need

(You will need to install the XLIB plugin on your server or implement it in your plugin.)
ModuleDescription
xlib-all Contains all the functions from the modules listed below.
xlib-adventure Contains functions for working with Kyori Adventure Components.
xlib-config (COMING SOON) Contains functions for working with configurations.
xlib-plugin Contains functions that interact with JavaPlugin.

Add to build.gradle.kts

repositories {
    maven("https://jitpack.io")
}

// If you have installed the XLIB plugin on your server, use 'compileOnly'.
dependencies {
    implementation("com.github.alexthegoood.xlib:{module}:{version}")
}

Note: If you want to learn more about the functions and contents of the modules, check the source code.

Examples

registerListeners
class ExamplePlugin : JavaPlugin() {
    override fun onEnable() {
        registerListeners(
            MyListener1(),
            MyListener2()
        )
    }
}

class MyListener1 : Listener { /* EventHandlers here */ }
class MyListener2 : Listener { /* EventHandlers here */ }
isFolia
class ExamplePlugin : JavaPlugin() {
    override fun onEnable() {
        val foliaServer = isFolia() // True if the server work on Folia, otherwise false
    }
}
replacePattern
fun myFunction() {
    var mycomponent = Component.text("This is #000000")
    mycomponent = mycomponent.replacePattern("#([0-9a-fA-F]{6})", "hex color") // Component.text("This is hex color")
}
replaceLiteral
fun myFunction() {
    var mycomponent = Component.text("Hello world")
    mycomponent = mycomponent.replacePattern("world", "minecraft") // Component.text("Hello minecraft")
}
serialization and deserialization
/*
    You can use Serializers enum (Serializers.{PLAIN, LEGACY, MINI, GSON, JSON}).
    Example: serialize(Serializers.MINI); deserialize(Serializers.JSON).
    By default: Serializers.PLAIN
 */
fun mySerialization() {
    val mycomponent = Component.text("Hello world")
    val mystring = mycomponent.serialize() // "Hello world"
}

fun myDeserialization() {
    val mystring = "Hello world"
    val mycomponent = mystring.deserialize() // Component.text("Hello world")
}

👥 Team & Contributors

AlexTheGoood
AlexTheGooodOwner

⚙️ Compatibility

Environment
🖥️ Server-side
Loaders
bukkitfoliapaperpurpurspigot
Minecraft Versions
1.21.8

🔗 Links

Modrinth Page