Temperature

Description

Matches when the air temperature at the entity, in degrees Celsius, is inside a range. The <mythicseasons.temperature> placeholder returns the same number.

This condition works on any entity, at its position. Without an entity it is false.

It reads the temperature system: the seasonal base temperature of the world with the time of day, weather, biome and height modifiers of temperature.yml, plus BlockHeat lines with air=true for a player. The Nether and the End use the fixed temperature under modifiers.other-dimensions. It is false while enabled in temperature.yml is false. For the simulated air use AtmosphereTemp, for the body PlayerTemperature.

Attributes

Attribute Aliases Description Default
temperature t, temp An exact temperature in whole degrees. any
min The lowest matching temperature in whole degrees. no limit
max The highest matching temperature in whole degrees. no limit

Both limits are included, and with no attribute every temperature matches. With temperature and min or max, min or max replaces that side: temperature{t=5;max=10} matches 5 to 10. A value that is not a whole number, such as 5.5, is reported in the console and makes the condition always false, and min above max matches nothing.

Examples

HeatHaze:
  Conditions:
  - airtemp{min=30;max=40} true
  Skills:
  - message{m="The heat is heavy."} @Self

Runs from 30 to 40 degrees.

ColdAirWarning:
  TargetConditions:
  - airtemperature{max=-5} true
  Skills:
  - message{m="It is bitterly cold here."}

WarnNearbyPlayers:
  Skills:
  - skill{s=ColdAirWarning} @PlayersInRadius{r=30}

Messages only the nearby players in air of -5 degrees or colder.

MildAir:
  Skills:
  - message{m="A mild day."} @Self ?temperature{t=20}

Inline, it tests the caster.

Aliases

  • airtemperature
  • airtemp
Updated Nov 11, 2026