Add refined iron, machine block and generator craft

This commit is contained in:
2023-03-04 16:01:06 +01:00
parent f82170b5e5
commit d268618cff
5 changed files with 93 additions and 1 deletions

View File

@@ -461,6 +461,7 @@ if industrialtest.mclAvailable then
}
})
end
industrialtest.gameTexturePrefix="mcl"
-- FIXME: Formspecs when used with MCL are misaligned, to fix that and also preserve compatibilty
-- with MTG MCL has to stop using legacy formspec coordinates ~mrkubax10
industrialtest.formspecVersion=function()
@@ -474,7 +475,9 @@ if industrialtest.mclAvailable then
end
-- assign element keys for elements that are required later
industrialtest.elementKeys.stick="mcl_core:stick"
industrialtest.elementKeys.ironIngot="mcl_core:iron_ingot"
industrialtest.elementKeys.powerCarrier="mesecons:mesecon"
industrialtest.elementKeys.furnace="mcl_furnaces:furnace"
-- register required minerals that are not available in MCL
industrialtest.registerMetal("tin","Tin",3,3)
@@ -630,10 +633,13 @@ elseif industrialtest.mtgAvailable then
industrialtest.formspecPlayerInv=function()
return "list[current_player;main;0.5,6.25;8,1]list[current_player;main;0.5,7.5;8,3;8]"
end
industrialtest.gameTexturePrefix="mtg"
industrialtest.elementKeys.tinIngot="default:tin_ingot"
industrialtest.elementKeys.bronzeIngot="default:bronze_ingot"
industrialtest.elementKeys.ironIngot="default:steel_ingot"
industrialtest.elementKeys.stick="default:stick"
industrialtest.elementKeys.powerCarrier="default:mese_crystal_fragment"
industrialtest.elementKeys.furnace="default:furnace"
else
error("No compatible games found!")
end