What is the name of the tree harvesting mod?

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

What is the name of the tree harvesting mod?

by Zedm0n » Mon Mar 25, 2013 11:27

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
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Mon Mar 25, 2013 11:33

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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

by PilzAdam » Mon Mar 25, 2013 11:36

There is also the Timber Mod.
 

User avatar
Casimir
Member
 
Posts: 1101
Joined: Fri Aug 03, 2012 16:59

by Casimir » Mon Mar 25, 2013 11:46

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.
 

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

by Zedm0n » Mon Mar 25, 2013 13:13

Thank you for the replies!
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 11 guests

cron