How can i play a sound for only one player?

Started by Kiddvverde on

Topic category: Help with Minecraft modding (Java Edition)

Active 6 months ago
Joined Jun 2024
Points:
105

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 1 year ago
Joined Oct 2021
Points:
571

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>