Page 1 of 1

What is the name of the tree harvesting mod?

PostPosted: Mon Mar 25, 2013 11:27
by Zedm0n
You know the one that chops down the whole tree and gives you a pile of wood instead of having to harvest each block in the tree?



Zedm0n

PostPosted: Mon Mar 25, 2013 11:33
by kaeza
Technic has a Chainsaw that can do that.
http://forum.minetest.net/viewtopic.php?id=2538

PostPosted: Mon Mar 25, 2013 11:36
by PilzAdam
There is also the Timber Mod.

PostPosted: Mon Mar 25, 2013 11:46
by Casimir
This is the code I use:
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
-- Nodes in the group plant_dig go into the diggers inventory if the node below is dug
minetest.register_on_dignode(function(pos, node, digger)
    if digger ~= nil then
        if minetest.get_item_group(node.name, "plant_dig") ~= 0
--        or node.name == "default:papyrus" or node.name == "default:cactus"
        then
            local np = {x = pos.x, y = pos.y + 1, z = pos.z}
            local nn = minetest.env:get_node(np)
            if minetest.get_item_group(nn.name, "plant_dig") ~= 0 and node.name == nn.name then
                minetest.node_dig(np, nn, digger)
            end
        end
    end
end)

Add the group "plant_dig" to default:tree and it will work for trees too.

PostPosted: Mon Mar 25, 2013 13:13
by Zedm0n
Thank you for the replies!