HeroOfTheWinds wrote: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
Mods should generally prefix their sounds with modname_, e.g. given
the mod name "foomod", a sound could be called
"foomod_foosound.ogg"
Sounds are referred to by their name with a dot, a single digit and the
file extension stripped out. When a sound is played, the actual sound file
is chosen randomly from the matching sounds.
When playing the sound "foomod_foosound", the sound is chosen randomly
from the available ones of the following files:
foomod_foosound.ogg
foomod_foosound.0.ogg
foomod_foosound.1.ogg
...
foomod_foosound.9.ogg
So I'd suggest placing your sound in a folder called "sounds" in the mod folder, and just refer to it like so: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 = {
place = {name="crush"}
}
I can't cant thank you enough. My kids will love it when I replace the sounds with fart sounds!!! ;) Seriously though, thank you. I think I'm starting to understand Lua a bit, Lua is new to me and this was an interesting lesson in associative arrays aka dictionaries. I will have to bone up on Lua some more. I am really excited to start learning and digging into what is possible with Minetest. Minetest makes legos look like Popsicle sticks and glue.