Page 1 of 1

Using sounds with own blocks

PostPosted: Thu Jun 30, 2016 01:02
by basil60
Hi
I'm look at making my own block, and want to associate a custom sound with that block.

Is there any documentation that shows how to do that?

Basil

Re: Using sounds with own blocks

PostPosted: Thu Jun 30, 2016 11:50
by KCoombes

Re: Using sounds with own blocks

PostPosted: Fri Jul 01, 2016 00:15
by basil60
Thank you. What about a simple tutorial for a noob, with examples?

Re: Using sounds with own blocks

PostPosted: Fri Jul 01, 2016 00:55
by KCoombes
Open up your minetest folder and navigate to minetest/games/minetest_game/default/sounds - in here you will find every sound file used by the vanilla game - notice they are ALL .ogg files - this is the only filetype you can use with Minetest.

I have just (!) discovered the minetest.override_item function as a way to override certain node definitions (like the sound used or the drop) - see https://www.youtube.com/watch?v=FtJ9EQ6 ... Mz9lgUnuVF for an example/tutorial (thanks NathanS !)