industrialtest/init.lua

37 lines
1.3 KiB
Lua
Raw Normal View History

2023-02-23 12:14:10 +01:00
-- IndustrialTest
-- Copyright (C) 2023 mrkubax10
-- This program 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.
-- This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
2023-02-23 12:09:46 +01:00
MODNAME="industrialtest"
local modpath=minetest.get_modpath(MODNAME)
-- table with global functions, variables etc
industrialtest={}
2023-03-07 20:41:35 +01:00
-- Initial constants
industrialtest.updateDelay=1 -- Note: Make this value smaller to make machines update more frequently (it may make server more laggy)
industrialtest.developerMode=true -- Enables additional utils useful when developing mod
2023-03-07 20:41:35 +01:00
2023-02-23 12:09:46 +01:00
-- load other lua files
dofile(modpath.."/compatibility.lua")
2023-02-28 20:09:23 +01:00
dofile(modpath.."/api.lua")
dofile(modpath.."/minerals.lua")
2023-03-01 12:16:33 +01:00
dofile(modpath.."/machines.lua")
dofile(modpath.."/craftitems.lua")
dofile(modpath.."/nodes.lua")
if industrialtest.developerMode then
dofile(modpath.."/utils.lua")
end