[Mod] Timber [0.1] [timber]

User avatar
Axel
Member
Posts: 15
Joined: Wed Sep 05, 2012 18:50

by Axel » Post

deivan wrote:This mod, I love this mod, don't is working any more, I think the "minetest.register_on_dignode" is overwrite by the common/init.lua.

Have a plan to make this operational again? I try some tests when I have some time... :-/
There was a change in the api, so I've adapted to the new api

Code: Select all

local timber_nodenames={"default:jungletree", "default:papyrus", "default:cactus", "default:tree"}

minetest.register_on_dignode(function(pos, oldnode, digger)
    local i=1
    while timber_nodenames[i] ~= nil do
        if oldnode.name == timber_nodenames[i] then
            local npos = { x=pos.x, y=pos.y+1, z=pos.z }
            local nnode = minetest.env:get_node(npos)
            if nnode.name == timber_nodenames[i] then
                minetest.node_dig(npos, nnode, digger)
            end
        end
        i = i+1
    end
end)

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

Thanks, I test it ASAP. :D

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

I updated this mod to give the product of a node when this one is dig, the current version clone the node in the scenario and this don't is the correct, a example, the vines:vine drop vines:vines but this mod make a vines:vine again.
I have a plan to counter-attack the growing trees mod, I think, who make bigger (and evil) trees with many side trunks, my plan is to hunt every neighbour of a trunk if is going up, like a natural tree. :D
Last edited by deivan on Wed Apr 10, 2013 01:26, edited 1 time in total.

User avatar
VanessaE
Moderator
Posts: 4611
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

Maybe you can make this work with trees from the Moretrees mod also, as its tree models also have many branches in all directions (including diagonal)
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

I am working to cover any from the group trees and more vines and other natural growing plant's mods. :D

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

Ok, I have another mod. :D nt (new timber). Making a new topic to it.

User avatar
VoidLord
Member
Posts: 46
Joined: Sun Jan 20, 2013 16:07
Location: SPACE! WHAT!?

by VoidLord » Post

Great Mod! Saves tools, saves time.
</randomtextcrap>
</forumposthing>
</body>
</html>
/0

Soudon
Member
Posts: 167
Joined: Wed Apr 08, 2015 17:14
In-game: Soudon

Re:

by Soudon » Post

cornernote wrote:Added a change so the leaves fall too:
https://github.com/cornernote/minetest- ... r/init.lua
How do I make it that it sends the leaves and the wood to my inventory without dropping to the ground, its a pain running around clicking each one that drops.

User avatar
LionsDen
Member
Posts: 530
Joined: Thu Jun 06, 2013 03:19

Re: Re:

by LionsDen » Post

Soudon wrote:How do I make it that it sends the leaves and the wood to my inventory without dropping to the ground, its a pain running around clicking each one that drops.
Sounds like you need the item_drop mod by PilzAdam.

viewtopic.php?t=2656

User avatar
Hybrid Dog
Member
Posts: 2783
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: Re:

by Hybrid Dog » Post

LionsDen wrote:
Soudon wrote:How do I make it that it sends the leaves and the wood to my inventory without dropping to the ground, its a pain running around clicking each one that drops.
Sounds like you need the item_drop mod by PilzAdam.

viewtopic.php?t=2656
Don't use PilzAdam's one, it's not up to date.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
tomlukeywood
Member
Posts: 87
Joined: Sat Oct 10, 2015 13:13
IRC: tomlukeywood
In-game: tomlukeywood
Location: earth

Re: [Mod] Timber [0.1] [timber]

by tomlukeywood » Post

The Download link appears to be broken

Soudon
Member
Posts: 167
Joined: Wed Apr 08, 2015 17:14
In-game: Soudon

Re: [Mod] Timber [0.1] [timber]

by Soudon » Post

tomlukeywood wrote:The Download link appears to be broken
Its all good I had downloaded a mega mod pack before had the plzadam itemdrop and it works well.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], gpcf and 5 guests