Allays that are holding items ignore note blocks when loaded from structure blocks
The Bug:
Allays that are holding items ignore note blocks when loaded from structure blocks.
Saving a structure containing an allay (using a structure block with "Include Entities" on) and loading it in another world causes the allay in the imported structure to ignore note blocks in the position that the structure had a note block. (Newly spawned allays work as expected) Haven't tested whether reloading the world or using a note block in a different position works.
Steps to Reproduce:
- Download the provided structure block .nbt file that contains an empty structure that has an allay holding a gold block within it. mc-256693.nbt

- Create a world and place the .nbt file into the generated\minecraft\structures folder.
- Place down a structure block with the appropriate data already inputted into it by using the command provided below.
/setblock ~1 ~ ~1 minecraft:structure_block{ignoreEntities:0b,mode:"LOAD",name:"minecraft:mc-256693",posX:1,posY:0,posZ:1,powered:0b,showboundingbox:1b,sizeX:5,sizeY:5,sizeZ:5} - Open the structure block and click the "LOAD" button to load the structure.
- Obtain a note block and some gold blocks.
- Place down the note block and right-click it while the allay is nearby in an attempt to make the allay like the note block.
- Throw some gold blocks on the ground and wait for the allay to collect them.
- Take note of how the allay ignores the note block and decides to drop the held items at your location instead.
Observed Behavior:
Allays ignore note blocks.
Expected Behavior:
Allays would not ignore note blocks.
2022-10-20, 03:11 PM
2023-05-12, 07:00 PM
2023-05-12, 07:00 PM
8
4