TempExpansion

A comprehensive Tough As Nails addon for 1.12.2 adding exact float temperature math, Smart Armor stabilization, Galacticraft suit support, active machine heat, inventory/food effects, and deep modpack customization.

Temperature Expansion is a comprehensive thermoregulation overhaul and expansion for Tough As Nails on Minecraft 1.12.2, designed specifically for tech, space, and hardcore modpacks. The mod removes the mathematical limitations of base Tough As Nails by introducing fractional temperature precision, adding a "Smart Armor" stabilization system, integrating with Galacticraft space suits, and accounting for heat emitted by active industrial machinery, mining depth, inventory items, food, wetness, nearby entities, and custom biomes.

 

Dependencies & Compatibility

Required Dependencies: Tough As Nails (toughasnails) and MixinBooter (mixinbooter)

TempExpansion.java

 

Mod Compatibility: Built from the ground up to enable seamless integration with a wide variety of industrial, tech, and space mods—capabilities that the original Tough As Nails did not support out of the box.

 

Core Tough As Nails Engine Improvements

1. Exact Float Temperature Precision

In standard Tough As Nails, temperature values are rounded to whole integers (int) after every single modifier, causing fractional bonuses (such as +0.25 or -0.5 from individual armor pieces) to be lost or stacked inaccurately. Temperature Expansion injects the IExactTemperature interface directly into the Temperature class via Mixins, preserving exact floating-point (float) precision across the entire calculation pipeline—from environment modifiers (TemperatureHelper) and player modifiers (TemperatureHandler) to external climatisation. Final rounding and scale clamping occur only at the very end when determining the player's target temperature.

 

2. "Smart Armor" System & Galacticraft Support

The mod completely overwrites ArmorModifier logic, turning protective gear into an intelligent thermal stabilizer (enableSmartArmor = true):

 

Cold Protection Without Overheating: When the ambient temperature drops below the neutral equilibrium point (14.0), warming armor raises your temperature up to the comfortable threshold without exceeding 14.0, preventing heatstroke when wearing warm gear in mild weather.

 

Heat Protection Without Freezing: When the temperature rises above 14.0, cooling armor lowers your temperature down to a minimum of 14.0, protecting against hyperthermia without freezing the player.

 

Classic Mode: Setting enableSmartArmor to false restores the strict additive behavior of vanilla Tough As Nails (startingTemp + totalWarming - totalCooling).

 

Galacticraft Inventory Slots: Using reflection, the mod reads the extended inventory slots of GCPlayerStats (slots 6, 7, 8, and 9), allowing Galacticraft thermal armor and space suits to function properly alongside Tough As Nails' COOLING (-1.0) and WARMING (+1.0) enchantments.

 

Gameplay Mechanics & 7 Temperature Modifiers

The mod registers seven independent environment and player temperature modifiers into the Tough As Nails API, each visible in the temperature debugger overlay:

 

1. Active Industrial Machinery Heat (tempexp_machines)

This modifier scans a cubic area around the player (default radius of 3 blocks, or a 7×7×7 volume) and inspects blocks belonging to mods listed in modWhitelist:

 

TPS Optimization: Only blocks from whitelisted mod IDs are evaluated, keeping server performance impact minimal.

 

NBT Activity Detection: The scanner inspects each block's TileEntity (including nested MetaTileEntity compound tags used by GregTech and multiblock machines) for active numeric NBT keys (isActive, Active, isWorking, FuelBurnTimeLeft, BurnTime, lit, Lit, progress, active) greater than zero—idle or unpowered machines emit zero heat.

 

Customizable Heat Output: Every working machine adds a default heat bonus (heatPerMachine, default +2) or a custom per-machine value defined in specificMachineTemps (such as blast furnaces, boilers, turbines, and nuclear reactors), capped at maxHeatCap (default +40).

 

2. Inventory Item Temperatures (tempexp_inventory)

Scans the player's main inventory (mainInventory) and sums the thermal impact of hot and cold items multiplied by their stack size (stack.getCount()). The total effect is capped by inventoryCap (default ±3) so carrying full stacks of ice or magma won't cause instant death while still requiring smart inventory management. Pre-configured defaults include minecraft:lava_bucket (+2), minecraft:magma (+1), minecraft:blaze_rod (+1), minecraft:ice (-1), and minecraft:packed_ice (-2).

 

3. Wetness & Dynamic Drying System (tempexp_wetness)

Standing in rain or water (player.isWet()) starts a server-side wetness timer lasting wetnessDuration ticks (default 600 ticks = 30 seconds), applying a cooling penalty (wetnessPenalty, default -1). Standing within a 3×3×3 area of fire or lava (Material.FIRE, Material.LAVA) accelerates drying by dryingMultiplier (default 4x), accompanied by WATER_DROP particles.

