digiterms/init.lua

38 lines
1.3 KiB
Lua
Raw Normal View History

2018-12-02 16:47:04 +01:00
--[[
2018-12-08 16:01:34 +01:00
digiterms mod for Minetest - Digiline monitors using Display API / Font API
2018-12-02 16:47:04 +01:00
(c) Pierre-Yves Rollo
2018-12-08 16:01:34 +01:00
This file is part of digiterms.
2018-12-02 16:47:04 +01:00
signs is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
signs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with signs. If not, see <http://www.gnu.org/licenses/>.
--]]
2018-12-08 16:01:34 +01:00
digiterms = {}
digiterms.name = minetest.get_current_modname()
digiterms.path = minetest.get_modpath(digiterms.name)
digiterms.font = "mozart"
2018-12-02 16:47:04 +01:00
2018-12-09 18:14:27 +01:00
display_api.register_display_entity("digiterms:screen")
2018-12-08 16:01:34 +01:00
dofile(digiterms.path.."/font_mozart.lua")
dofile(digiterms.path.."/functions.lua")
dofile(digiterms.path.."/nodes.lua")
2018-12-09 18:04:25 +01:00
dofile(digiterms.path.."/crafts.lua")
2018-12-02 16:47:04 +01:00
2018-12-09 17:17:14 +01:00
if minetest.get_modpath("scifi_nodes") then
2018-12-09 18:14:27 +01:00
print ('[digiterms] scifi_nodes mod present, adding some more nodes')
2018-12-09 17:17:14 +01:00
dofile(digiterms.path.."/scifi_nodes.lua")
2018-12-09 18:14:27 +01:00
dofile(digiterms.path.."/scifi_crafts.lua")
2018-12-09 17:17:14 +01:00
end