XunLib

A common code library designed to ease mod dev

File Details

[Fabric 1.21] v2.1.4

  • R
  • Jun 16, 2025
  • 112.99 KB
  • 13
  • 1.21
  • Fabric

File Name

xunlib-fabric-1.21-2.1.4.jar

Supported Versions

  • 1.21

Curse Maven Snippet

Fabric

modImplementation "curse.maven:xunlib-1245630:6657735"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Xunlib v2.1.4 Changelog

Additions

  • Set Identification:
    • Added getName() method to ToolSet and ArmorSet
    • Returns base material name (e.g. ruby for "Ruby Armor")
    • Use case: Streamlines datagen for language JSON files
  • Mob Effect Utilities:
    • hasEffect(entity, effect): Checks if entity has specific effect
    • clearEffect(entity, effect): Removes specific effect from entity
    • clearEffects(entity): Removes all effects