mojira.dev
MC-256693

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:

  1. Download the provided structure block .nbt file that contains an empty structure that has an allay holding a gold block within it.

[media]
  1. Create a world and place the .nbt file into the generated\minecraft\structures folder.

  2. 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}
  3. Open the structure block and click the "LOAD" button to load the structure.

  4. Obtain a note block and some gold blocks.

  5. 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.

  6. Throw some gold blocks on the ground and wait for the allay to collect them.

  7. 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.

Attachments

Comments 3

Confirmed. I've rewritten this report to clearly state the problem here and how you can easily go about reproducing it. I've also provided a video that demonstrates this behavior. I had to narrate the video as I didn't have time to annotate it in Adobe Premiere Pro like I normally would. Hope this is okay. 🙂

[media]

Can confirm in 23w04a

This issue was present in 1.19.2, but no longer occurs in versions above or equal to 22w42a. This issue was fixed in 22w42a. I'm not sure why both 1.19.3 and 23w04a as marked as affected, because I was unable to reproduce this problem in both of these versions. I've provided video evidence that this problem was broken in 1.19.2 and fixed in 22w42a.

[media][media]

JuniorJedi256

(Unassigned)

Confirmed

Platform

Normal

Mob behaviour, Structures

allay, structure_block

1.19.2, 1.19.3 Release Candidate 3, 1.19.3, 23w04a

22w42a

Retrieved