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

46 lines
1.7 KiB
Lua
Raw Normal View History

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