owl_tech/tools/init.lua

60 lines
1.8 KiB
Lua
Raw Normal View History

2022-12-25 19:02:57 +01:00
--List of all tools like ( hammers , file ets)
local S = minetest.get_translator(minetest.get_current_modname())
local name = minetest.get_current_modname()
local path = minetest.get_modpath(name)
--owl_tech_work_hammer_head.png owl_tech_hoe_stick.png
2022-12-27 10:26:26 +01:00
--Work hammer
2022-12-25 19:02:57 +01:00
minetest.register_craftitem("owl_tech:work_hammer", {
description = S("Work hammer"),
_doc_items_longdesc = S("First way to get plater"),
inventory_image = "owl_tech_work_hammer_head.png^owl_tech_hoe_stick.png",
2022-12-26 18:30:12 +01:00
stack_max = 1,
2022-12-25 19:02:57 +01:00
groups = { craftitem = 1 },
2022-12-26 18:30:12 +01:00
})
--Crafte work hammer
minetest.register_craft({
type = "shaped",
output = "owl_tech:work_hammer",
recipe = {
{"owl_tech:iron_ingot","owl_tech:iron_ingot",""},
{"owl_tech:iron_ingot","owl_tech:iron_ingot",""},
{"","mcl_core:stick",""}
}
})
2022-12-27 10:26:26 +01:00
--Work file
2022-12-26 18:30:12 +01:00
minetest.register_craftitem("owl_tech:work_file", {
description = S("Work file"),
_doc_items_longdesc = S("First way to get plater"),
inventory_image = "owl_tech_work_file.png",
stack_max = 1,
groups = { craftitem = 1 },
})
--Crafte worlk file
minetest.register_craft({
type = "shaped",
output = "owl_tech:work_file",
recipe = {
{"","owl_tech:iron_ingot",""},
{"","owl_tech:iron_ingot",""},
{"","mcl_core:stick",""}
}
2022-12-27 10:26:26 +01:00
})
--Work mortar
minetest.register_craftitem("owl_tech:work_mortar", {
description = S("Work mortar"),
_doc_items_longdesc = S("First way to get dusts"),
inventory_image = "owl_tech_mortar.png",
stack_max = 1,
groups = { craftitem = 1 },
}) --"mcl_core:stone"
--Crafte worlk file
minetest.register_craft({
type = "shaped",
output = "owl_tech:work_mortar",
recipe = {
{"","owl_tech:iron_ingot",""},
{"mcl_core:stone","owl_tech:iron_ingot","mcl_core:stone"},
{"mcl_core:stone","mcl_core:stick","mcl_core:stone"}
}
2022-12-25 19:02:57 +01:00
})