mojira.dev
MCPE-158739

Allay plays incorrect sound upon login

An allay holding an item typically plays a different set of sounds (lower pitch) than an allay not holding an item (higher pitch). However, upon logging out and logging back in, an allay holding an item will play the lower pitch sounds. They still act correctly as an allay holding an item, picking up the matching item and delivering it to the player, but the sounds are incorrect. This is rectified by taking and giving back the item. 

Linked issues

Comments 2

This is a parity issue. On Java, allays correctly play their ambient sound when worlds are reloaded. It is a nuisance to have to fix several allays' emotional states every time the world is reloaded. Also, on Bedrock if you travel far enough away from your allay it will also switch to its depressed ambient sound upon return. It is an interesting issue because the ambient sound logic in their behavior file is quite straightforward:

"minecraft:ambient_sound_interval": {
    "value": 5.0,
    "range": 5.0,
    "event_name": "ambient",
    "event_names": [
       {
           "event_name": "ambient.tame",
           "condition": "query.is_using_item"
       },
       {
           "event_name": "ambient",
           "condition": "!query.is_using_item"
       }
    ]
{{}}}

They should play the correct ambient sound directly based off the Molang query.is_using_item state every time the world loads and this behavior component is initialized. Very strange.

The issue has become worse with the 1.20.60.23 release. Allays never play their happy sound effect anymore - they always sound sad, even when given a fresh item to hold.

Lovely611

(Unassigned)

822547

Confirmed

Multiple

1.19.2 Hotfix, 1.19.73

Retrieved