Manage Custom Attributes Without Performance Loss
Efficient Attribute Management
EventsLib Mod helps dependent mods track custom player attributes and temporary powers tied to potion effects while minimizing performance impact. This is especially important when multiple mods add custom effects simultaneously.
How Attribute Management Works
Instead of constantly checking timers, dependent mods register listeners with EventsLib that activate only when relevant. The system:
- Monitors effect duration changes efficiently
- Triggers attribute updates only when necessary
- Cleans up attributes automatically when effects expire
- Prevents duplicate listeners or orphaned data
- Reduces tick-by-tick overhead
Benefits for Gameplay
With EventsLib handling the heavy lifting, mods can safely add custom powers—like temporary flight, enhanced crafting speed, or attribute multipliers—without causing lag. Multiple mods can coexist without competing for resources or creating conflicts.
You won't notice EventsLib working, but you'll benefit from smoother performance when using several mods that add custom effect-based abilities. The library ensures that temporary powers activate cleanly and disappear completely when their effects end, keeping your world running smoothly.