Page 1 of 1

trouble with sound

PostPosted: Wed Sep 26, 2012 15:19
by DanteLives
I'm trying to create a new block with the default wood sound for when it is walked on. I thought this line of code would do it, but causes minetest to crash on loading.

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
sounds = default.node_sound_wood_defaults()


Can someone explain what I'm doing wrong?

PostPosted: Wed Sep 26, 2012 15:19
by PilzAdam
DanteLives wrote:I'm trying to create a new block with the default wood sound for when it is walked on. I thought this line of code would do it, but causes minetest to crash on loading.

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
sounds = default.node_sound_wood_defaults()


Can someone explain what I'm doing wrong?

Add default to depends.txt

PostPosted: Thu Sep 27, 2012 01:36
by DanteLives
Thanks, that solved it. I knew it had to be something simple.