Would be a cool feature for making mobs or something. Since doing something like spawnPigZombie, and making a cool thing, but they sound like a pigman is weirdddd.
Hi,
What you are trying to do is possible, but not your very own sound. You have to use the in-game sounds. So example, if you wanted to make a certain item play a sound of the player getting hurt, you would do this code:
function useItem(x, y, z, itemId, blockId, side)
{
if(itemId==??)
Level.playSound(getPlayerX(), getPlayerY(), getPlayerZ(), "random.hurt", 100, 30);
}
Its that simple. If you need a list of the sound commands, let me know.
Yes, as of blocklauncher 1.4.6.
Custom sounds are not possible but playing ecisting sounds is.
then how does ksymc's pc bgm modscrupt work? just have the sounds in a folder point tge modscript to that and make it so the modscript plays sounds when certaim actioms are done
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
It actually might.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumCheck out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Ohhhh... I feel stupid. I thought you could like replace it like how you do with textures
Willing to work on Android apps or multi-platform games, see profile bio for information.
Founder and CEO of Temena Development
Twitter: @TemenaPE
Instagram: @ItsLiterallyMath
What you are trying to do is possible, but not your very own sound. You have to use the in-game sounds. So example, if you wanted to make a certain item play a sound of the player getting hurt, you would do this code:
function useItem(x, y, z, itemId, blockId, side)
{
if(itemId==??)
Level.playSound(getPlayerX(), getPlayerY(), getPlayerZ(), "random.hurt", 100, 30);
}
Its that simple. If you need a list of the sound commands, let me know.
Christian BJ~
then how does ksymc's pc bgm modscrupt work? just have the sounds in a folder point tge modscript to that and make it so the modscript plays sounds when certaim actioms are done