mojira.dev
MCPE-49418

Phantoms do not drop their exp in the place where they die

When a Phantom is killed, its drops fall in another place rather the same place where they die. And like many drops that fall from high above they do fall scattered to the ground and it's annoying to gather.

From the comments:

Steps to Reproduce:

  1. Wait 4 days and 4 nights for a phantom to spawn OR /summon phantom ~ ~20 ~ (summon a few)

  2. Kill the phantoms, preferably (but not required) with a Smite V axe or anything that one-shots them.

  3. Watch for XP drops.

Observed Results:
The XP drops from a seemingly random place nearby. Phantom membranes drop as expected from the phantom's death location.
YouTube video

Expected Results:
The XP drops from the phantom's death location, as does the phantom membranes.

Linked issues

Attachments

Comments 6

Yeah, it's annoying.

This affects 1.14.30 and 1.14.60 as well.

Steps to Reproduce:

  1. Wait 4 days and 4 nights for a phantom to spawn OR /summon phantom ~ ~20 ~ (summon a few)

  2. Kill the phantoms, preferably (but not required) with a Smite V axe or anything that one-shots them.

  3. Watch for XP drops.

Observed Results:
The XP drops from a seemingly random place nearby. Phantom membranes drop as expected from the phantom's death location.
YouTube video

Expected Results:
The XP drops from the phantom's death location, as does the phantom membranes.

Affects 1.16.100

Test environment:
Setup a repeating command block to place glowstone anywhere a xp_orb was found, and a chain command block to immediately kill xp_orb entites if the glowstone placement was successful. Then killed phantoms in various surrounds as described below.

Test results:

  • Phantom killed in enclosed 1 * 1 * 1 space: xp drops inside that space.

  • Phantom killed in a corner up against a ceiling: xp drops in that corner up against the ceiling.

  • Phantom killed in a 1 * 20 * 1 column: xp drops at +8 Y above the phantom

  • Phantom killed up against a broad, flat ceiling: xp drops up against the ceiling 4 blocks away in the X, Z direction the player is facing.

  • Spawned and then immediately killed phantoms on a stone block while rotating around it: xp spawned in an X, Z radius 4 ring 8 blocks above the kill spot, as show in the screenshot below.

    [media]
  • With the command blocks turned off, spawned and then immediately killed phantoms on the stone block shown above while standing on it: xp spawned up in the air instead of being immediately absorbed.

Conclusion:

Phantom XP spawns at the location the phantom dies server-side but before it registers to the client it tries to move away 4 blocks horizontally in the direction the player is facing and +8 Y vertically.

Looking back at this issue again, the explanation is obvious: it's a direct consequence of MCPE-45081 and MCPE-74963.

Isn't this just a duplicate of MCPE-74963? Why does this have to be a separate issue/bug?

Georgie Lynn Rivera Ayala

(Unassigned)

299544

Confirmed

Multiple

mob

1.17.30.20 Beta, 1.16.210.50 Beta, 1.16.0.59 Beta, 1.12.1, 1.12.0, 1.16.100, 1.16.201 Hotfix, 1.19.0

Retrieved