Moonlight Lib

Moonlight Lib - Minecraft Mod

Moonlight Lib

Moonlight Lib is an extended library with a wide variety of utilities for modders. It has a concentration on dynamic data pack and resource pack creation, villager AI manipulation, custom map markers, and custom animations, among many others. The robustness in the features of this library makes it way easier to create advanced functionality in Minecraft mods.

Key Features:

  • Dynamic Resource Pack Utilities:
    • Enables the creation of dynamic runtime resource packs and data packs.
    • Allows re-spriting and retexturing of existing textures, especially useful for adding new wood-based blocks.
  • Dynamic Block Set Registration:
    • Allows mods to specify block sets (e.g., wood types).
    • Enables mods to register dependent blocks by scanning existing registered blocks.
    • Provides dynamic registration for complex block sets, making it easier to manage wood types and other related blocks.
  • Custom Map Markers:
    • Provides a system to add and manage custom map markers and decorations.
    • Offers data storage inside map data, such as tooltips or item information.
    • Data-driven implementation enables easy registration of new markers using data packs.
  • Dynamic Villager AI:
    • Easily add and modify villager tasks and schedules without overriding the entire AI system.
    • Supports adding custom memory types for more complex interactions.
  • Custom First and Third-Person Animations:
    • Allows modders to implement custom animations for items in both first and third-person perspectives (e.g., crossbows).
    • Offers a simple interface for controlling item animations, including rendering items directly in the item class.
  • Grindstone Achievement Triggers:
    • Adds a custom trigger for advancements when items are passed through a grindstone.
    • Useful for modders creating custom advancement conditions tied to grindstone interactions.
  • Soft Fluid System:
    • A custom virtual fluid system that integrates with Forge's fluid system.
    • Supports modded containers like bottles, bowls, and buckets, as well as drinks and stews that can be consumed directly.
    • Fluid system automatically generates fluids for already registered Forge fluids and allows easy overrides and additions.
    • Fluids are virtual, existing only in modded containers designed for them.

Compatibility

Minecraft: Java Edition

  • 1.21–1.21.1
  • 1.20.4
  • 1.20–1.20.1
  • 1.19.x
  • 1.18.x
  • 1.16.5

Platforms

  • Fabric
  • Forge
  • NeoForge

Supported environments

  • Client and server