4. Food & Drink Effects (FoodHandler)

Consuming any item defined in foodTemperatures applies a temporary Tough As Nails temperature modifier lasting defaultDuration ticks (default 1200 ticks = 60 seconds). Default entries include Rabbit Stew (minecraft:rabbit_stew, +2), Mushroom Stew (minecraft:mushroom_stew, +1), and Baked Potato (minecraft:baked_potato, +1) for warming, alongside Melon (minecraft:melon, -1) for cooling.

 

5. Nearby Entity Heat (tempexp_entity)

Evaluates all living entities within a 2.5-block radius listed in entityTemperatures, bounded by maxEntityBonus (±2). Huddling near cows, sheep, or pigs (+1 each) helps survive freezing nights, Blazes radiate intense heat (+2), and Snow Golems chill the air around them (-2).

 

6. Geothermal Depth Heat (tempexp_depth)

Descending underground below startY (default Y = 25) linearly increases ambient temperature according to ratio = 1.0 - (max(0, Y) / startY), reaching maxDepthHeat (+3) at bedrock (Y = 0).

 

7. Custom Biome Temperatures (tempexp_custombiome)

Lets modpack authors assign direct, flat temperature offsets to any vanilla or modded biome via its registry ID without tampering with Tough As Nails' internal temperature curves.

 

Interface, Tooltips & HUD

Informative Item Tooltips (TooltipHandler): Hovering over any configured armor piece or inventory item displays its exact warming or cooling modifier formatted to two decimal places with color coding (§c for warming armor, §b for cooling armor, §6 for warming inventory items, and §3 for cooling inventory items).

HUD Rendering Fix & Repositioning (MixinTemperatureOverlay): Resolves HUD rendering conflicts with other mods by moving temperature gauge rendering from the EXPERIENCE overlay phase to the ALL phase while properly restoring Gui.ICONS texture bindings. Under the gui config category, you can enable enableCustomPos and adjust offsetX and offsetY (default -25) to position the thermometer anywhere on screen.

Full Configuration Reference (config/tempexpansion.cfg)

Armor (armor)

Parameter Default Description
enableSmartArmor true

If true, armor acts as a thermal stabilizer toward 14.0 without causing overheating or freezing. 

 

Hunger (hunger)

Parameter Default Range Description
enableHungerEffect true true / false

Enables cold vulnerability when food levels drop too low. 

 

hungerThreshold 6 1 – 20

Hunger level (6 = 3 drumsticks) below which the penalty applies. 

 

hungerPenalty 1 0 – 10

Temperature reduction applied while starving. 

 

Inventory (inventory)

Parameter Default Range Description
enableInventoryEffect true true / false

Enables temperature shifts from hot/cold items carried in the inventory. 

 

inventoryCap 3 1 – 10

Maximum combined positive or negative temperature effect from inventory items. 

 

itemTemperatures List (5 items) modid:item|temp

List of items and their per-item temperature modifier. 

 

Wetness & Drying (wetness)

Parameter Default Range Description
enableWetness true true / false

Enables soaking in rain/water and gradual drying. 

 

wetnessDuration 600 1+

Base drying time in ticks (20 ticks = 1 second). 

 

wetnessPenalty -1 Any integer

Temperature penalty while the player is wet. 

 

dryingMultiplier 4 1 – 10

Drying speed multiplier when standing near fire or lava. 

 

showParticles true true / false

Spawns dripping water particles while wet. 

 

Entities (entity)

Parameter Default Description
enableEntityEffect true

Enables heat exchange with nearby mobs within a 2.5-block radius. 

 

maxEntityBonus 2

Maximum combined temperature bonus or penalty from surrounding entities. 

 

entityTemperatures List (5 entities)

Format modid:entity|temp defining per-entity thermal output. 

 

Food & Drinks (food)

Parameter Default Description
enableFoodEffect true

Enables temporary temperature modifiers after eating or drinking. 

 

defaultDuration 1200

Duration of food temperature modifiers in ticks (1200 ticks = 1 minute). 

 

foodTemperatures List (4 foods)

Format modid:food|temp defining consumable temperature effects. 

 

Depth (depth)

Parameter Default Description
enableDepthEffect true

Enables ambient heating deep underground. 

 

startY 25

Y-level below which geothermal heating begins. 

 

maxDepthHeat 3

Maximum heat bonus reached at Y = 0. 

 

Biomes (biome)

Parameter Default Description
enableCustomBiomes true

Enables custom per-biome temperature offsets. 

 

biomeTemperatures List (12 biomes)

Format modid:biome|temp overriding biome temperatures. 

 

