mojira.dev
MC-298745

Unlocking new recipes or changing dimensions replaces the locator bar with the experience bar temporarily

The Bug

Upon unlocking new recipes or changing dimensions with a player in the same dimension, the locator bar can sometimes temporarily be replaced by the experience bar, as if the player is gaining experience.

Steps to Reproduce

Ensure there is another player in the world in the same dimension.

For the recipe:

  1. Run the following commands: /advancement revoke @s everything and /recipe take @s *

  2. Give yourself an item such as a gold ingot: /give @s gold_ingot

  3. Notice that the locator bar gets replaced.

For travelling between dimensions:

  1. Ensure there is another player in the Overworld. Travel to the Nether.

  2. Travel back to the Overworld. Notice that the locator bar gets replaced.

Expected Results

The locator bar would not be replaced if the player is not gaining experience.

Attachments

Comments 11

I can confirm it. Everything works as described

as it’s not explicitly mentioned already; This is true for advancements with rewards.function which causes the locator bar to be very unreliable if you have datapacks that trigger on events.

Can confirm advancements with reward functions hide the bar as well, making mapmaking around the feature very hard.

Actually, any inventory update hides the locator bar:

[media]

https://i.imgur.com/5W4dTtc.gif

1 more comments

Additional information to my 9s video:

I have an inventory_changed advancement that does nothing, but it’s what’s hiding the locator bar

Can confirm in 1.21.8.

Whenever the player gets an achievement, the experience amount is added. Even if this is 0, it is still 'added', marked to sync, then also accepted as a waypoint update by the client. This issue is very important as datapacks with tick functions will disable the locator bar entirely. Can confirm latest snapshot.

Viradex

(Unassigned)

1432458

Community Consensus

Expansion A

Normal

Player, UI

1.21.6 Release Candidate 1, 1.21.7, 1.21.8

Retrieved