Template:Sound table

From Minecraft Wiki
Jump to: navigation, search
[view | edit | history | purge]Documentation
Lua logo.svg
This template uses Module:Sound table, a script written in Lua.

A template that automatically generates a table for sounds.
Java Edition table:

SoundSubtitleSourceDescriptionNamespaced IDTranslation keyVolumePitchAttenuation
distance
?????????

Bedrock Edition table:

SoundSourceDescriptionNamespaced IDVolumePitch
??????

Minecraft Dungeons table:

SoundDescription
??

Arguments

Parameter Function
type bedrock or dungeons. Inserting a table for Bedrock or Dungeons, see above for corresponding output ("load on low memory" = "preload"), if defined has to be defined in the first call (no need to define it on consecutive calls).
nocat Stops table from inserting categories, if defined has to be defined in the first call (no need to define it on consecutive calls).
sound The sound, set to "-" if none in this event.
sound2 - sound20 Additional sounds.
subtitle The subtitle, set to "-" if none in this event.
source The sound category (slider in the sounds menu). Should be one of the following:
  • Master Volume (or master)
  • Music (or music)
  • Jukebox/Note Blocks (or record)
  • Weather (or weather)
  • Hostile Creatures (or hostile)
  • Friendly Creatures (or neutral)
  • Players (or player)
  • Blocks (or block)
  • Ambient/Environment (or ambient)
  • Voice/Speech (or voice)
  • Sound (or sound)

"Sound" is exclusive to Bedrock Edition.

description When the sound plays. Defaults to the subtitle, if it is provided.
id The sound event/namespaced ID (code formatting automatically added).
translationkey The subtitle key/translation key (code formatting automatically added), set to "-" if none in this event.
volume The volume the game plays this sound event at.
pitch The pitch the game plays this sound event at.
distance The attenuation distance the game plays this sound event at.
foot Inserting the table end, always has to be defined in the last call.

Predefined tables

[view | edit | history | purge]The above documentation is transcluded from Template:Sound table/doc.