跳到正文

TslatEffectsLib

作者:Tslat

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

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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 的其他作品

查看全部 →