#Menus sound problem

1 messages · Page 1 of 1 (latest)

remote grotto
#

well i made a menu and i added this as an opening sound
open_commands:

  • '[console] minecraft:playsound minecraft:entity.experience_orb.pickup master @p ~ ~ ~ 1 0.3' but it says in the console
    [23:53:24 INFO]: Itsmplayer issued server command: /commands
    [23:53:24 INFO]: The sound is too far away to be heard
wide pier
#

use %player_name% instead of @p

remote grotto
#

still

#

when i do the command /minecraft:playsound minecraft:entity.experience_orb.pickup master @p ~ ~ ~ 1 0.3 it works fine in any place

remote grotto
#

I think it has to do smh with the coordinates

crisp creek
#

Do you have the Player Expansion downloaded?
If not, /papi ecloud download Player

remote grotto
#

I have it

remote grotto
#

But still doesn't work

exotic berry
# remote grotto I think it has to do smh with the coordinates

I'm pretty sure it is because of the coordinates. You could use the %player_x/y/z% placeholders and see if that works. Try:

minecraft:playsound minecraft:entity.experience_orb.pickup master %player_name% %player_x% %player_y% %player_z% 1 0.3 as your command in the menu.

#

If that still doesn't work, it might be that the console is running the command in a different world than the player. In that case you might have to do something like execute in minecraft:%player_world% run playsound minecraft:entity.experience_orb.pickup master %player_name% %player_x% %player_y% %player_z% 1 0.3, but take this with a grain of salt; I haven't tested it.

remote grotto
#

I will open it now to try it