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)
|
|
|
|
|
2023-02-23 18:15:12 +01:00
|
|
|
-- 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)
|
2023-03-10 21:06:10 +01:00
|
|
|
industrialtest.developerMode=true -- Enables additional utils useful when developing mod
|
2023-03-07 20:41:35 +01:00
|
|
|
|
2023-03-15 10:34:39 +01:00
|
|
|
-- Others
|
|
|
|
industrialtest.random=PseudoRandom(os.time())
|
|
|
|
|
2023-02-23 12:09:46 +01:00
|
|
|
-- load other lua files
|
2023-02-23 18:15:12 +01:00
|
|
|
dofile(modpath.."/compatibility.lua")
|
2023-02-28 20:09:23 +01:00
|
|
|
dofile(modpath.."/api.lua")
|
2023-02-23 18:15:12 +01:00
|
|
|
dofile(modpath.."/minerals.lua")
|
2023-11-11 17:42:05 +01:00
|
|
|
|
|
|
|
dofile(modpath.."/machines/common.lua")
|
|
|
|
dofile(modpath.."/machines/compressor.lua")
|
2023-11-19 19:59:33 +01:00
|
|
|
dofile(modpath.."/machines/cable_former.lua")
|
2023-11-11 17:42:05 +01:00
|
|
|
dofile(modpath.."/machines/electric_furnace.lua")
|
|
|
|
dofile(modpath.."/machines/extractor.lua")
|
|
|
|
dofile(modpath.."/machines/fluid_generator.lua")
|
|
|
|
dofile(modpath.."/machines/generator.lua")
|
|
|
|
dofile(modpath.."/machines/iron_furnace.lua")
|
|
|
|
dofile(modpath.."/machines/macerator.lua")
|
2023-11-23 19:17:19 +01:00
|
|
|
dofile(modpath.."/machines/mass_fabricator.lua")
|
2023-11-18 20:43:34 +01:00
|
|
|
dofile(modpath.."/machines/nuclear_reactor.lua")
|
2023-11-11 17:42:05 +01:00
|
|
|
dofile(modpath.."/machines/power_storage.lua")
|
|
|
|
dofile(modpath.."/machines/recycler.lua")
|
2023-11-23 22:30:44 +01:00
|
|
|
dofile(modpath.."/machines/tool_workshop.lua")
|
2023-11-11 17:42:05 +01:00
|
|
|
dofile(modpath.."/machines/transformer.lua")
|
|
|
|
dofile(modpath.."/machines/solar_panel_generator.lua")
|
|
|
|
dofile(modpath.."/machines/wind_mill.lua")
|
|
|
|
|
2023-11-25 17:58:42 +01:00
|
|
|
dofile(modpath.."/upgrades.lua")
|
2023-03-04 16:01:06 +01:00
|
|
|
dofile(modpath.."/craftitems.lua")
|
|
|
|
dofile(modpath.."/nodes.lua")
|
2023-03-10 21:06:10 +01:00
|
|
|
if industrialtest.developerMode then
|
|
|
|
dofile(modpath.."/utils.lua")
|
|
|
|
end
|
2023-03-11 16:52:51 +01:00
|
|
|
dofile(modpath.."/cables.lua")
|
2023-03-15 10:34:39 +01:00
|
|
|
dofile(modpath.."/mapgen.lua")
|
2023-03-15 18:10:54 +01:00
|
|
|
dofile(modpath.."/tools.lua")
|
2023-03-18 11:32:20 +01:00
|
|
|
dofile(modpath.."/crafts.lua")
|