Sound

Action that plays the sound

Structure

ParamDescriptionDefaultValue type
typeSound name. Here you can find all of them: Sound typesString
locationSound format playback location: "world,x,y,z"Player locationString
pitchThe pitch of the volume1.0Float
volumeHow loud the sound1.0Float

Examples

Example json format:
{type="SOUND_TYPE_NAME" location="world,0,0,0"}

Command to add an action for an easter egg:
/ee action add <egg_id> sound {type="ENTITY_PLAYER_LEVELUP" location="world,0,60,-133"}

Example config

title = "Eggs Category"
hidePlayerData = false
category = "category2"

"0" {
  location = "world, 0.0, 1.0, 0.0"
  type = "BLOCK"
  id = 0
    actions {
        sound {
            type: "ENTITY_PLAYER_LEVELUP"
            location: "world, -99.47, 4.0, -380.93"
        }
    }
}