Intro to Temperature - Momo-Softworks/Cold-Sweat GitHub Wiki

About Temperature

Temperature is the main mechanic of Cold Sweat. Like hunger and health, it is a resource that must be monitored and properly managed. When the player's core temperature reaches a critical point, either too low or too high, the player will begin to take damage and eventually die.

Most things that affect the player's temperature are part of the world itself. These things are:

  • The temperature of biomes bear the player
  • The time of day
  • Nearby blocks, such as lava or ice

Effects of Temperature

Aside from taking damage, there are a number of unique negative effects given to the player as temperature reaches the threshold, depending on whether the player is too hot or too cold.

As the player overheats, they will be affected by:

  • Blurred vision
  • Lower view distance (fog closing in, similar to blindness)
  • Randomly swaying camera

As the player freezes, they will be affected by:

  • Hearts freezing over, reducing max health regeneration
  • Slower movement & mining speed
  • Reduced attack knockback

Monitoring Temperature

Ambient Temperature

The current world temperature is displayed to the right of the hotbar. If the player has a thermometer, a more accurate temperature will be displayed in degrees Fahrenheit/Celsius.

When the local world temperature exceeds 100 °F or 38 °C, the player's body temperature will begin to increase. Hot biomes, like Savannas and Deserts, can exceed this limit. Lava is also extremely hot, and even a small amount of it can cause the player to start overheating.

Likewise, when the local world temperature is below 50 °F or 9 °C, the player's body temperature will begin to decrease. Cold biomes, like Ice Plains or Tundras, often exceed this limit.

The time of day also affects the world's temperature. It is hottest at noon, and coldest at night. Dimensions with no time, like the Nether and End, do not have this mechanic.

The humidity of a biome determines how drastic this swing from "high" and "low" will be. In humid biomes, like the Swamp, the high and low temperatures only have a delta of about 10 °F or 6 °C. Arid biomes, however, like the Desert, have a much more drastic delta of up to 80 °F or 44 °C.

Body Temperature

The player's body temperature is displayed above the hotbar, represented by an icon that changes color depending on the player's condition, along with a readout that displays the player's temperature. When the player's temperature reaches 100 in either cold or heat, the icon turns into a skeleton head and the player begins taking damage.

If the player's body temperature stays at 100 for an extended period of time, it may take longer for it to begin returning to normal. This is because of a buffer that is reached when the player's temperature exceeds 100, represented by a colored outline around the temperature readout. Technically speaking, the player's temperature can reach up to 150, displayed as the number "100" with a white outline.