SimpleDifficulty Reforged

Quick rating

Community listing page, reviews here may not be monitored by the author.

SimpleDifficulty Reforged

No reviews yet

A fork of SimpleDifficulty for Underdog with bug fixes, performance improvements, and expanded compatibility

Mod Loaders
Minecraft

About

Description

SimpleDifficulty Reforged

An improved SimpleDifficulty For Underdog fork


Overview

SimpleDifficulty brings a temperature and thirst system to Minecraft 1.12.2, based on the basic mechanics of survival mods like Tough As Nails. This maintained fork focuses on:

  • Bug fixes and stability improvements
  • Expanded mod compatibility for large modpacks
  • Technical optimizations for smooth gameplay
  • Code modernization and cleanup

Note on Project Origin:

This mod is the result of four months of continuous and dedicated development (from May to September). Since the optimizations and code refactoring are so extensive (more than 9,000 lines modified), I’ve decided to release this updated version separately so you can immediately benefit from the memory leak fixes and performance improvements. If you’d like to see a complete technical breakdown of all the changes, feel free to check out the original pull request


Features

Core Mechanics

  • Thirst System: Requires players to manage hydration levels to avoid negative status effects.
  • Temperature Dynamics: Environmental biomes, blocks, and armor affect the player's temperature.
    • Hypothermia & Hyperthermia: Now reduce max health and apply negative potion effects instead of dealing direct damage. (Note: Spice of Life's health modifier is ignored in the calculation).
  • Water Variants:
    • Regular Water: Standard hydration source.
    • Saltwater: Increases dehydration rates if consumed.
    • Purified / Spring Water: Safe, clean hydration with optimal saturation values. Vanilla water is now treated as spring water. (Note: The water itself must be generated using another mod. Cave Generator is recommended).

Refined Water & Item Systems

  • Canteen Overhaul: Corrected durability logic and thirst replenishment scaling. Purified water consumption accurately updates items and sources.
  • Bottle Interactions: Empty bottles dynamically detect specific environmental fluid types (Salt, Normal, or Spring water) rather than defaulting exclusively to vanilla water blocks.
  • Consistent Smelting: Corrected cooking logic to prevent special fluid containers (like spring water bottles) from downgrading back to standard variants during processing.
  • Recipe Sanitization: Removed redundant or broken shapeless recipes for canteens and filters to prevent crafting conflicts.
  • Visual Adjustments: Fluid color rendering adapts organically based on biome locations, featuring customized depth fog settings.
    • Enhanced Fog: Improved water fog visuals. The fog color is brighter now and changes depending on the biome.
    • Customization: Added a new config option to make waters darker or brighter.
  • Ice Mechanics: Added regular and salt water ice! 🧊 Generates natural ice structures in applicable environments. Includes a world generator for it, and implements melting, freezing, and Serene Seasons support. Fully compatible with freeze/melt block states.

Technical Optimizations

Designed specifically to reduce server overhead and client-side stuttering in large modpacks.

Memory Management

Leak Resolution

  • Identified and closed memory leaks related to positional world tracking
  • Fixed capability data not being properly released on player disconnect
  • Optimized event handler registration to prevent duplicate listeners

Data Footprint

  • Streamlined internal telemetry storage in the core temperature subsystem
  • Reduced global memory usage by ~40% compared to original fork
  • Implemented lazy loading for non-critical data structures

Processing Efficiency

Execution Gates

  • Implemented early-exit logic across major processing loops
  • Reduced unnecessary tick evaluations when tracking systems are inactive
  • Added caching for frequently accessed calculations

Subsystem Tuning

  • Optimized environmental water-block scanning algorithms
  • Improved canteen consumption action performance
  • Streamlined tick-by-tick thirst calculations
  • Added salt/freshwater mixing logic with an optimized fill algorithm that doesn't affect performance.
  • Removed particle effects from fluids and slightly improved performance for fluid rendering.

Garbage Collection

  • Lowered object instantiation rates during standard gameplay loops
  • Implemented object pooling for frequently created/destroyed objects
  • Reduced overhead on Java Garbage Collector by ~60%

Mod Integrations

Fully Supported Mods

The following mods have dedicated integration code and full compatibility:

  • Animania
  • Armor Underwear
  • Baubles
  • Biomes O' Plenty (Added compatibility for aquatic plants)
  • Dynamic Trees (Added compatibility for fluid blocks)
  • DynamicSurroundings
  • EnhancedVisuals
  • First Aid
  • Harvest Festival Legacy
  • Inspirations
  • Lycanites Mobs
  • Ore Excavation
  • Pam's HarvestCraft
  • Potion Core
  • Pyrotech
  • Realistic Torches
  • Rustic
  • Serene Seasons
  • Streams
  • SurvivalTools
  • Simple Camp Fire
  • Traveler's Backpacks
  • Tinkers' Construct
  • The Betweenlands
  • Weather2 Remastered

Additional Compatibility

These mods work without dedicated integration but have been tested:

  • Cave Generator (Recommended for generating spring water)
  • Fluidlogged API
  • Greenery (Added compatibility for aquatic plants)

Want compatibility with a specific mod? Open an issue and I'll try to make it work!


License & Credits

License

This project is distributed under the MIT License

Authors & Contributors

  • Charles445: Created the original version
  • juraj-hrivnak: Created the Underdog fork
  • Onyx-i7: Maintained, updated to RetroFuturaGradle, eliminated memory leaks, and lead author of the Optimization Edition

Support