Go to file
Wuzzy 4c8e0a8115 Clean up code a bit 2020-08-28 15:54:35 +02:00
textures Make legacy mode a bit prettier 2020-08-28 15:23:58 +02:00
API.md Add calendar.get_total_days_from_date 2020-08-28 15:31:13 +02:00
README.md Make legacy mode a bit prettier 2020-08-28 15:23:58 +02:00
command.lua Clean up code a bit 2020-08-28 15:54:35 +02:00
gameconfig.lua Add calendar.config function 2020-08-28 14:59:42 +02:00
gui.lua Clean up code a bit 2020-08-28 15:54:35 +02:00
init.lua Clean up code a bit 2020-08-28 15:54:35 +02:00
mod.conf Add basic documentation 2020-08-27 23:06:19 +02:00
node.lua Can dig calender instantly 2020-08-28 15:09:31 +02:00
screenshot.png Update infor on fake buttons, add screenshot 2020-08-28 15:11:09 +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.

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.

Compability

This mod is designed for Minetest 5.3.0, but there's a compability mode for version 0.4.17.

Due to a limited feature set, the calender form looks a bit differently in 0.4.17. Fake buttons are used for the day boxes to allow the use of tooltips.

Customizing the calendar

If you want to customize the calendar (e.g. change the length of months), read the text file API.md.

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.