owl_tech/tools/init.lua

77 lines
2.3 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)
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 },
2022-12-29 13:07:24 +01:00
})
2022-12-27 10:26:26 +01:00
--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-29 13:07:24 +01:00
})
--Work mortar
minetest.register_craftitem("owl_tech:wrench", {
description = S("Wrench"),
_doc_items_longdesc = S("Use for crafte and some confige machins"),
inventory_image = "owl_tech_wrench.png",
stack_max = 1,
groups = { craftitem = 1,hand_wrench=1},
})
--Crafte wrench
minetest.register_craft({
type = "shaped",
output = "owl_tech:work_mortar",
recipe = {
{"owl_tech:iron_ingot","","owl_tech:iron_ingot"},
{"owl_tech:iron_ingot","owl_tech:iron_ingot","owl_tech:iron_ingot"},
{"","owl_tech:iron_ingot",""}
}
2022-12-25 19:02:57 +01:00
})