Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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. 

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.