Flint tools and crafte

This commit is contained in:
ConfidentOwl 2023-01-01 21:53:45 +03:00
parent ba3ba0ec94
commit 629e6cc89a
1 changed files with 166 additions and 2 deletions

View File

@ -436,7 +436,7 @@ for i, value in ipairs(metals_ore_array) do
damage_groups = { fleshy = 1, },
punch_attack_uses = metals_ore_array[i][6],
},
_repair_material = "mcl_core:iron_ingot",
_repair_material = "owl_tech:"..metals_ore_array[i][1].."_ingot",
_mcl_toollike_wield = true,
_mcl_diggroups = {
hoey = { speed = 6, level = 4, uses = 251 }
@ -815,4 +815,168 @@ minetest.register_craft({
output = "owl_tech:iron_ingot",
recipe = "mcl_core:iron_ingot",
cooktime = 10,
})
})
----------------------------------------------------------------------------------------
--Flint tools
--pick "mcl_core:flint"
minetest.register_tool("owl_tech:pick_flint", {
description = ("Flint Pickaxe"),
_doc_items_longdesc = "Pick from owl tech",
inventory_image = "(owl_tech_pick_head.png^[colorize:#00264d:128)^owl_tech_pick_stick.png",
wield_scale = wield_scale,
groups = { tool=1, pickaxe=1, dig_speed_class=3, enchantability=5 },
tool_capabilities = {
-- 1/1.2
full_punch_interval = 0.83333333,
max_drop_level=3,
damage_groups = {fleshy=3},
punch_attack_uses = 75,
},
sound = { breaks = "default_tool_breaks" },
_repair_material = "mcl_core:flint",
_mcl_toollike_wield = true,
_mcl_diggroups = {
pickaxey = { speed = 4, level = 3, uses = 150 }
},
})
minetest.register_craft({
output = "owl_tech:pick_flint",
recipe = {
{"mcl_core:flint","mcl_core:flint","mcl_core:flint"},
{"","mcl_core:stick",""},
{"","mcl_core:stick",""}
}
})
--axe
minetest.register_tool("owl_tech:axe_flint", {
description = S("Flint axe"),
_doc_items_longdesc = "Axe owl tech",
inventory_image = "(owl_tech_axe_head.png^[colorize:#00264d128)^owl_tech_pick_stick.png",
wield_scale = wield_scale,
groups = { tool=1, axe=1, dig_speed_class=3, enchantability=5 },
tool_capabilities = {
full_punch_interval = 1.25,
max_drop_level=3,
damage_groups = {fleshy=9},
punch_attack_uses = 75,
},
on_place = make_stripped_trunk,
sound = { breaks = "default_tool_breaks" },
_repair_material = "mcl_core:flint",
_mcl_toollike_wield = true,
_mcl_diggroups = {
axey = { speed = 4, level = 3, uses = 155 }
},
})
minetest.register_craft({
output = "owl_tech:axe_flint",
recipe = {
{"mcl_core:flint","mcl_core:flint"},
{"mcl_core:flint","mcl_core:stick"},
{"","mcl_core:stick"}
}
})
minetest.register_craft({
output = "owl_tech:axe_flint",
recipe = {
{"mcl_core:flint","mcl_core:flint"},
{"mcl_core:stick","mcl_core:flint"},
{"mcl_core:stick"}
}
})
--Sword
minetest.register_tool("owl_tech:sword_flint", {
description = ("Flint sword"),
_doc_items_longdesc = "Owl tech sword",
inventory_image = "(owl_tech_sword_blade.png^[colorize:#00264d:128)^owl_tech_sword_stick.png",
wield_scale = wield_scale,
groups = { weapon=1, sword=1, dig_speed_class=3, enchantability=5 },
tool_capabilities = {
full_punch_interval = 0.625,
max_drop_level=3,
damage_groups = {fleshy=5},
punch_attack_uses = 150,
},
sound = { breaks = "default_tool_breaks" },
_repair_material = "mcl_core:flint",
_mcl_toollike_wield = true,
_mcl_diggroups = {
swordy = { speed = 4, level = 3, uses = 150 },
swordy_cobweb = { speed = 4, level = 3, uses = 150 }
},
})
minetest.register_craft({
output = "owl_tech:sword_flint",
recipe = {
{"mcl_core:flint"},
{"mcl_core:flint"},
{"mcl_core:stick"}
}
})
--shovel
minetest.register_tool("owl_tech:shovel_flint", {
description = S("Flint shovel"),
_doc_items_longdesc = "Owl tech shovel",
_doc_items_usagehelp = shovel_use,
inventory_image = "(owl_tech_shovel_head.png^[colorize:#00264d:128)^owl_tech_shovel_stick.png",
wield_scale = wield_scale,
groups = { tool=1, shovel=1, dig_speed_class=3, enchantability=5 },
tool_capabilities = {
full_punch_interval = 1,
max_drop_level=3,
damage_groups = {fleshy=3},
punch_attack_uses = 66,
},
on_place = make_grass_path,
sound = { breaks = "default_tool_breaks" },
_repair_material = "mcl_core:flint",
_mcl_toollike_wield = true,
_mcl_diggroups = {
shovely = { speed = 4, level = 3, uses = 132 }
},
})
minetest.register_craft({
output = "owl_tech:shovel_flint",
recipe = {
{"mcl_core:flint"},
{"mcl_core:stick"},
{"mcl_core:stick"}
}
})
--Hoe
minetest.register_tool("owl_tech:hoe_flint", {
description = S("Flint hoe"),
--_tt_help = hoe_tt.."\n"..S("Uses: @1", uses.iron),
_doc_items_longdesc = "Owl tech hoe",
inventory_image = "(owl_tech_hoe_head.png^[colorize:#00264d:128)^owl_tech_hoe_stick.png",
wield_scale = mcl_vars.tool_wield_scale,
on_place = hoe_on_place_function(75),
groups = { tool=1, hoe=1, enchantability=5 },
tool_capabilities = {
full_punch_interval = 0.5,
damage_groups = { fleshy = 1, },
punch_attack_uses = 75,
},
_repair_material = "mcl_core:flint",
_mcl_toollike_wield = true,
_mcl_diggroups = {
hoey = { speed = 4, level = 3, uses = 150 }
},
})
minetest.register_craft({
output = "owl_tech:hoe_flint",
recipe = {
{"mcl_core:flint", "mcl_core:flint"},
{"", "mcl_core:stick"},
{"", "mcl_core:stick"}
}
})
minetest.register_craft({
output = "owl_tech:hoe_flint",
recipe = {
{"mcl_core:flint", "mcl_core:flint"},
{"mcl_core:stick", ""},
{"mcl_core:stick", ""}
}
})