Skip to main content
Version: Next

Sound Effect

Plays a sound effect from a location or to a specified selection of players.

Parameters

ParameterDescriptionExample
LocationThe location where the sound will be played. Format:
world, x, y, z
world, 196.3, 64, -381.8
SelectorThe players who can hear the sound. Selectors like @e and @s do NOT work here.@a[distance..5]
SoundThe sound to play. Can be any Minecraft sound or a custom resource pack sound.minecraft:entity.pig.ambient
SoundSourceThe sound category. Valid values:
AMBIENT, BLOCKS, HOSTILE, MASTER, MUSIC, NUTRAL, PLAYERS, RECORDS, VOICE, WEATHER
MASTER
VolumeVolume of the sound. Must be greater than 0.0.2.0
PitchPitch of the sound, between 0.0 and 2.0.0.5
DelayThe number of ticks to wait after the show starts before the effect activates.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 :(