Page 1 of 3

[Mod] Timber [0.1] [timber]

PostPosted: Sun Apr 08, 2012 22:01
by Jeija
This is the equivalent to the minecraft timber mod.
An easy 2-minute-coding mod.

YouTube (of Minecraft Version)
Works with
- Jungletree
- Tree
- Papyrus
- Cactus

Download
V 0.1 as .zip

License: GPLv3
Dependencies: none

PostPosted: Sun Apr 08, 2012 22:06
by Death Dealer
awesome:D

PostPosted: Sun Apr 08, 2012 22:09
by Jordach
jeija. really, really cool. i like this.

PostPosted: Sun Apr 08, 2012 22:42
by LolManKuba
Finally, I posted about a mod request for a timber mod! Thanks jeija!

PostPosted: Sun Apr 08, 2012 22:45
by LolManKuba
Oh yes I forgot you should edit your post and put (Converted by Jeija from the Minecraft Mod by TehKrush)

PostPosted: Sun Apr 08, 2012 22:45
by Death Dealer
LolManKuba wrote:Oh yes I forgot you should edit your post and put (Converted by Jeija from the Minecraft Mod by TehKrush)

no he shouldnt. this is not minecraft no ones cares.

PostPosted: Sun Apr 08, 2012 22:48
by sdzen
more importantly should jeija ask tehkrush for permission before converting it?

PostPosted: Sun Apr 08, 2012 22:49
by Death Dealer
i dont think he converted it, he just coded it with lua (the idea), minecraft is java. do you think celeron asked notch if he could make minetest no.

PostPosted: Sun Apr 08, 2012 22:49
by LolManKuba
This mod works 100% it even drops the trees to the ground like in Minecraft.

PostPosted: Sun Apr 08, 2012 23:00
by Jeija
Honestly, I don't think this idea is sooo extremely original and therefore I didn't ask for permission. You cannot really say converted, because I didn't even have a look at the code of that minecraft guy.

PostPosted: Mon Apr 09, 2012 00:21
by sdzen
okay then :P nice mod

PostPosted: Mon Apr 09, 2012 00:31
by jordan4ibanez
freakin sweet! :D & you dont need permission you didnt copy any code!

PostPosted: Mon Apr 09, 2012 00:31
by bgsmithjr
Great mod!!

PostPosted: Mon Apr 09, 2012 02:57
by bgsmithjr
bgsmithjr wrote:Great mod!!

I thought this made trees fall when you removed the base. Sorry this isn't for me.
It only made the middle trunk fall as an item, is it supposed to be like that?

PostPosted: Mon Apr 09, 2012 05:47
by Jeija
Yes. Also works with cactus, papyrus and jungletrees.
That's the whole thing the mod does.
- Just watch the YouTube video -

PostPosted: Mon Apr 09, 2012 09:59
by sfan5
Nice!

PostPosted: Thu Apr 12, 2012 14:48
by kddekadenz
I changed the mod, so you get the items initially (no drops)

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
timber_nodenames={"default:jungletree", "default:papyrus", "default:cactus", "default:tree"}

minetest.register_on_dignode(function(pos, node, digger)
    local i=1
    while timber_nodenames[i]~=nil do
        if node.name==timber_nodenames[i] then
            np={x=pos.x, y=pos.y+1, z=pos.z}
            while minetest.env:get_node(np).name==timber_nodenames[i] do
                minetest.env:remove_node(np)
                digger:get_inventory():add_item('main', timber_nodenames[i])
                np={x=np.x, y=np.y+1, z=np.z}
            end
        end
        i=i+1
    end
end)

PostPosted: Sun May 27, 2012 22:20
by LolManKuba
Can I add this to a upcoming modpack named "Realistic Modpack"?

PostPosted: Tue May 29, 2012 06:59
by Jeija
Of course you can!
Would be nice if you kept a text saying that it was made by me in the forum post (As you have right now :D)

PostPosted: Tue May 29, 2012 21:19
by LolManKuba
Thanks, and if you have anymore mods that are kind've realistic please tell me.

PostPosted: Tue Jul 10, 2012 03:37
by Josh
I just tried it way faster way of getting wood! Although i had to make a tar.gz file of the mod because i have linux but it works fine
thanks jeija!

PostPosted: Tue Jul 10, 2012 05:42
by kddekadenz
Josh wrote:I just tried it way faster way of getting wood! Although i had to make a tar.gz file of the mod because i have linux but it works fine
thanks jeija!


Lol, you don't have to turn a zip into a tar.gz, just because you are using Linux :o

PostPosted: Tue Jul 10, 2012 09:30
by lesliev
Great work in just 16 lines!

PostPosted: Tue Jul 10, 2012 10:23
by Topywo
kddekadenz wrote:I changed the mod, so you get the items initially (no drops)

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
timber_nodenames={"default:jungletree", "default:papyrus", "default:cactus", "default:tree"}

minetest.register_on_dignode(function(pos, node, digger)
    local i=1
    while timber_nodenames[i]~=nil do
        if node.name==timber_nodenames[i] then
            np={x=pos.x, y=pos.y+1, z=pos.z}
            while minetest.env:get_node(np).name==timber_nodenames[i] do
                minetest.env:remove_node(np)
                digger:get_inventory():add_item('main', timber_nodenames[i])
                np={x=np.x, y=np.y+1, z=np.z}
            end
        end
        i=i+1
    end
end)


If I add default:stone and change y+1 to y-1 I'm able to dig down. I'm wondering why sometimes it goes 26 down, other times 120 or so, so basically it digs down until a random amount. The total amount of collected stone is already displayed in my inventory after the first digging. So I know how far down I'll go.There was still stone to dig, so changing nodes didn't cause it.

Anyone?

PostPosted: Tue Jul 10, 2012 14:50
by Jeija
Topywo, I think that is caused by a "bug" in minetest, to be more precise:
Minetest only loads some chunks around you.
If a mod tries to acces a node that is too far away, in an unloaded chunk, minetest simply ignores that. That happens in this mod, as the stone below you seems to be unloaded as well as in the mesecons mod where too big structures don`t work.

PostPosted: Tue Jul 10, 2012 15:17
by Topywo
Jeija wrote:Topywo, I think that is caused by a "bug" in minetest, to be more precise:
Minetest only loads some chunks around you.
If a mod tries to acces a node that is too far away, in an unloaded chunk, minetest simply ignores that. That happens in this mod, as the stone below you seems to be unloaded as well as in the mesecons mod where too big structures don`t work.


Thanks for explaining it!

PostPosted: Wed Jul 11, 2012 18:07
by neo
Great mod !

PostPosted: Wed Jul 11, 2012 19:01
by redcrab
love it ... should be working only with a special tool ... for instance a mese axe

PostPosted: Fri Jul 13, 2012 01:55
by cornernote
chainsaw!

PostPosted: Fri Jul 13, 2012 07:20
by neo
cornernote wrote:chainsaw!


MUhahahaha.... YAY !