mojira.dev
MC-253134

Allays from older worlds don't duplicate

The bug

Allays spawned in older versions (pre-22w24a) cannot duplicate.

To reproduce

  1. Open a world in 1.19.

  2. Summon an allay.

  3. Upgrade the world to 22w24a.

  4. Try to duplicate the allay using a jukebox and an amethyst shard.

Observed result

The allay did not duplicate, because the CanDuplicate tag was not set to 1.

Expected result

The allay would be able to be duplicated.

Original description

Allays created by world generation (those found in mansions or outposts) or the place command don´t duplicate when given an amethist shard in the 9 block radius of a jutebox with a disk playing. But allay´s made by the allay spawn egg do duplicate under the same condition.

Linked issues

Comments 11

I was unable to reproduce this. Allay's duplicated as normal upon world generation

From what it seems, Allays that were generated/spawned pre-1.19.1 aren't able to duplicate. However, any newly generated/spawned allays seem to be able to duplicate just fine. I'm having this same issue in another world where the allays I have were generated before 1.19.1.

This is the case for any allay in any world generated pre-22w24a. Steps to reproduce

1. Create a world in 1.19
2. Upgrade that world to snapshot 22w24a
3. Locate a naturally generated allay from a mansion or an outpost.
3. Play jukebox and try to give allay an amethyst shard.

Hmmm, it seems that allays from previous versions don't have their CanDuplicate NBT tag set to 1, but rather set to 0. This might be caused by a missing datafixer, similar to MC-251314.

While this bug is not fixed, there is a workaround. Execute the following command:

/data merge entity @e[type=allay,limit=1,sort=nearest] {CanDuplicate:1b}

Remove the amethyst shard from its hand and give it the shard again. It should duplicate now.

This also apply to allay generated by summon command (the tag missing or default to 0).

1 more comments

I attempted to use that command that was written to fix my Allay's : But it did not fix anything.
@e[type=allay,limit=1,sort=nearest] {CanDuplicate:1b}

As I can't find any post relating to 1.19 (not snapshots), i'll put this here, or if it's the wrong place, please let me know.
I created a 1.19 world a few days ago (brand new world, not upgraded), and the Allays will not duplicate at all, or even dance near the Jukebox, i tried ones i got from a mansion (brought them through nether portals to get them back to my base, and even tried spawn egged ones, i also tried the command mentioned above, and nothing works with them, unless it is a bug with 1.19 itself, I don;t know, but i can't get them to duplicate at all.

 @unknown Allay duplication was introduced in 22w24a, which was released after 1.19. There is no allay duplication in 1.19.

Allays in my existing world will not duplicate as of 1.20.10. I tried making a new world and allays (both naturally spawned and generated with an egg) could duplicate fine. But on my existing world, no allays can be duplicated, whether or not they have ever been attached to a lead. This also includes allays from before AND after the update that originally added duplication. Not sure if this should be re-opened or it's a new bug. (This is on a BDS if that makes a difference, although it is completely vanilla, no mods.)

spanishSpaniard

elvendorke

Confirmed

Very Important

Datafixer

allay, allay-duplication, data-fixer

22w24a

1.19.1 Pre-release 1

Retrieved