跳到正文

UnionLib (Potions & Fluids)

作者:Stereowalker

This allows mods to communicate what potion maps to what fluid

收藏

介绍

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

Some Info

    This mod is not a requirement if you’re using UnionLib. If you have that mod installed, just ignore this one as that one has this bundled together with it

 

Description

    This is a very simple mod that allows the mod to fire the events provided by it to get what potions map to what fluids and vice versa. The point of this mod is to make it significantly easier for mods with custom fluids for their potions to communicate such to mod authors that need the information.
    The mod adds 2 events:

1) a FluidToPotionEvent that communicates which fluid corresponds to what potion.

2) a PotionToFluidEvent that communicates which potion corresponds to what fluid.

Changes To Vanilla

    From a gameplay point of view, the changes from this mod are negligible, but from a coding standpoint, the mod uses the FluidToPotionEvent event when the player collects water from a source water block with a glass bottle, setting the potion allows you to change what potion is resulted from that action, and as long as the potion results in the event are not null, any fluid can be collected from the bottle. By default, the Water potion is mapped to the Water fluid.

 

Source

    Unfortunately, I will not be attaching the source for this mod to this project as the files for this mod are a part of the main UnionLib mod. I simply made it a separate mod to allow other modders using this not to have to worry about the main mod. If you aren’t perturbed by that fact, go ahead and use this mod as you like. Just make sure you’re downloading it from CurseForge and not one of those clone sites that like to copy mods from here.

常见问题

UnionLib (Potions & Fluids) 支持哪些 Minecraft 版本?

UnionLib (Potions & Fluids) 支持 Minecraft Java 版 1.18.2–1.19.3,共 2 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

UnionLib (Potions & Fluids) 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Stereowalker 的其他作品

查看全部 →