Community Fluid API
A from-scratch community reimplementation of the (discontinued) NeoForge Fluid API.
介绍
TL;DR: As of Minecraft 26.1, the NeoForged team has officially retired the (Neo)Forge Fluid API… and replaced it with nothing. This mod is a community-developed, from-scratch reimplemention of that API designed to make adding fluids as painless (and collision-free) as it used to be. WIP.
If you don’t know what that means, or want some details, here’s the longer version:
Wonder why entities are walking through your fluids like they aren’t there? Why your fluids don’t glow when you tell \em to, they don't push you around, they make mobs path weird, conduits don't work in \em, etc., even though you set everything up in your FluidType class? That’s because the (Neo)Forge Fluid API has been discontinued – as of MC 26.1, Neo no longer ships with an implementation*. If you want your fluids to “just work”, you’re going need something that takes that API and makes the game actually pay attention to it. That’s where this API comes in—it’s a (more-or-less) drag-\`n-drop replacement for the old Forge implementation, written from scratch by community members for MC 26.1.2!
It does make a few changes, and extend on the old functionality:
isWaterLikeis now deprecated. Instead, a variety of more targeted methods have been patched in- You are now required to tag your fluids (the fallback behavior substitutes water, but reusing a vanilla tag causes most of the Fluid API to be ignored)
- The following methods have been patched in:
#getTag,#reducesMiningSpeed,#canSpawnAquaticMobs,#canFish,#getFishingLootTableKey,#entityCanStandOn,#shouldSplash,#createSplashParticleOnClient,#createSplashParticleOnServer,#createWakeParticleOnServer,#makesWet,#hasUnderWaterMusic,#conduitCompatible,#slowsProjectiles,#getInertia,#triggersRipTide,#preventsBurning,#affectsVehicle - For convenience, colorless, tintable versions of the vanilla splash and wake particles have been provided (by default, these are tinted the same color as your fluid and substituted for their vanilla counterparts)
Documentation is a work in progress; in the meantime, see the community-maintained documentation for the old (Neo)Forge API:
- Example Mod (Now with 26.1.2 version!)
- Wiki
*Well, _most_ of the old API is no longer implemented, and the NeoForged team plans to continue phasing out the rest.
常见问题
Community Fluid API 支持哪些 Minecraft 版本?
Community Fluid API 支持 Minecraft Java 版 26.1.2,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
Community Fluid API 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
No_Name_Provided 的其他作品
查看全部 →
NNP Fluidlogging
Lets you use (just about) any fluid for "water"logging.
No Name Provided’s Easy Farming
Not satisfied with the vanilla farming experience? Neither was I - let's overhaul the hoe tiers and add in some farming utilities.
Functional Fluids
Fluid tutorial mod - adds a few useful fluids to Minecraft. Check the repo to see how!
Potion Fruit
A small mod that let's you pour potions on fruit.. and similar foods.
评论
登录后评论和评分