特性
-
移除了饮用脏水会获得饥饿或中毒效果的原机制。现在,玩家饮用脏水将获得一个全新的效果:Hydratoxin —— 它会增加玩家的口渴速率并间歇性地引发恶心感。
-
死亡后保留口渴值和饱食度(默认禁用,可通过配置启用)。
-
AppleSkin 兼容:Hydratoxin 效果会将口渴条变为紫色。
-
玩家现在可以通过蹲下并用空手右键点击天空来饮用雨水,取代了之前只需抬头即可补水的方式(雨水的补水量和纯净度均可配置)。
-
禁用了 Thirst Was Taken 中一些不必要或无效的配置,以防止其生效。
开发者内容
本模组修复了 Thirst Was Taken 代码中的一些逻辑问题,并为开发者提供了一些 API。以下是部分可用功能:
- 你现在可以通过
Item 的 DrinkItem 子类注册纯净水或含水饮品,从而同时设置物品数据和水分数据。一个简单的 Supplier<? extends Item> 示例如下:
() -> new DrinkItem(
new Item.Properties()
.food(new FoodProperties.Builder()
.nutrition(2)
.saturationMod(1.0f)
.alwaysEat()
.build()
),
new DrinkItemManager()
.thirst(4)
.quenched(2)
.container(Items.STICK)
)
你可以使用 DrinkItemManager 设置物品的补水量、持续时间、动画以及使用后返还的物品。更多详情请参阅 Wiki 或浏览源代码。
未来计划
-
添加“口渴”(Thirsty)效果,在高温生物群系中导致更快的口渴速度,并与 Cold Sweat 集成。
-
KubeJS 兼容,使整合包作者能更轻松地创建饮品。
-
为盛水容器添加兼容性和自定义支持。
-
修复 Thirst Was Taken 中的更多 bug,并为开发者提供更多 API。
-
逐步完善模组的 Wiki。
Features
-
Removed the original mechanism where drinking dirty water grants hunger or poison effects.Now, players drinking dirty water will receive a brand new effect: Hydratoxin — which increases the player's thirst rate and intermittently causes nausea.
-
Retain thirst and food levels after death (disabled by default, can be enabled via configuration).
-
AppleSkin compatibility: the Hydratoxin effect will turn the thirst bar into purple.
-
Player can now drink rainwater by crouching and right-clicking the sky with an empty hand, instead of simply looking up to hydrate as before (both the amount of water and purity from rainwater are configurable).
-
Disabled some unnecessary or useless configurations from Thirst Was Taken to prevent them from taking effect.
Developer Content
This mod fixes some logical issues in the Thirst Was Taken code and provides some API for developers. Here are some available features:
- You can now register pure drinks or food drinks through the
DrinkItem subclass of Item, allowing simultaneous setting of item data and water data. A simple Supplier<? extends Item> example:
() -> new DrinkItem(
new Item.Properties()
.food(new FoodProperties.Builder()
.nutrition(2)
.saturationMod(1.0f)
.alwaysEat()
.build()
),
new DrinkItemManager()
.thirst(4)
.quenched(2)
.container(Items.STICK)
)
You can use DrinkItemManager to set the item's hydration amount, use duration, animation, and items returned after use. For more details, please refer to the Wiki or browse the source code.
-
Modified classes like ThirstHelper and WaterPurity via Mixin to make their code logic more aligned with practical development needs and expected results. Common methods can be called through the ThirstAPI class.
-
Fixed some meaningless code that could lead to bugs.
Future Plans
-
Add a "Thirsty" effect, causing faster thirst in high-temperature biomes, with integration for Cold Sweat.
-
KubeJS compatibility, making it easier for modpack authors to create drinks.
-
Add compatibility and customization for water-holding containers.
-
Fix more bugs from Thirst Was Taken and provide more API for developers.
-
Gradually improve the mod's Wiki.
评论 0
登录后参与评分
还没有评论,来抢沙发吧