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
string| nil"spring","summer","autumn"or"winter", or nil without a season calendar.
- getSubSeason()Source
Get the current part of the season.
Returns
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
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
numberThe vanilla moon phase, 0 (full moon) to 7.
- getValue()Source
Get the latest reading.
Returns
numberThe measured value, in this instrument's unit.
- getUnit()Source
Get the unit readings are in.
Returns
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
- { [
string] =any} A table withvalue,unit,time(game time of the sample, in ticks) andsource(where the value came from, e.g."thermoo","sable","serene_seasons"or"vanilla").
- { [