2020-08-27 14:06:19 -07:00
|
|
|
# Calendar
|
|
|
|
|
|
|
|
This mod adds a simple and customizable calender system.
|
|
|
|
|
|
|
|
The calendar supports days, weeks, months and years.
|
|
|
|
Holidays are also supported.
|
|
|
|
|
2020-08-28 02:17:16 -07:00
|
|
|
To make things simpler, all months have the same length.
|
|
|
|
|
|
|
|
By default, a year has 12 months (January to December) with 30 days each.
|
|
|
|
There are 7 weekdays from Monday to Sunday, starting at Monday.
|
|
|
|
The calendar starts at Day 1, Month 1 (January), Year 1.
|
|
|
|
|
|
|
|
## Customizing the calendar
|
|
|
|
If you want to customize the calendar (e.g. change the length of months),
|
|
|
|
read the text file `API.md`.
|
2020-08-27 14:06:19 -07:00
|
|
|
|
|
|
|
## Info for programmers
|
|
|
|
See `API.md`.
|
|
|
|
|
|
|
|
## Where is the date stored?
|
|
|
|
Minetest stores the number of elapsed days in the world files and it
|
|
|
|
can be queried in Lua via `minetest.get_day_count()`.
|
|
|
|
The day count is stored in the world directory under `env_meta.txt` as
|
|
|
|
`day_count`.
|
2020-08-28 02:17:16 -07:00
|
|
|
|