ModMC
Moonlight Lib

Moonlight Lib

Powers dynamic wood textures, custom map markers, villager routines, and soft fluids across your mods.

44.46M1.3kModLibrary
Download1.21.1-3.9.2 · MC 1.21.1All files →

About Moonlight Lib

Moonlight Lib is a technical foundation mod created by MehVahdJukaar for Minecraft Java Edition. Rather than offering stand-alone items or blocks directly to players, it provides a shared codebase that other mods rely on to operate smoothly. It runs across Fabric, Forge, and NeoForge loaders, supplying crucial infrastructure such as runtime resource pack creation, dynamic block set registration, and modular behavior hooks that keep different add-ons running together in harmony.

While you will not interact with this library directly in your inventory, it visibly shapes how supported mods behave in the world. It enables smooth first-person and third-person holding animations, customizable map markers that appear directly on in-game maps, and automatic retexturing for new wood varieties. Behind the scenes, it also handles soft fluid interactions, allowing drinks and stews to be stored in compact tanks or served directly from bowls, bottles, and buckets.

This library suits pack creators, datapack developers, and players assembling customized installations who want cohesive interactions between different additions. If you enjoy rich map decorations, responsive villager schedules that do not break standard artificial intelligence, or custom advancement triggers tied to the grindstone, this mod provides the framework to make that possible. Datapack creators can also use its data-driven structures to add new map markers without touching core game code.

In a modpack, Moonlight Lib operates strictly as an essential dependency that must be present on both the client and the server. Because multiple popular mods require it, installing it into your mods folder ensures that dependent features load properly without crashing your world. It also ensures dispenser mechanics, such as block placement and spawn egg handling, register cleanly alongside vanilla actions without overwriting existing game behaviors.

Features

  • Dynamic runtime resource pack and datapack system for texture respriting and wood blocks.
  • Dynamic block set registration with built-in scanning support for new wood types.
  • Data-driven map marker system with rendering controls and map data tooltip hooks.
  • Compatible villager artificial intelligence helper to add dynamic tasks, schedules, and memories.
  • Interfaces for custom first-person and third-person item holding and rendering animations.
  • Custom advancement trigger fired whenever an item passes through a grindstone.
  • Virtual soft fluid system calibrated to one bottle unit supporting stews and drinks.
  • Non-overriding dispenser behavior registration with built-in spawn egg and block placement support.

Tips

  • Install Fabric API alongside Moonlight Lib whenever you run the mod on Fabric loaders.
  • Place this library on both your client and dedicated server to prevent startup and connection issues.
  • Use custom datapacks if you want to register new map markers without modifying underlying Java code.
  • Pair it with mods adding new wood sets or soft fluid containers to benefit from automatic generation.

How to install

  1. Install Fabric / Forge / NeoForge for your Minecraft version (use the official installer).
  2. Download the file that matches your Minecraft version and Fabric / Forge / NeoForge.
  3. Open the .minecraft folder and put the file into the "mods" folder (create it if missing).
  4. Launch Minecraft with the Fabric / Forge / NeoForge profile.

FAQ

Which mod loaders and Minecraft versions are compatible with Moonlight Lib?

Moonlight Lib supports Fabric, Forge, and NeoForge across fifteen game versions from 1.16.5 up to 26.1.2. Make sure you select the exact build matching your loader and game edition.

Do I need to install Moonlight Lib on both the client and the server?

Yes, this mod is required on both the client side and the server side. Running it on both ensures dynamic textures, animations, and registration hooks stay synchronized.

Does Moonlight Lib require any additional dependencies to run?

If you are running the mod on the Fabric loader, you must install Fabric API as a required dependency. Forge and NeoForge setups do not list extra required mods in the specifications.

Download Moonlight Lib

Fabric API

Fabric API by modmuss50

Enables seamless mod interactions and core functionality for Fabric mods

ModLibraryFabric
296.67M downloads38k followers 3 hours ago
Cloth Config API

Cloth Config API by shedaniel

Simplifies mod configuration screens for smoother gameplay

ModLibraryFabricForgeNeoForge
188.83M downloads17k followers 2 weeks ago
YetAnotherConfigLib (YACL)

YetAnotherConfigLib (YACL) by isxander

Streamline mod configs with a flexible, intuitive library

ModLibraryManagementUtilityFabricForgeNeoForgeQuilt
137.62M downloads10k followers last week
Fabric Language Kotlin

Fabric Language Kotlin by modmuss50

Enables Fabric mods written in Kotlin to run properly in your game without adding extra blocks or items.

ModLibraryFabric
134.06M downloads12k followers 4 days ago