Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allays lose ability to dance when chunks unload. #11751

Open
Jjman739 opened this issue Dec 17, 2024 · 1 comment
Open

Allays lose ability to dance when chunks unload. #11751

Jjman739 opened this issue Dec 17, 2024 · 1 comment
Labels
status: accepted Disputed bug is accepted as valid or Feature accepted as desired to be added. version: 1.21.3 Game version 1.21.3 version: 1.21.4

Comments

@Jjman739
Copy link

Expected behavior

If an allay is left in an unloaded chunk, when you come back and put music in a jukebox nearby, it will dance, allowing it to be duplicated if its cooldown has passed.

Observed/Actual behavior

Once an allay has been unloaded, it will no longer be able to dance.

Steps/models to reproduce

  1. Place an allay in a cell outside of spawn chunks. Do not play music.
  2. Move far enough away to unload the chunk.
  3. Return to the allay.
  4. Place a jukebox right next to the allay and play a music disc in it. Note that the allay does not dance.

Plugin and Datapack List

I tested on two servers:

  1. No plugins. Datapacks: vanilla, bukkit, paper, vanilla tweaks - graves.
  2. Plugins: Skript. Datapacks: vanilla, bukkit, paper.

Paper version

Checking version, please wait...
This server is running Paper version 1.21.3-81-master@da71382 (2024-12-03T14:58:13Z) (Implementing API version 1.21.3-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.3-65-7e789e8 (MC: 1.21.3)

(Output is the same for both servers tested.)

Other

The allays are still able to dance if the server restarts while a jukebox is being played next to them. When you load back in, they will be dancing.

@papermc-sniffer papermc-sniffer bot added the version: 1.21.3 Game version 1.21.3 label Dec 17, 2024
@Owen1212055 Owen1212055 added status: accepted Disputed bug is accepted as valid or Feature accepted as desired to be added. version: 1.21.4 and removed status: needs triage labels Dec 26, 2024
@Owen1212055
Copy link
Member

This issue is due to Moonrise calling the tracking behavior of an entity multiple times when chunk statuses upgrade. This causes the Allay game event listener to not reregister their listeners, causing it to not respond to the jukebox (as long as the allay has not moved)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepted Disputed bug is accepted as valid or Feature accepted as desired to be added. version: 1.21.3 Game version 1.21.3 version: 1.21.4
Projects
None yet
Development

No branches or pull requests

2 participants