1. Play the level-up sound for everyone
A success cue — the sound comes from each player’s own position
/playsound minecraft:entity.player.levelup master @a
What it does Will play sound "Level up" to all players.
Play an in-game sound for a player, with adjustable volume and pitch
The sound IDs suggested on this page are for Java Edition — Bedrock uses a different set of IDs (e.g. random.orb instead of minecraft:entity.experience_orb.pickup) — if you choose Bedrock, the system will warn you to double-check the ID
The examples below come out of the same generator as the form above, so the commands and explanations always match what the tool produces. Copy one and adjust it from there
A success cue — the sound comes from each player’s own position
/playsound minecraft:entity.player.levelup master @a
What it does Will play sound "Level up" to all players.
Turn on positional mode and the sound really comes from that spot — players further away hear it quieter
/playsound minecraft:block.bell.use block @a ~ ~ ~ 2 1
What it does Will play sound "Bell ring" to all players with the sound coming from coordinates ~ ~ ~ (volume 2, pitch 1).
A pitch below 1 lowers the sound and above 1 raises it — a quick way to make a stock sound feel different
/playsound minecraft:entity.experience_orb.pickup player @s
What it does Will play sound "Pick up XP orb" to themselves (whoever runs the command).
This is the first example above, run through every edition and version this tool supports. Versions that produce the same result share a row
/playsound minecraft:entity.player.levelup master @a
/playsound minecraft:entity.player.levelup @a