TslatEffectsLib
A small library for making MobEffects easier to use, and more dynamic
Quick challenge
How far can you run before the mobs catch you?
Rotate your phone
Dino Mine is ready when your screen is landscape.
Minecraft check
Confirm your run
Complete the quick check to get your code.
Your code
Expires in 5 hours
TslatEffectsLib
A small library for making MobEffects easier to use, and more dynamic
If you have issues or want to contribute, please jump on the GitHub page and make your voice heard
What is this?
The existing MobEffect class in Minecraft is very limited and has only very specific and basic functionality. You can't really do a whole lot with it without needing extra events, mixins, or any combination or the two. This lib does the work for you, adding several new hooks and features allowing you to make much better use of the effect systemFeatures
- Instance-sensitive tick method
- Instance-sensitive display name
- Can-apply checks
- Mutually-exclusive effects check
- On-application callback
- On-reapplication callback
- On-removal callback
- Instance-sensitive shouldTick method
- Pre, during, and post attack method callbacks for both incoming and outgoing attacks
- Client-side tick callback
- Custom screen overlay render callback
- Helper classes for building effects and potions
How do I use it?
Just about everything you'll need to know is documented here: https://github.com/Tslat/TslatEffectsLib/wikiIf you have issues or want to contribute, please jump on the GitHub page and make your voice heard