Add bronze ingot and block
This commit is contained in:
parent
5bc315e0e8
commit
b888b4da8a
|
@ -17,7 +17,7 @@
|
|||
local S=minetest.get_translator("industrialtest")
|
||||
|
||||
industrialtest.mtgAvailable=minetest.get_modpath("default")
|
||||
industrialtest.mclAvailable=minetest.get_modpath("mcl_core")
|
||||
industrialtest.mclAvailable=minetest.get_modpath("mcl_core") and minetest.get_modpath("mcl_copper")
|
||||
|
||||
industrialtest.elementKeys={}
|
||||
|
||||
|
@ -109,6 +109,48 @@ if industrialtest.mclAvailable then
|
|||
-- register required minerals that are not available in MCL
|
||||
industrialtest.registerMetal("tin","Tin",3,3)
|
||||
industrialtest.elementKeys.tinIngot="industrialtest:tin_ingot"
|
||||
|
||||
--register other items that are not available in MCL
|
||||
minetest.register_craftitem("industrialtest:bronze_ingot",{
|
||||
description=S("Bronze Ingot"),
|
||||
inventory_image="industrialtest_mcl_bronze_ingot.png"
|
||||
})
|
||||
minetest.register_craft({
|
||||
type="shaped",
|
||||
output="industrialcraft:bronze_ingot 9",
|
||||
recipe={
|
||||
{"mcl_copper:copper_ingot","mcl_copper:copper_ingot","mcl_copper:copper_ingot"},
|
||||
{"mcl_copper:copper_ingot","industrialtest:tin_ingot","mcl_copper:copper_ingot"},
|
||||
{"mcl_copper:copper_ingot","mcl_copper:copper_ingot","mcl_copper:copper_ingot"}
|
||||
}
|
||||
})
|
||||
industrialtest.elementKeys.bronzeIngot="industrialtest:bronze_ingot"
|
||||
|
||||
--register other blocks that are not availabe in MCL
|
||||
minetest.register_node("industrialtest:bronze_block",{
|
||||
description=S("Block of Bronze"),
|
||||
tiles={"industrialtest_mcl_bronze_block.png"},
|
||||
groups={pickaxey=2,building_block=1},
|
||||
sounds=mcl_sounds.node_sound_metal_defaults(),
|
||||
_mcl_blast_resistance=3,
|
||||
_mcl_hardness=3,
|
||||
})
|
||||
minetest.register_craft({
|
||||
type="shaped",
|
||||
output="industrialtest:bronze_block",
|
||||
recipe={
|
||||
{"industrialtest:bronze_ingot","industrialtest:bronze_ingot","industrialtest:bronze_ingot"},
|
||||
{"industrialtest:bronze_ingot","industrialtest:bronze_ingot","industrialtest:bronze_ingot"},
|
||||
{"industrialtest:bronze_ingot","industrialtest:bronze_ingot","industrialtest:bronze_ingot"}
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
type="shapeless",
|
||||
output="industrialtest:bronze_ingot 9",
|
||||
recipe={
|
||||
"industrialtest:bronze_block"
|
||||
}
|
||||
})
|
||||
|
||||
-- ore generation is game-dependent so register it there
|
||||
local stonelike={"mcl_core:stone","mcl_core:diorite","mcl_core:andesite","mcl_core:granite"}
|
||||
|
@ -185,6 +227,7 @@ elseif industrialtest.mtgAvailable then
|
|||
})
|
||||
end
|
||||
industrialtest.elementKeys.tinIngot="default:tin_ingot"
|
||||
industrialtest.elementKeys.bronzeIngot="default:bronze_ingot"
|
||||
|
||||
-- ore generation is game-dependent so register it there
|
||||
minetest.register_ore({
|
||||
|
|
Loading…
Reference in New Issue