Ambient Sound Interval Doesn't Work For Custom Sound Events
When using the component "minecraft:ambient_sound_interval": {} and setting the event_name to a custom sound event defined in the mobs entity sounds (in the sounds.json file). The sound will never play.
Steps To Reproduce:
- Download, install and start a world with the supplied pack
- Summon a cow
- Observe that no sheep sounds are played
- There is a sound event 'custom_event' in the resource packs sounds.json file that uses a sheep sound
- There is also an ambient_sound_interval component trying to run this sound constantly but it never plays
- Go into the cows behaviour file and with the comments around the ambient sound intervals so that the hurt sound event is no longer commented
- The cow will now begin to make hurt sounds
Expected Results:
- Custom sound events can be used by the ambient_sound_interval component (as well as all other sound event using components)
Actual Behaviour:
- Custom sound events don't work for the ambient_sound_interval component
- Works As Intended
Gruntastic- 8
- 5
- Confirmed
- 818958
- Multiple
- add-on ambient-sound behavior-pack components sound sound-event sounds
1.18.10.27 Beta - 1.19.11 Hotfix
1.18.10.27 Beta 1.18.10.26 Beta 1.18.0.24 Beta 1.18.0.22 Beta 1.18.0.20 Beta 1.17.40.23 Beta 1.17.40.20 Beta 1.17.30.24 Beta 1.17.30.23 Beta 1.17.30.21 Beta 1.17.11 Hotfix 1.17.20.22 Beta 1.17.20.21 Beta 1.17.10 1.17.10.23 Beta 1.17.1 Hotfix 1.17.10.20 Beta 1.17.0.58 Beta 1.17.0.56 Beta 1.17.0.54 Beta 1.17.0.52 Beta 1.17.0.50 Beta 1.16.230.56 Beta 1.16.230.54 Beta 1.16.220 1.16.230.50 Beta 1.16.220.52 Beta 1.16.220.51 Beta 1.16.220.50 Beta 1.16.210.60 Beta 1.16.201 Hotfix 1.16.210 1.16.221 Hotfix 1.17.0 1.18.2 Hotfix 1.18.30.33 Preview 1.19.20.24 Preview 1.19.11 Hotfix
Created Issue:
Ambient Sound Interval Doesn't Work For Custom Sound Events
When using the component "minecraft:ambient_sound_interval": {} and setting the event_name to a custom sound event defined in the mobs entity sounds (in the sounds.json file). The sound will never play.
Steps To Reproduce:
- Add a new sound event to an entities entity sounds in the sounds.json (something that isn't a preset event).
- Add the ambient_sound_interval component to that mob with the event being the sound event you just added and set the time to a low value.
- The mobs sound event will never play
- Change the event name in both files to ambient
- The sound event will now play
Expected Results:
- Custom sound events can be used by the ambient_sound_interval component (as well as all other sound event using components)
Actual Behaviour:
- Custom sound events don't work for the ambient_sound_interval component
When using the component "minecraft:ambient_sound_interval": {} and setting the event_name to a custom sound event defined in the mobs entity sounds (in the sounds.json file). The sound will never play.
Steps To Reproduce:
Add a new sound event to an entities entity sounds in the sounds.json (something that isn't a preset event).- Add the ambient_sound_interval component to that mob with the event being the sound event you just added and set the time to a low value.
- The mobs sound event will never play
Change the event name in both files to ambient- The
sound event will now playExpected Results:
- Custom sound events can be used by the ambient_sound_interval component (as well as all other sound event using components)
Actual Behaviour:
- Custom sound events don't work for the ambient_sound_interval component
When using the component "minecraft:ambient_sound_interval": {} and setting the event_name to a custom sound event defined in the mobs entity sounds (in the sounds.json file). The sound will never play.
Steps To Reproduce:
- Download, install and start a world with the supplied pack
- Summon a cow
- Observe that no sheep sounds are played
- There is a sound event 'custom_event' in the resource packs sounds.json file that uses a sheep sound
- There is also an ambient_sound_interval component trying to run this sound constantly but it never plays
- Go into the cows behaviour file and with the comments around the ambient sound intervals so that the hurt sound event is no longer commented
- The cow will now begin to make hurt sounds
Expected Results:
- Custom sound events can be used by the ambient_sound_interval component (as well as all other sound event using components)
Actual Behaviour:
- Custom sound events don't work for the ambient_sound_interval component
Resolving temporarily as Awaiting Response. Could you please attach the add-ons you're using to this ticket?
Added example pack and redid the steps to reproduce
It seems like you are trying to use two "hurt" sound components, which can be confusing for the game, resulting in not playing any sound at all. Do you agree?
Perhaps my explanation was confusing:
Is this still an issue in the latest version? If yes, can you please add it to the affected versions (or mention it if you are not the reporter)?
This ticket will automatically reopen when you reply.
Thanks for the additional information. We believe this is working as intended for now, within the current limitations of the system. Our development team have suggested a potential workaround:
Does this enable you to accomplish what you're trying to achieve? If not, do you believe there is a bug at play?
This is still happening. I cannot get custom sound definitions to play using ambient_sound_interval. Any vanilla sound def I try works with no issue.
EDIT: After reading the comments I decided to remove the event_name from the component to see if it would use the sounds.json instead. That worked. Strange thing is that the event wouldn't work when there was no sounds.json present and only the sound_def.json. I'm not sure if this is a bug or how it is supposed to be.