1
0
mirror of https://github.com/Sokomine/cottages.git synced 2024-11-16 07:20:30 +01:00
cottages/init.lua

50 lines
1.7 KiB
Lua
Raw Normal View History

2022-10-09 23:13:47 +02:00
local modname = minetest.get_current_modname()
local modpath = minetest.get_modpath(modname)
local S = minetest.get_translator(modname)
cottages = {
2023-01-23 04:36:23 +01:00
version = os.time({ year = 2022, month = 9, day = 29 }),
2022-10-09 23:13:47 +02:00
fork = "fluxionary",
modname = modname,
modpath = modpath,
S = S,
has = {
2022-10-11 00:09:31 +02:00
anvil = minetest.get_modpath("anvil"),
2023-03-30 00:51:33 +02:00
broken_tools = minetest.get_modpath("broken_tools"),
2022-10-09 23:13:47 +02:00
bucket = minetest.get_modpath("bucket"),
default = minetest.get_modpath("default"),
doors = minetest.get_modpath("doors"),
env_sounds = minetest.get_modpath("env_sounds"),
ethereal = minetest.get_modpath("ethereal"),
farming = minetest.get_modpath("farming"),
moreblocks = minetest.get_modpath("moreblocks"),
node_entity_queue = minetest.get_modpath("node_entity_queue"),
player_api = minetest.get_modpath("player_api"),
player_monoids = minetest.get_modpath("player_monoids"),
stairs = minetest.get_modpath("stairs"),
stairsplus = minetest.get_modpath("stairsplus"),
stamina = minetest.get_modpath("stamina") and minetest.global_exists("stamina") and stamina.exhaust_player,
2023-04-09 01:08:13 +02:00
staminoid = minetest.get_modpath("staminoid"),
2022-10-09 23:13:47 +02:00
technic = minetest.get_modpath("technic"),
unified_inventory = minetest.get_modpath("unified_inventory"),
wool = minetest.get_modpath("wool"),
workbench = minetest.get_modpath("workbench"),
},
log = function(level, messagefmt, ...)
return minetest.log(level, ("[%s] %s"):format(modname, messagefmt:format(...)))
end,
dofile = function(...)
2023-01-23 04:36:23 +01:00
return dofile(table.concat({ modpath, ... }, DIR_DELIM) .. ".lua")
2022-10-09 23:13:47 +02:00
end,
}
cottages.dofile("settings")
cottages.dofile("util")
cottages.dofile("resources", "init")
cottages.dofile("api", "init")
cottages.dofile("modules", "init")