介绍
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
常见问题
TslatEffectsLib 支持哪些 Minecraft 版本?
TslatEffectsLib 支持 Minecraft Java 版 1.19–1.21.5,共 15 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
TslatEffectsLib 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
Tslat 的其他作品
查看全部 →Geckolib
一个用于实体、方块、物品、盔甲等的3D动画前置库!
TslatEntityStatus
查看实体的生命值和其他状态。让打怪重新变得有趣!
SmartBrainLib
让 Minecraft 的大脑系统更易于使用和管理的前置库
Advent Of Ascension
An all-in-one RPG mod with new skills, weapons, armour, mobs, bosses, dimensions, and more!
评论
登录后评论和评分