Sound Effect

Play a sound effect from a location or to a specific selection of players.

Parameters

ParameterInformationExample

Location

The location to play the Sound Effect at.

world, 196.3, 64, -381.8

Selector

The selection of players who are able to hear the sound. The @e and @s selectors do not work!

@a[distance..5]

Sound

The sound to play, this can also be a custom sound from a resourcepack.

minecraft:entity.pig.ambient

SoundSource

The category of the sound. This can be: AMBIENT, BLOCKS, HOSTILE, MASTER, MUSIC, NUTRAL, PLAYERS, RECORDS, VOICE, WEATHER.

MASTER

Volume

The volume of the sound, needs to be greater than 0.0

2.0

Pitch

The pitch of the sound, needs to be a value between 0.0 and 2.0.

0.5

Delay

The amount of ticks this effect waits after the show starts before its activation.

40

YML Preset
'1':
  Type: SOUND_EFFECT
  Location: world, 0, 0, 0
  Selector: 'null'
  Sound: minecraft:entity.pig.ambient
  SoundSource: AMBIENT
  Volume: 1.0
  Pitch: 1.0
  Delay: 0

Youtube Tutorial

Doesn't exist yet :(

Last updated