Minecraft mod by MehVahdJukaar and xelbayria
dynamic data pack and registration, villager activities, custom map marker and a lot more
Moonlight Lib is a shared utility library for mod developers, providing cross-loader helpers for building features that work across Fabric, Forge, and NeoForge. Its runtime asset tools can generate datapack and resource-pack content, including textures and models, with texture utilities for palette extraction, cropping, reshaping, and recoloring. The Block Set API detects installed wood and leaf types and lets mods register matching blocks and assets for them at runtime, while the Block Color API supports detecting and converting colors for modded blocks and items. Datapack-driven systems let authors add or remove trades for vanilla and modded villagers, including biome-specific variants, and define custom map markers with icons tied to blocks or structures; markers can also be added per player and carry data in map items. Villager AI hooks allow mods to add activities, tasks, schedules, and memory types without replacing existing villager AI. The Soft Fluid system provides data-driven virtual fluids for modded containers such as bottles, bowls, and buckets, and supports consuming drinks or stews directly from fluid tanks. Additional utilities include first- and third-person item animation and rendering hooks, custom baked models, dispenser behaviors that can coexist with other mods' registrations, and helpers for adding advancement triggers when items pass through grindstones. The library also provides a global datapack folder whose contents apply across worlds, plus a Spawn Box block for defining named, structure-specific areas with their own entity spawn pools.
Written from Modrinth , CurseForge and the GitHub README . How we write it
The newest release or beta for each Minecraft version and loader, on Modrinth and CurseForge.
Have a copy of Moonlight Lib? Check that it is the official one.
Drop it here. We compare its fingerprint with the official Moonlight Lib files. If we do not know the file, we upload it for a deep check.
Who makes Moonlight Lib, with their most downloaded other projects.
Something wrong here? Report a mistake
Something wrong here? Report a mistake
Something wrong here? Report a mistake
Goes online
No sign it sends data about you.
We find the web addresses its code can contact, but we cannot see everything a mod does while it runs. Wrong result? Tell us
A mod can send information about you over the internet, such as your player name or your login.
raw.githubusercontent.com: Purpose not known.Address built while the game runsThe code builds this address while the game runs, so it is not written in the file.: Purpose not known.Something wrong here? Report a mistake
Something wrong here? Report a mistake
Something wrong here? Report a mistake
Something wrong here? Report a mistake
Something wrong here? Report a mistake
Something wrong here? Report a mistake
Something wrong here? Report a mistake
As a library that other mods build on, it changes the game's code in 13 areas.
Also
9 more game code files changed by CodecUI.
Counted from the mod's files. Content added only in its code is not counted.
Something wrong here? Report a mistake