So i already made it where a config file is generated for my mod, but i don't know how to access the values i stored in it and store those into variables to use around my code. How would i do so?
So i'm trying to play sound at a player when they die using
Minecraft.getMinecraft().getSoundHandler().playSound(sound);
but it only plays at the players location, so if they for example fall into the void and die, the sound plays in the void, so they can't hear it.
How can i play a sound without it playing at the players location?
I'm trying to make a mod for forge 1.8.9 that plays a custom sound when a certain word is received in chat. So far it works in single player, but on servers it doesn't play the sound. Iv'e been everywhere online trying to find a fix but nothing help. Also i'm very new to modding.