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 with command-args.
  • Only the player whose game runs the mod hears it. See sounds for the limits.
main.lua
-- mod.json: "permissions": ["play_sound"]
on("fish_caught", function(e)
  cmd.play_sound("item_get")
end)
NameWhat it is
cursorThe menu cursor's tick
menu_closeA menu closing
pageThe message window turning a page
choiceA choice box opening
light_onA light switched on
light_offA light switched off
item_getThe jingle of getting an item
dig_upSomething dug up
tool_getTaking out a tool
tool_breakA tool breaking
eatEating fruit
wearChanging clothes