Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
TslatEffectsLib

TslatEffectsLib

A small library for making MobEffects easier to use, and more dynamic

7,281
10
Game Mechanics
Library
Utility
AboutChangelogVersions

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

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.21.x
1.20.4–1.20.6
1.20–1.20.2
1.19.x

Platforms

Fabric
Forge
NeoForge

Supported environments

Server-side

Links

Report issues View source Join Discord server

Creators

Tslat
Tslat Owner

Details

Licensed MIT
Published 2 years ago
Updated 3 weeks ago

Modrinth is open source.

main@9fd0f68

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.