almanac

Reports where in the year it is. With Serene Seasons installed this is the season calendar; in a dimension or biome without seasons, or without the mod, the season functions return nil and getValue follows the eight-day lunar cycle instead.

getSeason()Get the current season.
getSubSeason()Get the current part of the season.
getDay()Get the day of the year.
getMoonPhase()Get the moon phase.
getValue()Get the latest reading.
getUnit()Get the unit readings are in.
read()Get the latest reading with its context.
getSeason()Source

Get the current season.

Returns

  1. string | nil "spring", "summer", "autumn" or "winter", or nil without a season calendar.
getSubSeason()Source

Get the current part of the season.

Returns

  1. string | nil For example "early_spring", "mid_summer" or "late_winter", or nil without a season calendar.
getDay()Source

Get the day of the year.

Returns

  1. number | nil The day, starting at 1 on the first day of spring, or nil without a season calendar.
getMoonPhase()Source

Get the moon phase.

Returns

  1. number The vanilla moon phase, 0 (full moon) to 7.
getValue()Source

Get the latest reading.

Returns

  1. number The measured value, in this instrument's unit.
getUnit()Source

Get the unit readings are in.

Returns

  1. string "C", "rh", "hPa", "mm/h", or for the almanac "year" (fraction of the season year) or "moon" (fraction of the lunar cycle, where there is no season calendar).
read()Source

Get the latest reading with its context.

Returns

  1. { [string] = any } A table with value, unit, time (game time of the sample, in ticks) and source (where the value came from, e.g. "thermoo", "sable", "serene_seasons" or "vanilla").