ModMIT
AutoDrinking
Added an auto-drinking addon for the Sophisticated Storage backpack in TerraFirmaCraft.
24
Downloads
1
Followers
2 months ago
Updated
📦
1
Versions
📖About AutoDrinking
Provides automatic drinking functionality for Sophisticated Backpacks, integrating with TerraFirmaCraft's thirst mechanic.
Features
- Monitors player thirst value. Automatically consumes liquid from fluid containers in the backpack when the value falls below 75.
- Consumes 25mB of liquid per operation, restoring 25 thirst points.
- Supports all containers holding potable liquids, including jugs, waterskins, and buckets.
- Detection interval: every 6 seconds (120 ticks).
Usage
- Craft the Auto Drinking upgrade (recipe: 1× Upgrade Base, 1× Water Bucket, 1× Golden Carrot, 1× Glistering Melon Slice, 1× Ender Pearl).
- Install the upgrade into an upgrade slot of a Sophisticated Backpack.
- Place containers filled with fresh water in the backpack's main storage.
Technical Implementation
- Identifies potable liquids via TFC's
Drinkableinterface. - Server-side logic utilizing
IFluidHandlerfor fluid consumption and container state updates.
Dependencies
- Minecraft 1.20.1
- Forge 47+
- TerraFirmaCraft
- Sophisticated Core
- Sophisticated Backpacks