41 lines
1.1 KiB
Lua
Raw Normal View History

2020-06-10 08:04:59 -04:00
-- LUALOCALS < ---------------------------------------------------------
local minetest, nodecore
= minetest, nodecore
2020-06-10 08:04:59 -04:00
-- LUALOCALS > ---------------------------------------------------------
local nct = nodecore.translate
local version = nodecore.version
version = version and (nct("Version") .. " " .. version)
2021-03-02 20:01:52 -05:00
or nct("DEVELOPMENT VERSION")
2020-06-10 08:04:59 -04:00
local about = {
nct(nodecore.product) .. " - " .. version,
"",
"(C)2018-2021 by Aaron Suen <warr1024@@gmail.com>",
"MIT License (http://www.opensource.org/licenses/MIT)",
"See included LICENSE file for full details and credits",
"",
"https://content.minetest.net/packages/Warr1024/nodecore/",
"GitLab: https://gitlab.com/sztest/nodecore",
"",
"Discord: https://discord.gg/NNYeF6f",
"Matrix: #nodecore:matrix.org",
"IRC: #nodecore @@ irc.libera.chat"
}
local modfmt = "Additional Mods Loaded: @1"
nodecore.translate_inform(modfmt)
minetest.after(0, function()
local mods = nodecore.added_mods_list
if #mods > 0 then
about[#about + 1] = ""
about[#about + 1] = nodecore.translate(modfmt, mods)
end
end)
2020-06-10 08:04:59 -04:00
nodecore.register_inventory_tab({
title = "About",
content = about
2020-06-10 08:04:59 -04:00
})