1
0
Fork 0
MineClone2/mods/ITEMS/mcl_armor/trims.lua

46 lines
1.7 KiB
Lua
Raw Normal View History

2023-06-21 08:53:41 +00:00
local mod_registername = minetest.get_current_modname() .. ":"
2023-08-31 15:59:46 +00:00
local S = minetest.get_translator(minetest.get_current_modname())
2023-06-07 22:16:57 +00:00
2023-08-28 13:09:48 +00:00
for _, template_name in pairs(mcl_armor.trims.overlays) do
2023-06-21 08:53:41 +00:00
minetest.register_craftitem(mod_registername .. template_name, {
2023-06-07 22:16:57 +00:00
description = S("Smithing Template '@1'", template_name),
inventory_image = template_name .. "_armor_trim_smithing_template.png",
})
minetest.register_craft({
2023-06-21 08:53:41 +00:00
output = mod_registername .. template_name .. " 2",
2023-06-07 22:16:57 +00:00
recipe = {
2023-06-21 09:21:39 +00:00
{"mcl_core:diamond",mod_registername .. template_name,"mcl_core:diamond"},
2023-06-07 22:16:57 +00:00
{"mcl_core:diamond","mcl_core:cobble","mcl_core:diamond"},
{"mcl_core:diamond","mcl_core:diamond","mcl_core:diamond"},
}
})
end
2023-06-08 08:02:00 +00:00
--temp craft recipies, missing structures
2023-06-07 22:16:57 +00:00
minetest.register_craft({
2023-06-21 08:53:41 +00:00
output = mod_registername .. "eye",
2023-06-07 22:16:57 +00:00
recipe = {
{"mcl_core:diamond","mcl_end:ender_eye","mcl_core:diamond"},
{"mcl_core:diamond","mcl_end:ender_eye","mcl_core:diamond"},
{"mcl_core:diamond","mcl_core:diamond","mcl_core:diamond"},
}
})
minetest.register_craft({
2023-06-21 08:53:41 +00:00
output = mod_registername .. "ward",
2023-06-07 22:16:57 +00:00
recipe = {
{"mcl_core:diamond","mcl_core:diamond","mcl_core:diamond"},
{"mcl_core:diamond","mcl_core:apple_gold_enchanted","mcl_core:diamond"},
{"mcl_core:diamond","mcl_core:diamond","mcl_core:diamond"},
}
})
minetest.register_craft({
2023-06-21 08:53:41 +00:00
output = mod_registername .. "snout",
2023-06-07 22:16:57 +00:00
recipe = {
{"mcl_core:diamond","mcl_core:diamond","mcl_core:diamond"},
{"mcl_core:diamond","mcl_core:goldblock","mcl_core:diamond"},
{"mcl_core:diamond","mcl_core:diamond","mcl_core:diamond"},
}
})