Go to file
Wuzzy 995192fe67 Add holiday box color 2020-08-27 23:18:37 +02:00
textures Add calendar node 2020-08-27 19:47:08 +02:00
API.md Add basic documentation 2020-08-27 23:06:19 +02:00
README.md Add basic documentation 2020-08-27 23:06:19 +02:00
command.lua Reorganize code in separate files 2020-08-27 23:08:58 +02:00
gui.lua Add holiday box color 2020-08-27 23:18:37 +02:00
init.lua Reorganize code in separate files 2020-08-27 23:08:58 +02:00
mod.conf Add basic documentation 2020-08-27 23:06:19 +02:00
node.lua Reorganize code in separate files 2020-08-27 23:08:58 +02:00

README.md

Calendar

This mod adds a simple and customizable calender system.

The calendar supports days, weeks, months and years. Holidays are also supported.

By default, a year has 12 months with 30 days each, with a total of 360 days.

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.