ExchangeClone/exchangeclone/init.lua

54 lines
1.9 KiB
Lua
Raw Normal View History

2023-11-10 03:35:23 +01:00
if not (exchangeclone and minetest.get_modpath("_exchangeclone_energy")) then
error("Disable and re-enable the ExchangeClone modpack.")
end
2023-11-03 00:53:52 +01:00
2023-03-25 23:29:02 +01:00
if (not minetest.get_modpath("mcl_core")) and (not minetest.get_modpath("default")) then
error("ExchangeClone requires 'default' or 'mcl_core,' but Minetest doesn't let me mark one or the other as a dependency.")
else
2023-09-29 01:23:49 +02:00
exchangeclone.mcl = minetest.get_modpath("mcl_core")
end
2023-11-19 01:48:35 +01:00
2023-11-10 03:35:23 +01:00
exchangeclone.mineclonia = minetest.get_game_info().id == "mineclonia" -- if exchangeclone.mineclonia, exchangeclone.mcl is also defined.
2023-09-29 01:23:49 +02:00
2023-11-03 00:53:52 +01:00
exchangeclone.orb_max = 51200000 -- Max capacity of Klein Star Omega in ProjectE
2023-09-12 16:46:59 +02:00
2023-09-29 01:23:49 +02:00
local modpath = minetest.get_modpath("exchangeclone")
2021-08-25 18:01:36 +02:00
2023-11-13 02:30:16 +01:00
exchangeclone.orb_max = minetest.settings:get("exchangeclone.orb_max") or 51200000
2023-11-10 03:35:23 +01:00
exchangeclone.num_passes = minetest.settings:get("exchangeclone.num_passes") or 10
2023-11-19 01:48:35 +01:00
minetest.log("action", "Loading Exchangeclone")
2023-09-29 01:23:49 +02:00
dofile(modpath.."/lib.lua")
dofile(modpath.."/constructor.lua")
dofile(modpath.."/deconstructor.lua")
dofile(modpath.."/energy_collector.lua")
dofile(modpath.."/orb.lua")
dofile(modpath.."/craftitems.lua")
if exchangeclone.mcl or minetest.get_modpath("3d_armor") then
dofile(modpath.."/armor.lua")
2023-08-07 22:56:29 +02:00
end
2023-09-29 01:23:49 +02:00
if exchangeclone.mcl then
2023-07-13 22:38:00 +02:00
mcl_item_id.set_mod_namespace("exchangeclone")
2023-09-29 01:23:49 +02:00
dofile(modpath.."/shears.lua")
2023-11-13 02:30:16 +01:00
dofile(modpath.."/tool_upgrades.lua")
end
2023-10-07 17:26:21 +02:00
dofile(modpath.."/multidig.lua")
2023-09-29 01:23:49 +02:00
dofile(modpath.."/swords.lua")
dofile(modpath.."/axes.lua")
dofile(modpath.."/hoes.lua")
dofile(modpath.."/pickaxes.lua")
dofile(modpath.."/hammers.lua")
dofile(modpath.."/shovels.lua")
dofile(modpath.."/red_matter_multitools.lua")
2023-11-19 01:48:35 +01:00
dofile(modpath.."/covalence_dust.lua")
2023-11-13 02:30:16 +01:00
if minetest.get_modpath("hopper") then
dofile(modpath.."/hopper_compat.lua")
2023-10-07 17:26:21 +02:00
end
2023-09-29 01:23:49 +02:00
dofile(modpath.."/philosophers_stone.lua")
dofile(modpath.."/pesa.lua")
2023-11-08 01:02:24 +01:00
dofile(modpath.."/infinite_food.lua")
2023-11-19 01:48:35 +01:00
dofile(modpath.."/alchemical_chests.lua")
2023-10-04 02:07:36 +02:00
dofile(modpath.."/transmutation_table.lua")
2023-10-31 00:54:59 +01:00
dofile(modpath.."/furnaces.lua")