Skip to content

LibNine

a spicy library mod

3.8m downloads Updated

Last update on each platform

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

LibNine is a big ol' library mod that provides boilerplate functionality for other mods. In addition, it acts as a Kotlin language adapter from Minecraft 1.13 and on.

Core Features

  • Expedient block and item registration systems
  • Autonomous registry population system
  • Capability management and default implementations
  • GUI and container management and component system
  • Parametric item model system
  • Boilerplate tile entity implementations
  • Autonomous NBT and byte stream serialization
  • Networking abstraction and management system
  • Custom recipe type loading and registration system
  • Mathematical and functional programming utility set
  • Reflection, rendering, world interaction, and other helper classes
  • Null safety annotations
  • Probably a bunch of other stuff I'm forgetting

While there's not meaningful documentation yet, the source code is available on Github.

Discord Support Server

libnine is a library that provides a bunch of boilerplate code for content mods to use. It mostly consists of various bits of code that I found useful in more than one project, which I then factored out into a shared library. Particularly notable features include:

  • Automatic generation of NBT and byte stream serializers based on annotated fields
  • Various prefab capability implementations
  • A generic recipe registry system
  • "Parametric item models" that can depend on nontrivial item stack state
  • A GUI component system and corresponding sync code
  • A huge pile of linear algebra nonsense

However, a lot of the code in this project is rather dated and the architecture is a little bit questionable. As such, I would not recommend depending on libnine for new modding projects.