Sounds
Every game sound cmd.play_sound can play, by name.
Every sound cmd.play_sound can play, from the game's own sound effects. Each is a sound the game plays once and stops on its own. None loops, and none is one a scene starts and stops itself. A name, once listed, never changes. The full list is sounds.json.
- Pass the name to
cmd.play_sound. A name not in this list is refused withcommand-args. - Only the player whose game runs the mod hears it. See sounds for the limits.
-- mod.json: "permissions": ["play_sound"]
on("fish_caught", function(e)
cmd.play_sound("item_get")
end)| Name | What it is |
|---|---|
| cursor | The menu cursor's tick |
| menu_close | A menu closing |
| page | The message window turning a page |
| choice | A choice box opening |
| light_on | A light switched on |
| light_off | A light switched off |
| item_get | The jingle of getting an item |
| dig_up | Something dug up |
| tool_get | Taking out a tool |
| tool_break | A tool breaking |
| eat | Eating fruit |
| wear | Changing clothes |