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

Ok, I've got my entity hooked up with a hurt sound like this:

protected String getHurtSound() {
	return ReferenceRF.RES_PRE + "mob.mummy.hurt";
}

 

And whenever I hit my entity, this pops up in the console:

[19:55:49] [Client thread/WARN]: Unable to play empty soundEvent: realmoffera:mob.mummy.hurt

 

Here's what my json looks like:

{
"mob.mummy.say": {
	"category": "hostile",
	"sounds":
	[{
		"name": "mob/mummy/say", "stream": false
	}]
},
"mob.mummy.death": {
	"category": "hostile",
	"sounds":
	[{
		"name": "mob/mummy/death", "stream": false
	}]
},
"mob.mummy.hurt": {
	"category": "hostile",
	"sounds":
	[{
		"name": "mob/mummy/hurt", "stream": false
	}]
}
}

 

Finally here's my file tree:

81mdlHG.png

 

I'm 100% sure that my sounds are in the .ogg format.

Kain

What was the solution?  I have an almost identical issue.  I'm using latest Forge (.1047) and am getting an "unable to play soundEvent" error.  I have assets folder path that I have double checked (and yes it uses the plural "sounds" not "sound").  My sounds.json is pretty much just copied from the wolf portion of the vanilla sounds.json and the sounds themselves are copied from wolf as well so are valid .ogg files.  (I'll change to my own later, just using wolf to debug this issue). 

 

So what was solution in your case?  Thanks!

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.