Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:MC/Sound table/doc

Template page
Revision as of 21:43, 4 August 2024 by imported>Im Wired In (Fix broken sound table)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Documentation header Template:Lua Template:Deprecated

A template that automatically generates a table for sounds.
Template:Edition table: Template:Sound table Historical table: Template:Sound table Template:Edition table: Template:Sound table Template:Edition and Template:Edition table: Template:Sound table

Arguments

Parameter Function
type Template:Code. Inserting a table with a type parameter, see above for corresponding output, if defined has to be defined in the first call (no need to define it on consecutive calls).
forcecollapsed Forces the table to begin collapsed. If defined, it must be defined in the first call (no need to define it on consecutive calls).
templatepage If specified, creates links in the top-left corner of the page to view, edit, and view the talk page of the link in the argument. Used for subpages of this template and other places where sound tables are transcluded onto other pages.
title Text to put at the top of the table instead of "Sounds".
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.
rowspan How many rows the Sound column for this row should take up.
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)
  • Entity-Dependent (or dependent)
  • None (or none or -)

"Sound" is exclusive to Bedrock Edition and historical Java Edition versions. "Entity-Dependent" is for entities that play sounds, such as footsteps, using their own sound sources. "None" is exclusive to unused sound events.

overridesource Set to any value for the source to use what is given to the template, rather than one of the values above.
description When the sound plays.
id The sound event/resource location (code formatting automatically added). Do not add anything other than the id here; that goes in idnote.
idnote Text, such as a reference, to be added after the id, without code formatting.
translationkey The subtitle key/translation key (code formatting automatically added), set to "-" if none in this event. Do not add anything other than the translation key here; that goes in translationkeynote.
translationkeynote Text, such as a reference, to be added after the translation key, without code formatting.
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


es:Plantilla:Tabla de sonido/doc fr:Modèle:Tableau de son/doc it:Template:Tabella dei suoni/doc ja:テンプレート:Sound table/doc ko:틀:Sound table/doc lzh:模板:Sound table/doc pt:Predefinição:Tabela de som/doc ru:Шаблон:Таблица звука/док th:แม่แบบ:Sound table/doc uk:Шаблон:Звукова таблиця/док zh:Template:Sound table/doc