1

I originally wanted to attach the /playsound random.orb, when the scoreboard objective Bow got a value of 1 which was tracking stat.useItem.minecraft.bow, So when the player shot an arrow the sound would play, but if the player got too far away, the sound would not be heard.

I then tried to summon a Mine cart Command Block relative to the player using @p ,which would activate using an also spawned redstone block which would be removed instantly however the /summon and /fill commands don't support the @p or @a. Or any way to track player coordinates then use them to spawn blocks.

I couldn't think of another way to make the sound occur everywhere when a player/one player fires the bow.

4
  • Couldn't you summon the sound relative to the player?
    – Caleb
    Jul 25, 2014 at 23:37
  • I tried using /playsound random.orb @p But still if you move away from the command block itself the sound gets too quite to hear Jul 25, 2014 at 23:40
  • That's interesting, I thought that the sound would play with the player.
    – Caleb
    Jul 25, 2014 at 23:42
  • It's what i thought would happen, Which is why I'm stuck wondering if there is some way to get the sound to remotely play at the selected player. Jul 25, 2014 at 23:44

2 Answers 2

2

Is this what you put in? /playsound <sound> <player> [x] [y] [z] [volume] [pitch] [minimumVolume]

Also note that you can change the volume /\ and the minimum volume /. Using those to it should be heard by the player. Note also that you can do it to a persific player so if you want it to be heard by one player the have a low volume and target the player.

If that does not work, I have a other solution.

Sorce: Minecraft Forums

1
  • 1
    This has actually worked, Just set the volume to 10000000.0 Jul 28, 2014 at 12:05
0

If you want it to always work at the position of the player, you could also do this:

execute as <player> at <player> run playsound <sound> <player> ~ ~ ~ [volume] [pitch] [minimumVolume]

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .