simplesoundspec - Uberi/MineTest-API GitHub Wiki

simplesoundspec

Description

A string or table describing a sound file.

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

Syntax

""
"default_place_node"
{}
{name="default_place_node"}
{name="default_place_node", gain=1.0}
⚠️ **GitHub.com Fallback** ⚠️