mirror of
https://github.com/cultom/hammermod.git
synced 2025-01-06 12:27:30 +01:00
Update init.lua
This commit is contained in:
parent
4186ff08be
commit
6ae9387823
15
init.lua
15
init.lua
@ -26,20 +26,22 @@ minetest.register_tool("hammermod:steel_hammer", {
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
local ingredients = {
|
local ingredients
|
||||||
stick = "default:stick",
|
|
||||||
ironBlock = "default:steelblock",
|
|
||||||
ironIngot = "default:steel_ingot",
|
|
||||||
}
|
|
||||||
|
|
||||||
if minetest.get_modpath("mcl_core") then
|
if minetest.get_modpath("mcl_core") then
|
||||||
ingredients = {
|
ingredients = {
|
||||||
stick = "mcl_core:stick",
|
stick = "mcl_core:stick",
|
||||||
ironBlock = "mcl_core:ironblock",
|
ironBlock = "mcl_core:ironblock",
|
||||||
ironIngot = "mcl_core:iron_ingot",
|
ironIngot = "mcl_core:iron_ingot",
|
||||||
}
|
}
|
||||||
|
elseif minetest.get_modpath("default") then
|
||||||
|
ingredients = {
|
||||||
|
stick = "default:stick",
|
||||||
|
ironBlock = "default:steelblock",
|
||||||
|
ironIngot = "default:steel_ingot",
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if ingredients then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "hammermod:steel_hammer",
|
output = "hammermod:steel_hammer",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -48,6 +50,7 @@ minetest.register_craft({
|
|||||||
{"", ingredients.stick, ""},
|
{"", ingredients.stick, ""},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
local steelHammerDigs = {}
|
local steelHammerDigs = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user