ON_PLAY_SOUND event doesn't capture most sounds played in Minecraft. It captures only sounds played by avatars or UIs. The following video describes this issue.
This script outputs the sound id that ON_PLAY_SOUND captures and plays a sound when pressing a key. In above video, the script outputs only sounds played by itself and UIs.
In this conversation, @KitCat962 said that this may be a 1.20.4 bug.
How to reproduce
Run above script.
Emit sounds by doing something such as eating something, placing a block, shooting an arrow.
You will see that the script doesn't output anything.
Expected behavior
According to this conversation, ON_PLAY_SOUND event captures most sounds including eating, placing, shooting sounds.
Description
ON_PLAY_SOUND
event doesn't capture most sounds played in Minecraft. It captures only sounds played by avatars or UIs. The following video describes this issue.The video that describes this issue (This link has expiration date. If you can't watch the video, please watch in the conversation thread.)
In this video, I used the following script for the test.
This script outputs the sound id that
ON_PLAY_SOUND
captures and plays a sound when pressing a key. In above video, the script outputs only sounds played by itself and UIs.In this conversation, @KitCat962 said that this may be a 1.20.4 bug.
How to reproduce
Expected behavior
According to this conversation,
ON_PLAY_SOUND
event captures most sounds including eating, placing, shooting sounds.Enviroments