Java 26.2
Playsound
Position
Entity Player Levelup
Master to @p
/playsound minecraft:entity.player.levelup master @p ~ ~ ~
Audio commands
A /playsound command needs a sound event, a source category and a target before any of the audio arguments make sense. Volume above 1.0 does not make the sound louder — it widens the radius over which it can be heard. Set each argument here and copy the command.
Three things must line up: a valid sound event id, a source category, and a target within range. Volume above 1.0 does not make the sound louder -- it only widens the radius over which it can be heard.
It ties the sound to a volume slider (master, music, record, hostile, player and so on). A player who has muted that category will not hear the sound, so pick the category that matches its purpose.
Sounds use ids like entity.experience_orb.pickup or block.note_block.bell. The editor lets you pick the event so you do not have to memorise the identifier.
Java 26.2
Position
Master to @p
/playsound minecraft:entity.player.levelup master @p ~ ~ ~