mojira.dev
MCPE-223964

Mob killed by a Trident doesnt drop XP if the player who throws the Trident isn't currently in the world

When a mob is killed by a Trident thrown by an offline player, the mob doesn’t drop any XP.

Steps to Reproduce:

  1. Open Realm

  2. Throw Trident inside a Trident auto killer (pushed by piston, for example)

  3. Throw any mob that drops XP inside and check if XP is being dropped.

  4. Logout

  5. Login in the Realm with another account.

  6. Run the auto killer again (pushing pistons to move Trident)

  7. Verify if XP is being dropped

Expected Result: all mob kills should drop XP, if killed by a player, regardless if the player is online or not at the time of kill

Actual Result: XP is only being dropped if the player that accounts for the kill is online in the Realm

Linked issues

Comments 3

This is because the game cannot find a player ID in the world that matches the ID of the trident’s owner, so it does not count as player kill. The same would occur with other projectiles. This has been a well-known behavior for years, and many trident killer designs already address how to safely re-throw tridents in a shared farm.

It started happening to me after Chase the Skyes update

According to GoldenHelmet's comment and further investigation, I'm changing the resolution to "Works as Intended."

Paulo Souza Schaper

(Unassigned)

Confirmed

Multiple

Windows 11, Android

1.21.92 Hotfix

Retrieved