Add aliases for backwards compatibility with armor_addon
This commit is contained in:
parent
102e3a95b2
commit
71cdeac7a8
38
crafts.lua
38
crafts.lua
@ -31,6 +31,7 @@ local craft_ingreds = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for k, v in pairs(craft_ingreds) do
|
for k, v in pairs(craft_ingreds) do
|
||||||
|
minetest.register_alias("armor_addon:helmet_"..k, "moarmour:helmet_"..k)
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moarmour:helmet_"..k,
|
output = "moarmour:helmet_"..k,
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -39,6 +40,7 @@ for k, v in pairs(craft_ingreds) do
|
|||||||
{"", "", ""},
|
{"", "", ""},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
minetest.register_alias("armor_addon:chestplate_"..k, "moarmour:chestplate_"..k)
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moarmour:chestplate_"..k,
|
output = "moarmour:chestplate_"..k,
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -47,6 +49,7 @@ for k, v in pairs(craft_ingreds) do
|
|||||||
{v, v, v},
|
{v, v, v},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
minetest.register_alias("armor_addon:leggings_"..k, "moarmour:leggings_"..k)
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moarmour:leggings_"..k,
|
output = "moarmour:leggings_"..k,
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -55,6 +58,7 @@ for k, v in pairs(craft_ingreds) do
|
|||||||
{v, "", v},
|
{v, "", v},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
minetest.register_alias("armor_addon:boots_"..k, "moarmour:boots_"..k)
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moarmour:boots_"..k,
|
output = "moarmour:boots_"..k,
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -62,6 +66,7 @@ for k, v in pairs(craft_ingreds) do
|
|||||||
{v, "", v},
|
{v, "", v},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
minetest.register_alias("armor_addon:shield_"..k, "moarmour:shield_"..k)
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moarmour:shield_"..k,
|
output = "moarmour:shield_"..k,
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -114,6 +119,7 @@ minetest.register_craft ({
|
|||||||
{"bones:bones", "bones:bones"}
|
{"bones:bones", "bones:bones"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
minetest.register_alias("armor_addon:bone", "moarmour:boneplate")
|
||||||
minetest.register_craftitem ("moarmour:boneplate", {
|
minetest.register_craftitem ("moarmour:boneplate", {
|
||||||
description = S("Bone Plate"),
|
description = S("Bone Plate"),
|
||||||
inventory_image = "moarmour_bone_plate.png"
|
inventory_image = "moarmour_bone_plate.png"
|
||||||
@ -121,46 +127,46 @@ minetest.register_craftitem ("moarmour:boneplate", {
|
|||||||
minetest.register_craft ({
|
minetest.register_craft ({
|
||||||
output = 'moarmour:boneplate 9',
|
output = 'moarmour:boneplate 9',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'moarmour:bonepile', 'default:diamondblock', 'moarmour:bonepile'},
|
{ 'moarmour:bonepile', 'default:diamondblock', 'moarmour:bonepile'},
|
||||||
{'default:diamondblock', 'moarmour:bonepile', 'default:diamondblock'},
|
{'default:diamondblock', 'moarmour:bonepile', 'default:diamondblock'},
|
||||||
{'moarmour:bonepile', 'default:diamondblock', 'moarmour:bonepile'},
|
{ 'moarmour:bonepile', 'default:diamondblock', 'moarmour:bonepile'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'moarmour:boots_tacnayn',
|
output = 'moarmour:boots_tacnayn',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'moarmour:boots_waffle', '', 'moarmour:boots_rainbow'},
|
{ 'moarmour:boots_waffle', '', 'moarmour:boots_rainbow'},
|
||||||
{'tac_nayn:tacnayn_rainbow', '', 'tac_nayn:tacnayn_rainbow'},
|
{'tac_nayn:tacnayn_rainbow', '', 'tac_nayn:tacnayn_rainbow'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'moarmour:chestplate_tacnayn',
|
output = 'moarmour:chestplate_tacnayn',
|
||||||
recipe = {
|
recipe = {
|
||||||
{ 'tac_nayn:tacnayn_rainbow', '', 'tac_nayn:tacnayn_rainbow'},
|
{ 'tac_nayn:tacnayn_rainbow', '', 'tac_nayn:tacnayn_rainbow'},
|
||||||
{'moarmour:chestplate_waffle', 'tac_nayn:tacnayn_rainbow', 'moarmour:chestplate_rainbow'},
|
{'moarmour:chestplate_waffle', 'tac_nayn:tacnayn_rainbow', 'moarmour:chestplate_rainbow'},
|
||||||
{ 'tac_nayn:tacnayn_rainbow', 'tac_nayn:tacnayn_rainbow', 'tac_nayn:tacnayn_rainbow'},
|
{ 'tac_nayn:tacnayn_rainbow', 'tac_nayn:tacnayn_rainbow', 'tac_nayn:tacnayn_rainbow'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'moarmour:helmet_tacnayn',
|
output = 'moarmour:helmet_tacnayn',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'moarmour:helmet_waffle', 'tac_nayn:tacnayn_rainbow', 'moarmour:helmet_rainbow'},
|
{ 'moarmour:helmet_waffle', 'tac_nayn:tacnayn_rainbow', 'moarmour:helmet_rainbow'},
|
||||||
{ 'tac_nayn:tacnayn_rainbow', '', 'tac_nayn:tacnayn_rainbow'},
|
{'tac_nayn:tacnayn_rainbow', '', 'tac_nayn:tacnayn_rainbow'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'moarmour:leggings_tacnayn',
|
output = 'moarmour:leggings_tacnayn',
|
||||||
recipe = {
|
recipe = {
|
||||||
{ 'tac_nayn:tacnayn_rainbow', 'tac_nayn:tacnayn_rainbow', 'tac_nayn:tacnayn_rainbow'},
|
{'tac_nayn:tacnayn_rainbow', 'tac_nayn:tacnayn_rainbow', 'tac_nayn:tacnayn_rainbow'},
|
||||||
{'moarmour:helmet_waffle', '', 'moarmour:helmet_rainbow'},
|
{ 'moarmour:helmet_waffle', '', 'moarmour:helmet_rainbow'},
|
||||||
{ 'tac_nayn:tacnayn_rainbow', '', 'tac_nayn:tacnayn_rainbow'},
|
{'tac_nayn:tacnayn_rainbow', '', 'tac_nayn:tacnayn_rainbow'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'moarmour:shield_tacnayn',
|
output = 'moarmour:shield_tacnayn',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'moarmour:shield_waffle', 'tac_nayn:tacnayn_rainbow', 'moarmour:shield_rainbow'},
|
{ 'moarmour:shield_waffle', 'tac_nayn:tacnayn_rainbow', 'moarmour:shield_rainbow'},
|
||||||
{ 'tac_nayn:tacnayn_rainbow', 'tac_nayn:tacnayn', 'tac_nayn:tacnayn_rainbow'},
|
{'tac_nayn:tacnayn_rainbow', 'tac_nayn:tacnayn', 'tac_nayn:tacnayn_rainbow'},
|
||||||
{ '', 'tac_nayn:tacnayn_rainbow', ''},
|
{ '', 'tac_nayn:tacnayn_rainbow', ''},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
local S = moarmour.get_translator
|
local S = moarmour.get_translator
|
||||||
|
|
||||||
|
minetest.register_alias("armor_addon:ibrogblock", "moarmour:ibrogblock")
|
||||||
minetest.register_node("moarmour:ibrogblock", {
|
minetest.register_node("moarmour:ibrogblock", {
|
||||||
description = S("Ibrog"),
|
description = S("Ibrog"),
|
||||||
drawtype = "glasslike_framed_optional",
|
drawtype = "glasslike_framed_optional",
|
||||||
@ -11,6 +12,7 @@ minetest.register_node("moarmour:ibrogblock", {
|
|||||||
groups = {cracky = 3},
|
groups = {cracky = 3},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_alias("armor_addon:waffleblock", "moarmour:waffleblock")
|
||||||
minetest.register_node("moarmour:waffleblock", {
|
minetest.register_node("moarmour:waffleblock", {
|
||||||
description = S("Waffle Block"),
|
description = S("Waffle Block"),
|
||||||
tiles = {"moarmour_waffleblock.png"},
|
tiles = {"moarmour_waffleblock.png"},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user