play sound %sound:STRING% [at|to] %who:PLAYER% — Statements

play sound %sound:STRING% [at|to] %who:PLAYER%
Player1.0.0

Description

Plays a sound to a player at their location. Accepts Bukkit Sound enum names or custom sound strings. Dots are converted to underscores for enum lookup.

Examples

play sound "entity_experience_orb_pickup" to player

All Possible Usages (3)

Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.

play sound <sound> <who>
play sound <sound> at <who>
play sound <sound> to <who>

Related (Player)