local modpath = minetest.get_modpath('mtimer')..DIR_DELIM local syspath = modpath..'system'..DIR_DELIM mtimer = { translator = minetest.get_translator('mtimer'), show_formspec = {}, meta = { visible = { key = 'mtimer:visible', default = 'true' }, position = { key = 'mtimer:position', default = 'bl' }, color = { key = 'mtimer:color', default = '#ffffff' }, timezone_offset = { key = 'mtimer:timezone_offset', default = '0' }, ingame_time = { key = 'mtimer:ingame_time_format', default = '{24h}:{min}' }, real_time = { key = 'mtimer:real_time_format', default = '{24h}:{min} ({isodate})' }, session_start_time = { key = 'mtimer:session_start_time_format', default = '{isodate}T{isotime}' }, session_duration = { key = 'mtimer:session_duration_format', default = '{hours}:{minutes}' }, timer_format = { key = 'mtimer:timer_format', default = 'Current Date: {rd}\n'.. 'Ingame Time: {it}\n'.. 'Session Start: {st}\n'.. 'Session Duration: {sd}' }, } } -- Load formspec functionality dofile(syspath..'formspec'..DIR_DELIM..'formspec_helpers.lua') dofile(syspath..'formspec'..DIR_DELIM..'real_time_universal.lua') dofile(syspath..'formspec'..DIR_DELIM..'formspec_creation.lua') -- Load system dofile(syspath..'chat_command.lua') dofile(syspath..'timer_update.lua') dofile(syspath..'on_receive_fields.lua') dofile(syspath..'on_joinplayer.lua') dofile(syspath..'get_times.lua') dofile(syspath..'get_timer_data.lua')