Page 1 of 1

[Nodes Sounds] Random footstep and dig sounds.

PostPosted: Sun Nov 11, 2012 15:13
by Linkpy
Hello,

I have a node named "Stone" and I want play random sound when I walk on it and when I dig it.

How can i do this ?

Thanks !

PostPosted: Sun Nov 11, 2012 15:21
by PilzAdam

PostPosted: Sun Nov 11, 2012 15:27
by Linkpy
Thanks you very mush !

PostPosted: Sun Nov 11, 2012 15:31
by Linkpy
And, do you know how to change the sound played when I place a block ?

PostPosted: Sun Nov 11, 2012 15:46
by PilzAdam
Linkpy wrote:And, do you know how to change the sound played when I place a block ?

Yea, just replace the default_place_node.*.ogg in the sounds folder in the default mod in minetest_game.

PostPosted: Sun Nov 11, 2012 16:15
by Linkpy
The problem is : I want different sounds for different block ( like in Minecraft ), I can't define a sound for a block ?

PostPosted: Sun Nov 11, 2012 16:52
by PilzAdam
Linkpy wrote:The problem is : I want different sounds for different block ( like in Minecraft ), I can't define a sound for a block ?

You can define it: https://github.com/celeron55/minetest/blob/master/doc/lua_api.txt#L1358
But you cant define the place sound.

PostPosted: Sun Nov 11, 2012 17:47
by Linkpy
Ok ! Thanks you !