add brass and steel chainlinks, recipe changes...

if glooptest is not installed, an alias is added to equate homedecor
steel chainlinks to glooptest's, for compatibility.

The six-steel-ingot wall chain recipe is no longer to make wall chains.
Instead, if glooptest is not installed, this recipe is used to make
chain *links*.

Whether glooptest is installed or not, the steel chainlinks are still
used along with steel ingots, to make wall chains as before.
This commit is contained in:
Vanessa Ezekowitz 2014-08-25 18:24:36 -04:00
parent 5405b71a05
commit 0afd5b9b2c
4 changed files with 44 additions and 18 deletions

View File

@ -108,6 +108,16 @@ minetest.register_craftitem("homedecor:steel_strip", {
inventory_image = "homedecor_steel_strip.png" inventory_image = "homedecor_steel_strip.png"
}) })
minetest.register_craftitem("homedecor:chainlink_steel", {
description = "Steel chainlink",
inventory_image = "homedecor_chainlink_steel.png"
})
minetest.register_craftitem("homedecor:chainlink_brass", {
description = "Brass chainlink",
inventory_image = "homedecor_chainlink_brass.png"
})
-- alternate crafting if mesecons is/isn't installed -- alternate crafting if mesecons is/isn't installed
if not minetest.get_modpath("mesecons") then if not minetest.get_modpath("mesecons") then
@ -2549,3 +2559,37 @@ minetest.register_craft( {
{ "vessels:glass_bottle", "dye:brown" } { "vessels:glass_bottle", "dye:brown" }
}, },
}) })
if not minetest.get_modpath("glooptest") then
minetest.register_alias("glooptest:chainlink", "homedecor:chainlink_steel")
minetest.register_craft({
output = "glooptest:chainlink 12",
recipe = {
{"", "default:steel_ingot", "default:steel_ingot"},
{ "default:steel_ingot", "", "default:steel_ingot" },
{ "default:steel_ingot", "default:steel_ingot", "" },
},
})
end
minetest.register_craft({
output = "homedecor:chains 4",
recipe = {
{ "default:steel_ingot", "", "default:steel_ingot"},
{ "homedecor:chainlink_steel", "", "homedecor:chainlink_steel" },
{ "homedecor:chainlink_steel", "", "homedecor:chainlink_steel" },
},
})
minetest.register_craft({
output = "homedecor:chainlink_brass 12",
recipe = {
{"", "technic:brass_ingot", "technic:brass_ingot"},
{ "technic:brass_ingot", "", "technic:brass_ingot" },
{ "technic:brass_ingot", "technic:brass_ingot", "" },
},
})

View File

@ -219,24 +219,6 @@ minetest.register_craft({
}, },
}) })
minetest.register_craft({
output = "homedecor:chains 4",
recipe = {
{"","default:steel_ingot","default:steel_ingot"},
{ "default:steel_ingot","", "default:steel_ingot" },
{ "default:steel_ingot", "default:steel_ingot", "" },
},
})
minetest.register_craft({
output = "homedecor:chains 4",
recipe = {
{ "default:steel_ingot", "", "default:steel_ingot"},
{ "glooptest:chainlink", "", "glooptest:chainlink" },
{ "glooptest:chainlink", "", "glooptest:chainlink" },
},
})
minetest.register_craft({ minetest.register_craft({
output = "homedecor:torch_wall 10", output = "homedecor:torch_wall 10",
recipe = { recipe = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B