Using sounds with own blocks

basil60
Member
 
Posts: 54
Joined: Sat Sep 12, 2015 22:07

Using sounds with own blocks

by basil60 » Thu Jun 30, 2016 01:02

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
 

KCoombes
Member
 
Posts: 278
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt or Rudilyn

Re: Using sounds with own blocks

by KCoombes » Thu Jun 30, 2016 11:50

 

basil60
Member
 
Posts: 54
Joined: Sat Sep 12, 2015 22:07

Re: Using sounds with own blocks

by basil60 » Fri Jul 01, 2016 00:15

Thank you. What about a simple tutorial for a noob, with examples?
 

KCoombes
Member
 
Posts: 278
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt or Rudilyn

Re: Using sounds with own blocks

by KCoombes » Fri Jul 01, 2016 00:55

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 !)
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 36 guests

cron