trouble with sound

DanteLives
Member
 
Posts: 25
Joined: Fri Jul 13, 2012 06:35

trouble with sound

by DanteLives » Wed Sep 26, 2012 15:19

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?
 

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

by PilzAdam » Wed Sep 26, 2012 15:19

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
 

DanteLives
Member
 
Posts: 25
Joined: Fri Jul 13, 2012 06:35

by DanteLives » Thu Sep 27, 2012 01:36

Thanks, that solved it. I knew it had to be something simple.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 7 guests

cron