VoxeLibre/mods/ITEMS/mcl_armor/trims.lua

64 lines
2.3 KiB
Lua
Raw Normal View History

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