介绍
This project has been archived due to Fabric’s new EntityFluidInteractionRegistry and FluidBehavior api.
FluidLib
A library made to de-hardcode the fluid logic in fabric.
Features
- Basic fluid class to abstract out some stuff
- Custom push values using the TagManager
- Custom Burning Fluid to set the player on fire
- Swimmable fluids using an interface and a tag
- Bottleable fluids with an interface
- Boatable fluids using a tag
- Fluids that stop fall damage with a tag
- Ability to make custom potion mixes with an event
- Drownable fluids(tag)
- Fluids that can be used to hydrate farmland(tag)
- Runtime registering and deregistering of pushing tags, swimming tags, burning tags(1.21.1), and farmable tags
How To Add
To add fluidlib to your project, first add mavenCentral() and maven { url 'https://jitpack.io/' } in your repositories block.
Then, add it in your dependencies block like this:
1.21.11-:
modImplementation("com.infinitychances:fluidlib:VERSION+MINECRAFT_VERSION")
26.1+:
implementation("com.infinitychances:fluidlib:VERSION+MINECRAFT_VERSION")
Wiki/Docs
Wiki and docs are in progress, so until it is done any questions can be asked in my discord.
常见问题
FluidLib 支持哪些 Minecraft 版本?
FluidLib 支持 Minecraft Java 版 1.21.1–26.1.2,共 5 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
FluidLib 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
评论
登录后评论和评分