Jump to content

Recommended Posts

Posted

Hello guys. I have another noobish question in Minecraft Modding. I'm basicly creating my own mod. Adding my own mobs, ai, sounds. Ofcourse all that in eclipse. So i've decied to make my own mob with my own sounds. I downloaded sounds i needed and converted into .ogg format. I've writen inside my EntityName file this:

protected String getLivingSound() {
return "mob.mymob.bip";
}
protected String getHurtSound() {
return "mob.mymob.hurt";
}
protected String getDeathSound() {
return "mob.mymob.death";
}

And i dont know where to put my own sounds.

I tried to put them in [resources/sound3/mob/mymob]. It didnt worked in the game. I couldnt hear mymob make those sounds. I tried to put sounds in [resources/newsound/mob/mymob]. It didnt worked too! I dont know what to do, maybe you know?

Please Help me!

Thanks alot if you do. 

Posted

I've never worked with sounds before, but usually making a resource location should work for this. Put the stuff into src/assets/yourmodid/sounds, and then use this code:

private static final ResourceLocation HurtSound = new ResourceLocation("yourmodid:sounds/whateverthefileiscalled.ogg");

 

Then just return HurtSound for getHurtSound(), and repeat this for all 3 parts.

If you really want help, give that modder a thank you.

 

Modders LOVE thank yous.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.