To get the right print of the debug.txt you must do the following:
Exit minetest completely, go to your home folder/directory, delete the debug.txt file, start minetest up again. Try to create/start a game, leave minetest again, go to your home folder, doubleclick on debug.txt to open it with your default text editor, search for ERROR (most of the time the bottom part), copy all those error lines and paste them here.
The text you posted doestn't look like the needed debug.txt
If you would like to stick to the code you made you must make 3 changes:
Chinchow wrote: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
minetest.register_tool("hatchet:hatchet_wood", {
description = "Wood Hatchet",
inventory_image = "hatchet_hatchet_wood.png",
on_use = function(itemstack, user, pointed_thing)
2 errors in here:
if create_tree(pointed_thing.under, user:get: --> must be _ inventory You need to attach (tree) after inventory (enter is too much)
(tree), 1) then
So it becomes like this --> 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"}, --> the rows must have the same amount of items, so change this in: {"", "default:wood", "default:wood"},
{"", "default:stick", "default:wood"}
}
})
Edit: Deleted the -code- to try to get colors