What is the name of the tree harvesting mod?

Post Reply
User avatar
Zedm0n
Member
Posts: 18
Joined: Sun Mar 24, 2013 14:48

What is the name of the tree harvesting mod?

by Zedm0n » Post

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

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

Technic has a Chainsaw that can do that.
http://forum.minetest.net/viewtopic.php?id=2538
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

There is also the Timber Mod.

User avatar
Casimir
Member
Posts: 1165
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

by Casimir » Post

This is the code I use:

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.

User avatar
Zedm0n
Member
Posts: 18
Joined: Sun Mar 24, 2013 14:48

by Zedm0n » Post

Thank you for the replies!

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests