OBSIDREL / DOCS

Documentation

Guides, tutorials and technical references for the Obsidrel ecosystem.

DocumentationRegister a reusable sound

Register a reusable sound

The Core Showcase defines a reusable sound in its sound resources. A documented example reuses a vanilla Minecraft sound event, so no custom OGG is required:

yaml
showcase_ui_click:
  enabled: true
  category: MASTER
  replace: false
  sounds:
    - name: 'minecraft:block.note_block.pling'
      type: EVENT
      volume: 0.8
      pitch: 1.25
      weight: 1
      stream: false
      preload: false
      attenuation-distance: 16

Menus and actions can reference this sound (the Showcase menu uses [sound] showcase_ui_click).

Testing

  1. Keep your sound entry under the supported sound resource directory.
  2. Reference its ID from a menu action.
  3. Reload the Core and build the pack when sound asset definitions change.
  4. Test volume, pitch and whether the event can be heard.

If you introduce custom sound files, verify their paths and pack generation separately; the vanilla event example does not validate arbitrary custom OGG configuration.

Was this article helpful?Loading ratings…

Help us improve Obsidrel documentation. One vote per account and article. Discord AI feedback can also contribute when the answer cites this article.