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:
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
- Keep your sound entry under the supported sound resource directory.
- Reference its ID from a menu action.
- Reload the Core and build the pack when sound asset definitions change.
- 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.