AutoDrinking
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

  1. Craft the Auto Drinking upgrade (recipe: 1× Upgrade Base, 1× Water Bucket, 1× Golden Carrot, 1× Glistering Melon Slice, 1× Ender Pearl).
  2. Install the upgrade into an upgrade slot of a Sophisticated Backpack.
  3. Place containers filled with fresh water in the backpack's main storage.

Technical Implementation

  • Identifies potable liquids via TFC's Drinkable interface.
  • Server-side logic utilizing IFluidHandler for fluid consumption and container state updates.

Dependencies

  • Minecraft 1.20.1
  • Forge 47+
  • TerraFirmaCraft
  • Sophisticated Core
  • Sophisticated Backpacks