
TslatEffectsLib
A small library for making MobEffects easier to use, and more dynamic
About this Mod
A small library for making MobEffects easier to use, and more dynamic
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 system
Features
- 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/wiki
If you have issues or want to contribute, please jump on the GitHub page and make your voice heard
Available Versions
How to Install TslatEffectsLib on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.5).
Install Mod
Open the mod browser in the dashboard and search for "TslatEffectsLib". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.5, 1.21.3, 1.21.1 (+12 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
TslatEffectsLib server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.5). You can switch loaders with one click in the panel.
Is TslatEffectsLib compatible with fabric and forge and neoforge?
TslatEffectsLib officially supports fabric, forge, neoforge for Minecraft 1.21.5, 1.21.3, 1.21.1. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with TslatEffectsLib – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if TslatEffectsLib consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install TslatEffectsLib with just one click on your server.