Thirst Was Tweaked 图标

Thirst Was Tweaked

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/thirst-was-tweaked
资源信息

Minecraft 版本: 1.20.1

平台: forge

标签: game-mechanics library utility

资源介绍

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.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Levont Pack

价格:0 墨喵币
下载量:0

查看详情
Tuff Bricks Revert

价格:0 墨喵币
下载量:0

查看详情
Simple Gunpowder

价格:0 墨喵币
下载量:0

查看详情
Vanilla Shutters

价格:0 墨喵币
下载量:0

查看详情