Add initial craft recipe for hammers

This commit is contained in:
teknomunk 2024-11-16 09:10:33 -06:00
parent 569329da56
commit f2de62f013
1 changed files with 19 additions and 0 deletions

View File

@ -121,6 +121,13 @@ local uses = {
diamond = 1562, diamond = 1562,
netherite = 2031, netherite = 2031,
} }
local materials = {
wood = "group:wood",
stone = "group:cobble",
iron = "mcl_core:iron_ingot",
gold = "mcl_core:gold_ingot",
diamond = "mcl_core:diamond",
}
local SPEAR_RANGE = 4.5 local SPEAR_RANGE = 4.5
@ -260,6 +267,18 @@ minetest.register_tool("vl_weaponry:hammer_netherite", {
shovely = { speed = 6, level = 6, uses = uses.netherite } shovely = { speed = 6, level = 6, uses = uses.netherite }
}, },
}) })
local s = "mcl_core:stick"
local b = ""
for t,m in pairs(materials) do
minetest.register_craft({
output = "vl_weaponry:hammer_"..t,
recipe = {
{ m, b, m },
{ m, s, m },
{ b, s, b },
}
})
end
--Spears --Spears
minetest.register_tool("vl_weaponry:spear_wood", { minetest.register_tool("vl_weaponry:spear_wood", {