/playsound help

Status
This thread has been locked.

Blockzy

Feedback score
0
Posts
18
Reactions
4
Resources
0
Okay, so I'm doing configuration for a plugin right now and I put a sound (/playsound) for when someone clicks on an option in the gui I have and basically I think the sound is only played at 0, 0 because whenever I get away from there and click the option in the gui, console says the sound is too far away to be heard

How do I make it so it will play wherever the player is?

This is the command I'm using currently: [console] playsound entity.enderman.teleport ambient @p (or %player_name%) part of place holder api
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Blockzy

Feedback score
0
Posts
18
Reactions
4
Resources
0
/playsound <sound> <source> <targets> [x] [y] [z] [volume] [pitch] [minimumVolume]
this is the actual command so you could either edit the x y z or just turn the volume up

I would recommend
/playsound entity.enderman.teleport ambient @p 1.0 0.5 1.0
What does that command do exactly? Why 1.0 0.5 1.0?
 

Blockzy

Feedback score
0
Posts
18
Reactions
4
Resources
0
1.0 - volume
0.5 - pitch
1.0 - min volume
look at the command
So I should still keep [console] playsound entity.enderman.teleport ambient @p and just put 1.0 0.5 1.0 at the end? Like [console] playsound entity.enderman.teleport ambient @p 1.0 0.5 1.0
 

Blockzy

Feedback score
0
Posts
18
Reactions
4
Resources
0
yeah, test it out and see if it sounds right.
It doesn't work this shows up in console:

[20:45:03] [Server thread/INFO]: An entity is required to run this command here
[20:45:03] [Server thread/INFO]: Expected whitespace to end one argument, but found trailing data
[20:45:03] [Server thread/INFO]: ....0 0.5 1.0Æ<--[HERE]
 

Blockzy

Feedback score
0
Posts
18
Reactions
4
Resources
0
I didn't see this before but where did you get ambient from?
View attachment 284243
This still comes up after removing ambient:

[20:51:20] [Server thread/INFO]: Gilberttt issued server command: /crates
[20:51:21] [Server thread/INFO]: An entity is required to run this command here
[20:51:21] [Server thread/INFO]: Incorrect argument for command
[20:51:21] [Server thread/INFO]: ....teleport @p 1.0 0.5 1.0Æ<--[HERE]
 

Blockzy

Feedback score
0
Posts
18
Reactions
4
Resources
0
try
[console] playsound entity.enderman.teleport ~ ~ ~ 10 1 1[DOUBLEPOST=1572832847][/DOUBLEPOST]also where ambient was try replacign that spot with blocks or music
This error comes up:

[21:00:36] [Server thread/INFO]: An entity is required to run this command here
[21:00:36] [Server thread/INFO]: Incorrect argument for command
[21:00:36] [Server thread/INFO]: ....teleport ~ ~ ~ 10 1 1Æ<--[HERE]
 

Blockzy

Feedback score
0
Posts
18
Reactions
4
Resources
0
/playsound entity.enderman.teleport block @p ~ ~ ~ 10 1

I checked it over and nothing in this command is out of place it should work[DOUBLEPOST=1572833531][/DOUBLEPOST]lmk if it works
Nope

[21:14:15] [Server thread/INFO]: An entity is required to run this command here
[21:14:15] [Server thread/INFO]: Expected whitespace to end one argument, but found trailing data
[21:14:15] [Server thread/INFO]: ...~ ~ ~ 10 1Æ<--[HERE]
 

Blockzy

Feedback score
0
Posts
18
Reactions
4
Resources
0
try adding another 1 at the end so it's
10 1 1
Nope

[21:17:39] [Server thread/INFO]: An entity is required to run this command here
[21:17:39] [Server thread/INFO]: Expected whitespace to end one argument, but found trailing data
[21:17:39] [Server thread/INFO]: ...~ ~ 10 1 1Æ<--[HERE]
 

Blockzy

Feedback score
0
Posts
18
Reactions
4
Resources
0
then it is most likely a version issue, because I don't see a problem with that command
I'm using 1.14.4 I doubt it is a version error. I tried it on 1.13 before and doesn't work as well.[DOUBLEPOST=1572834327][/DOUBLEPOST]I figured it out!!!!
I did playsound entity.experience_orb.pickup ambient %player_name% 0 0 0 1 0.5 1
 
Last edited:

frxq

Developer
Supreme
Feedback score
27
Posts
479
Reactions
186
Resources
3
if your using deluxemenus, you can just use [sound] lol
 
Status
This thread has been locked.
Top