mojira.dev
MC-12013

Experience Orbs invisible for one second right after spawning

While testing MC-4167 discovered that XP Orbs would be invisible for one second "switching location" like described in MC-4167.

To reproduce:

  • Kill a mob, watch how no XP is visible right after the corps disappears in smoke particles

  • Mine a diamond ore, xp appears 1 second after mining it

  • breed animals

  • throw a bottle o' enchanting, same effect

Related issues

Comments

kumasasa

Confirmed.

migrated

Most noticeable to me when mining (the sounds play and the XP bar fills, but no orbs are visible; occasionally I'll see one if I'm far enough away), but I have observed with XP from mobs as well.

migrated

This is really annoying, I can't tell whether or not I picked up all the XP from something I killed and I have to go back.

migrated

Still in 13w25b

migrated

Still in 1.6 prerelease.

migrated

still in 1.6.2 pre-release

migrated

Confirmed for 13w37b.

clamlol

present in 13w39b. I briefly saw some after I killed the ender dragon, but they disappeared before they hit the ground. Annoying because I'm not sure I collected it all.

migrated

Just wanted to point out that this issue describes XP being invisible for one second, but many linked duplicates are describing different behavior, including intermittent or no visibility at all.

Personally, in 39b I have never seen any XP.

migrated

Confirmed in 1.7.1

migrated

Confirmed for 13w48b.

migrated

Still a concern in 14w08a.

migrated

Confirmed for 14w11b

marcono1234

Confirmed for 14w21b

migrated

Solution (MCP Names):
in NetClientPlayHandler's handleExpOrb or something similar, the coordinates of the xp orb are retrieved from the packet and used in the constructor of a new EntityXPOrb. However, those coordinates are still 32x the actual coordinates (to aid in network communication)
So simply divide each coordinate by 32.0D and the problem is fixed

migrated

Confirmed for 14w29b.

migrated

Confirmed for release 1.8

migrated

michael

Confirmed

experience, experience_orb, invisible

Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.1, Snapshot 13w16a, Snapshot 13w16b, ..., Minecraft 14w11b, Minecraft 1.7.6-pre1, Minecraft 14w21b, Minecraft 14w29b, Minecraft 1.8

Minecraft 1.8.1-pre3

Retrieved