XunLib

A common code library designed to ease mod dev

File Details

[Forge 1.21] v1.5

  • R
  • Apr 25, 2025
  • 94.88 KB
  • 7
  • 1.21.1+1
  • Forge

File Name

XunLib-forge-1.21-1.5.jar

Supported Versions

  • 1.21.1
  • 1.21

Curse Maven Snippet

Forge

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

Learn more about Curse Maven

Xunlib v1.5 Changelog

Features

  • New Effect Stacking Strategy: Added Prevent Stacking option to the effect stacking strategy enum.
  • Mob Effect Instance Builder: Create and customize mob effect instances with a fluent builder API.
  • Tickable Block Entities:
    • Added ITickableBlockEntity interface for dynamic block entity updates.
    • Introduced Ticking Entity Block base class for simplified ticking logic.
  • Tool and Armor Sets:
    • ToolSet builder for defining tool collections (sword, axe, pickaxe, hoe, shovel).
    • ArmorSet builder for armor sets (helmet, chestplate, leggings, boots).

Breaking Changes

  • Package Reorganizations:
    • Moved @PersistentNbt annotation from .nbt to .annotations package.
    • Relocated all exceptions to the new .exceptions package.
  • Renamed Classes:
    • InventorySectionPlayerInventorySection.
    • EffectUtilsMobEffectUtils (aligns with utility focus).
  • Removed Fuzzy Config Options:
    • Removed ALL filter mode from fuzzy item matching configurations.

Upgrade Notes:

  • Update imports for @PersistentNbt, exceptions, and renamed classes (PlayerInventorySection, MobEffectUtils).
  • Replace ALL filter mode in fuzzy configs with alternative strategies.