Package: Hammermod
Missing dependency on mcl_core
mcl_core
yet ill will works with both and thanks for helping me
Why did you undo the changes you made in your Github repo?
You might like this code better btw:
local ingredients = { stick = "default:stick", ironBlock = "default:steelblock", ironIngot = "default:steel_ingot", } if minetest.get_modpath("mcl_core") then ingredients = { stick = "mcl_core:stick", ironBlock = "mcl_core:ironblock", ironIngot = "mcl_core:iron_ingot", } end minetest.register_craft({ output = "hammermod:steel_hammer", recipe = { {ingredients.ironIngot, ingredients.ironBlock, ingredients.ironIngot}, {"", ingredients.stick, ""}, {"", ingredients.stick, ""}, }, })
i did what you proposed me and i reduced the durability of the hammer .
Sorry, looks like my code has a flaw. I've made a PR that fixes it and also adds dependencies for you: https://github.com/cultom/hammermod/pull/2
thanks you for helping me i'm new in programmation . and Happy new year!
Two things:
Cropped the image for you but I'll let you arrange the screenshots how you want
Missing dependency on
mcl_core
yet ill will works with both and thanks for helping me
Why did you undo the changes you made in your Github repo?
You might like this code better btw:
i did what you proposed me and i reduced the durability of the hammer .
Sorry, looks like my code has a flaw. I've made a PR that fixes it and also adds dependencies for you: https://github.com/cultom/hammermod/pull/2
thanks you for helping me i'm new in programmation . and Happy new year!
Two things:
Cropped the image for you but I'll let you arrange the screenshots how you want