Attributes
A list of Cold Sweat's custom attributes, with descriptions
Last updated
A list of Cold Sweat's custom attributes, with descriptions
Last updated
Cold Sweat adds several , which can be manipulated via commands and datapacks to modify many aspects of an entity's temperature.
These attributes map directly to the entity's , modifying or overriding their values.
world_temperature
Controls the entity's world temperature.
This attribute defaults to NaN
.
Setting the attribute's base value to anything else will lock the entity's world temperature to a static value.
Attribute modifiers can modify the entity's corresponding WORLD
trait, even if the attribute base value is unset.
base_temperature
Controls the entity's base body temperature, (AKA an offset to the entity's body temperature).
This attribute defaults to NaN
.
Setting the attribute's base value to anything else will apply a static offset to the entity's body temperature, overriding any applied TempModifiers.
Attribute modifiers can modify the entity's corresponding BASE
trait, even if the attribute base value is unset.
burning_point
Controls the temperature at which the entity begins to overheat, in MC units.
This attribute defaults to NaN
.
Setting the attribute value to anything else will set the entity's maximum habitable temperature to a static value, overriding any applied TempModifiers.
Attribute modifiers can modify the entity's corresponding BURNING_POINT
trait, even if the attribute base value is unset.
freezing_point
Controls the temperature at which the entity begins to freeze, in MC units.
This attribute defaults to NaN
.
Setting the attribute value to anything else will set the entity's minimum habitable temperature to a static value, overriding any applied TempModifiers.
Attribute modifiers can modify the entity's corresponding FREEZING_POINT
trait, even if the attribute base value is unset.
heat_resistance
Controls the entity's resistance to incoming overheating damage. Represents the percent of incoming damage to be blocked.
This attribute defaults to NaN
, and ranges between 0 and 1.
Setting the attribute value to anything else will set the entity's resistance to overheating damage to a static value, overriding any applied TempModifiers.
Attribute modifiers can modify the entity's corresponding HEAT_RESISTANCE
trait, even if the attribute base value is unset.
cold_resistance
Controls the entity's resistance to incoming freezing damage, including that from non-temperature-related sources like powder snow. Represents the percent of incoming damage to be blocked.
This attribute defaults to NaN
, and ranges between 0 and 1.
Setting the attribute value to anything else will set the entity's resistance to freezing damage to a static value, overriding any applied TempModifiers.
Attribute modifiers can modify the entity's corresponding COLD_RESISTANCE
trait, even if the attribute base value is unset.
heat_dampening
Controls the entity's rate of overheating. Higher values decrease overheating speed, and negative values increase the speed.
This attribute defaults to NaN
, and caps out at a value of 1, but can be infinitely negative. A value of 1 prevents the player's temperature from increasing above 0.
Setting the attribute value to anything else will set the entity's overheating rate to a static value, overriding any applied TempModifiers.
Attribute modifiers can modify the entity's corresponding HEAT_DAMPENING
trait, even if the attribute base value is unset.
cold_dampening
Controls the entity's rate of freezing. Higher values decrease freezing speed, and negative values increase the speed.
This attribute defaults to NaN
, and caps out at a value of 1, but can be infinitely negative. A value of 1 prevents the player's temperature from decreasing below 0.
Setting the attribute value to anything else will set the entity's freezing rate to a static value, overriding any applied TempModifiers.
Attribute modifiers can modify the entity's corresponding COLD_DAMPENING
trait, even if the attribute base value is unset.