Skip to content
JasperLorelai edited this page May 19, 2024 · 11 revisions

Source Code

effect: sound

Description:

Plays a Minecraft sound. You can use the Soundboard resource to assist you in setting up this effect.

Configuration:

Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.

Option Description Type Default
sound Sound name. Can be a resource pack's sound name. String entity.llama.spit
volume The volume of the sound. Float 1
pitch The pitch of the sound. (0-2) Float 1
category Define a sound category. String "master"

Example:

sound:
    spell-class: ".instant.DummySpell"
    effects:
      Sound:
        position: target
        effect: sound 
        sound: entity.zombie_villager.converted
        volume: 4
        pitch: 0.8
Clone this wiki locally