Can someone tell me how to make my mod work?
Ok so some of you may have noticed I got some code from Pilzadams farming mod so how do I get this to work? here is the code
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_tool("hatchet:hatchet_wood", {
description = "Wood Hatchet",
inventory_image = "hatchet_hatchet_wood.png",
on_use = function(itemstack, user, pointed_thing)
if create_tree(pointed_thing.under, user:get:inventory
(tree), 1) then
itemstack:add_wear(35535/50)
return itemstack
end
end
})
minetest.register_craft({
output = "hatchet:hatchet_wood",
recipe = {
{"default:wood", "default:wood"},
{"", "default:stick", "default:wood"}
}
})