Industrial Machines (machines)

Parameter Default Range Description
enableMachineScanner true true / false

Enables NBT scanning of active nearby machinery. 

 

scanRadius 3 1 – 10

Cubic scan radius around the player (3 = 7×7×7 area). 

 

heatPerMachine 2 0+

Default heat added by each active whitelisted machine not listed in specificMachineTemps. 

 

maxHeatCap 40 0+

Maximum total heat generated by nearby machinery. 

 

modWhitelist 15 mods List of Mod IDs

Mod namespaces scanned for active tile entities. 

 

activeTags 9 NBT keys List of keys

Numeric NBT tags indicating an active machine when > 0. 

 

specificMachineTemps 24 machines id|temp

Custom heat values for specific reactors, furnaces, and generators. 

 

HUD Position (gui)

Parameter Default Description
enableCustomPos false

Enables custom screen positioning for the temperature gauge. 

 

offsetX 0

Horizontal HUD offset in pixels. 

 

offsetY -25

Vertical HUD offset in pixels. 

 

Modpack Author Tools

/tempexp_dump Command

To streamline modpack balancing, the mod provides the /tempexp_dump operator command (permission level 2), which exports every registered biome in the game to config/tempexpansion_biomes.csv (semicolon-delimited ;). The exported table includes Biome ID, Vanilla Temperature, and the calculated TAN Temperature Modifier, making it easy to identify extreme modded biomes and configure them in biomeTemperatures.

 

Custom Armor Configuration 

Supports an extended JSON configuration at config/toughasnails/armor_temp_modifiers.json, allowing you to group armor pieces (both modid:item and metadata-specific modid:item:meta) and assign fractional modifiers:

[
  {
    "modifier": 1.25,
    "names": [
      "galacticraftcore:thermal_helm:0",
      "galacticraftcore:thermal_chestplate:0",
      "galacticraftcore:thermal_leggings:0",
      "galacticraftcore:thermal_boots:0"
    ]
  },
  {
    "modifier": -1.5,
    "names": [
      "extraplanets:tier3_space_suit_helmet",
      "extraplanets:tier3_space_suit_chest",
      "extraplanets:tier3_space_suit_legings",
      "extraplanets:tier3_space_suit_boots"
    ]
  }
]

Every configured value is automatically applied to both the MixinArmorModifier stabilization calculation and item tooltips in inventories and JEI.

TempExpansion Team

profile avatar
  • 3
    Followers
  • 9
    Projects
  • 1.9K
    Downloads

More from tifus_dgView all

  • PackTools project image

    PackTools

    A utility mod for Minecraft (Forge) modpack creators that adds CraftTweaker-ready data dumps, loot and ore generation testers, recipe conflict detection, and a customizable starter kit system.

    • 4
    • November 20, 2026
  • Smart Evil Mobs project image

    Smart Evil Mobs

    Are you tired of outsmarting mobs with simple glass mazes, 2-block jumps, or dirt pillars? Smart Evil Mobs completely overhauls the vanilla monster AI, turning them into relentless, tactical hunters that actively counter standard player defenses.

    • 89
    • September 14, 2026
  • FluidOredict project image

    FluidOredict

    Say goodbye to incompatible liquids—unify, merge, and share any fluid across all your mods with the ultimate customizable Fluid Ore Dictionary!

    • 1.3K
    • September 12, 2026
  • Drop Nerf project image

    Drop Nerf

    Smart loot balancer and mob farm protection. Flexible drop chance settings, AFK farm blocking, spawner penalties, and a chunk fatigue system to save your server's economy.

    • 17
    • August 30, 2026
  • PackTools project image

    PackTools

    A utility mod for Minecraft (Forge) modpack creators that adds CraftTweaker-ready data dumps, loot and ore generation testers, recipe conflict detection, and a customizable starter kit system.

    • 4
    • November 20, 2026
  • Smart Evil Mobs project image

    Smart Evil Mobs

    Are you tired of outsmarting mobs with simple glass mazes, 2-block jumps, or dirt pillars? Smart Evil Mobs completely overhauls the vanilla monster AI, turning them into relentless, tactical hunters that actively counter standard player defenses.

    • 89
    • September 14, 2026
  • FluidOredict project image

    FluidOredict

    Say goodbye to incompatible liquids—unify, merge, and share any fluid across all your mods with the ultimate customizable Fluid Ore Dictionary!

    • 1.3K
    • September 12, 2026
  • Drop Nerf project image

    Drop Nerf

    Smart loot balancer and mob farm protection. Flexible drop chance settings, AFK farm blocking, spawner penalties, and a chunk fatigue system to save your server's economy.

    • 17
    • August 30, 2026