addBasicSound

Adds a basic sound to this resource pack. A basic sound will be saved to the first (or a new) sound list of the same namespace of the sound.

Return

The modified/added sound list.

Parameters

soundEvent

The sound.


fun addBasicSound(key: Key, block: SoundEvent.() -> Unit): SoundList

Builds and adds a basic sound to this resource pack.

Return

The added sound list.

Parameters

key

The sound key.


fun addBasicSound(soundKey: Key): SoundList

Adds a basic sound to this pack.

Return

The added sound list.

Parameters

soundKey

The key of the sound.