ToughRoleplay-forge-1.20.1-1.1.0.jar
Curse Maven Snippet
What's new

Update - Thirst & Drink Integration! (v1.1.0)
New Features & Additions
-
Automatic Drink Detection: The mod now dynamically detects when a player consumes any item with a drinking animation (
UseAnim.DRINK) from any other mod in your modpack. It automatically quenches Tough As Nails thirst without needing to add every single drink to a list! -
Hunger Restriction Bypass: Overcame a vanilla Minecraft limitation where players couldn't drink modded beverages if their hunger bar was full. You can now force-drink any beverage to stay hydrated, regardless of your current hunger level.
-
Custom Drinks Configuration: Added a new
customDrinkssection in thetoughroleplay-common.tomlconfig file. This serves as an exception list, allowing you to manually add items that don't have standard drinking animations (like juicy fruits) or to override the default thirst and hydration values of specific items.
🔧 Technical Changes & Optimizations
-
Reflection API Hook: Successfully integrated with the Tough As Nails Thirst API via Reflection. This ensures the mod connects dynamically in-game without causing hard crashes if the API structure shifts.
-
Smart Potion Filtering: Vanilla and modded potions are now explicitly ignored by the automatic detection system. This preserves Tough As Nails' native mechanics (like potions giving dirty water thirst) unless configured otherwise in the main TAN config.
-
Console Logging System: Introduced a logging system that prints a success message in the console whenever a drink successfully quenches thirst (showing the item ID, thirst points, and hydration modifier). This makes testing and verifying modpack compatibility much easier for developers.
This mod has no additional files

