forked from mrkubax10/industrialtest
Depend on mcl_deepslate when mod is used with MCL
This commit is contained in:
parent
315c592d79
commit
e665536427
@ -17,7 +17,7 @@
|
|||||||
local S=minetest.get_translator("industrialtest")
|
local S=minetest.get_translator("industrialtest")
|
||||||
|
|
||||||
industrialtest.mtgAvailable=minetest.get_modpath("default")
|
industrialtest.mtgAvailable=minetest.get_modpath("default")
|
||||||
local requiredMclModules={"mcl_core","mcl_copper","mcl_armor"}
|
local requiredMclModules={"mcl_core","mcl_copper","mcl_armor","mcl_deepslate"}
|
||||||
industrialtest.mclAvailable=true
|
industrialtest.mclAvailable=true
|
||||||
for _,mod in ipairs(requiredMclModules) do
|
for _,mod in ipairs(requiredMclModules) do
|
||||||
if not minetest.get_modpath(mod) then
|
if not minetest.get_modpath(mod) then
|
||||||
@ -479,11 +479,14 @@ if industrialtest.mclAvailable then
|
|||||||
industrialtest.gameTexturePrefix="mcl"
|
industrialtest.gameTexturePrefix="mcl"
|
||||||
-- assign element keys for elements that are required later
|
-- assign element keys for elements that are required later
|
||||||
industrialtest.elementKeys.stick="mcl_core:stick"
|
industrialtest.elementKeys.stick="mcl_core:stick"
|
||||||
|
industrialtest.elementKeys.flint="mcl_core:flint"
|
||||||
industrialtest.elementKeys.junglePlanks="mcl_core:junglewood"
|
industrialtest.elementKeys.junglePlanks="mcl_core:junglewood"
|
||||||
industrialtest.elementKeys.ironIngot="mcl_core:iron_ingot"
|
industrialtest.elementKeys.ironIngot="mcl_core:iron_ingot"
|
||||||
industrialtest.elementKeys.copperIngot="mcl_copper:copper_ingot"
|
industrialtest.elementKeys.copperIngot="mcl_copper:copper_ingot"
|
||||||
industrialtest.elementKeys.powerCarrier="mesecons:mesecon"
|
industrialtest.elementKeys.powerCarrier="mesecons:mesecon"
|
||||||
industrialtest.elementKeys.furnace="mcl_furnaces:furnace"
|
industrialtest.elementKeys.furnace="mcl_furnaces:furnace"
|
||||||
|
industrialtest.elementKeys.cobble="mcl_core:cobble"
|
||||||
|
industrialtest.elementKeys.sand="mcl_core:sand"
|
||||||
|
|
||||||
-- register required minerals that are not available in MCL
|
-- register required minerals that are not available in MCL
|
||||||
industrialtest.registerMetal("tin","Tin",3,3)
|
industrialtest.registerMetal("tin","Tin",3,3)
|
||||||
@ -646,9 +649,12 @@ elseif industrialtest.mtgAvailable then
|
|||||||
industrialtest.elementKeys.ironIngot="default:steel_ingot"
|
industrialtest.elementKeys.ironIngot="default:steel_ingot"
|
||||||
industrialtest.elementKeys.copperIngot="default:copper_ingot"
|
industrialtest.elementKeys.copperIngot="default:copper_ingot"
|
||||||
industrialtest.elementKeys.stick="default:stick"
|
industrialtest.elementKeys.stick="default:stick"
|
||||||
|
industrialtest.elementKeys.flint="default:flint"
|
||||||
industrialtest.elementKeys.junglePlanks="default:junglewood"
|
industrialtest.elementKeys.junglePlanks="default:junglewood"
|
||||||
industrialtest.elementKeys.powerCarrier="default:mese_crystal_fragment"
|
industrialtest.elementKeys.powerCarrier="default:mese_crystal_fragment"
|
||||||
industrialtest.elementKeys.furnace="default:furnace"
|
industrialtest.elementKeys.furnace="default:furnace"
|
||||||
|
industrialtest.elementKeys.cobble="default:cobble"
|
||||||
|
industrialtest.elementKeys.sand="default:sand"
|
||||||
else
|
else
|
||||||
error("No compatible games found!")
|
error("No compatible games found!")
|
||||||
end
|
end
|
||||||
|
2
mod.conf
2
mod.conf
@ -1,5 +1,5 @@
|
|||||||
name=industrialtest
|
name=industrialtest
|
||||||
description=Adds various machinery
|
description=Adds various machinery
|
||||||
optional_depends=default,3d_armor,mcl_core,mcl_copper,mcl_armor
|
optional_depends=default,3d_armor,mcl_core,mcl_copper,mcl_armor,mcl_deepslate
|
||||||
author=IndustrialTest Team
|
author=IndustrialTest Team
|
||||||
title=IndustrialTest
|
title=IndustrialTest
|
Loading…
Reference in New Issue
Block a user