Add mods: technic, moreores, paintings, Nyancat (Pbj_pup). Small fix: sandwiches
This commit is contained in:
parent
15e8e696a2
commit
fb09deddc1
1404 changed files with 156555 additions and 211 deletions
48
mods/.cleaner/init.lua
Normal file
48
mods/.cleaner/init.lua
Normal file
|
@ -0,0 +1,48 @@
|
|||
|
||||
cleaner = {}
|
||||
cleaner.modname = core.get_current_modname()
|
||||
cleaner.modpath = core.get_modpath(cleaner.modname)
|
||||
|
||||
local cleaner_debug = core.settings:get_bool("enable_debug_mods", false)
|
||||
|
||||
function cleaner.log(lvl, msg)
|
||||
if lvl == "debug" and not cleaner_debug then return end
|
||||
|
||||
if lvl and not msg then
|
||||
msg = lvl
|
||||
lvl = nil
|
||||
end
|
||||
|
||||
msg = "[" .. cleaner.modname .. "] " .. msg
|
||||
if lvl == "debug" then
|
||||
msg = "[DEBUG] " .. msg
|
||||
lvl = nil
|
||||
end
|
||||
|
||||
if not lvl then
|
||||
core.log(msg)
|
||||
else
|
||||
core.log(lvl, msg)
|
||||
end
|
||||
end
|
||||
|
||||
local aux = dofile(cleaner.modpath .. "/misc_functions.lua")
|
||||
|
||||
-- initialize world file
|
||||
aux.update_world_data()
|
||||
|
||||
|
||||
local scripts = {
|
||||
"settings",
|
||||
"api",
|
||||
"chat",
|
||||
"tools",
|
||||
"entities",
|
||||
"nodes",
|
||||
"items",
|
||||
"ores",
|
||||
}
|
||||
|
||||
for _, script in ipairs(scripts) do
|
||||
dofile(cleaner.modpath .. "/" .. script .. ".lua")
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue