How can i play a sound for only one player?

Started by Kiddvverde on

Topic category: Help with Minecraft modding (Java Edition)

Active 9 months ago
Joined Jun 2024
Points:
49

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
How can i play a sound for only one player?

I want to play a sound that only one player could hear, i tried to do this with the execute command block but it didn't worked.

Active 8 months ago
Joined Oct 2021
Points:
488

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 14
You can use the following:…
Sun, 06/16/2024 - 01:17

You can use the following:

Execute command / 
  create text with
    "playsound minecraft:ambient.cave master "
    Get display name of <Event/target entity>
at x: <x> y: <y> z: <z>