
TslatEffectsLib
This library significantly expands the capabilities of working with MobEffects in Minecraft, making their usage more flexible and dynamic.
Why is this library needed?
The standard MobEffect class in Minecraft has very limited functionality, which significantly restricts mod developers. To implement even simple additional features, one has to resort to events, mixins, or their combinations. TslatEffectsLib solves this problem by providing ready-made tools for extending the effect system.
Main Features
- Individual tick processing - each effect instance can have its own update logic
- Dynamic effect names - display names can change depending on context
- Application possibility checks - control over when and to whom effects can be applied
- Mutually exclusive effects - automatic checking of conflicting effects
- Application events - callbacks when effects are initially applied
- Reapplication events - handling situations when effects are reapplied
- Removal events - executing actions when effects are removed
- Individual tick necessity checks - control over when effects should update
- Attack handling - events before, during, and after attacks for both incoming and outgoing attacks
- Client-side ticks - updates working on the client side
- Custom screen overlays - ability to render custom overlays
- Helper classes - convenient tools for creating effects and potions
How to use?
All necessary documentation for using the library is available on the project's GitHub Wiki page.
If you encounter issues or want to contribute to the project's development, visit the GitHub page and share your ideas.