2023-12-15 00:09:59 +01:00
|
|
|
if not exchangeclone then
|
2023-11-10 03:35:23 +01:00
|
|
|
error("Disable and re-enable the ExchangeClone modpack.")
|
|
|
|
end
|
2023-11-03 00:53:52 +01:00
|
|
|
|
2023-12-15 00:09:59 +01:00
|
|
|
minetest.log("action", "ExchangeClone: Registering own stuff")
|
2023-09-29 01:23:49 +02:00
|
|
|
|
2023-12-15 00:09:59 +01:00
|
|
|
-- Decides what mod to use for sounds
|
|
|
|
exchangeclone.sound_mod = exchangeclone.mcl and mcl_sounds or default
|
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-09-29 01:23:49 +02:00
|
|
|
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")
|
2023-06-10 22:55:47 +02:00
|
|
|
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-11-20 01:01:56 +01:00
|
|
|
dofile(modpath.."/furnaces.lua")
|
|
|
|
|
2023-12-15 00:09:59 +01:00
|
|
|
minetest.log("action", "ExchangeClone: Done.")
|
|
|
|
|
|
|
|
minetest.register_on_mods_loaded(function()
|
|
|
|
local start_time = minetest.get_us_time()
|
|
|
|
minetest.log("action", "ExchangeClone: Registering energy values")
|
|
|
|
dofile(modpath.."/register_energy.lua")
|
|
|
|
local total_time = minetest.get_us_time() - start_time
|
|
|
|
minetest.log("action", "ExchangeClone: Done registering energy values ("..total_time.." microseconds)")
|
|
|
|
end)
|