Skip to content

[1.21.4] EntityResurrectEvent cancels totem's event but keeps player's inventory. #11780

@SundOfficial

Description

@SundOfficial

Expected behavior

"The EntityResurrectEvent cancels the Totem of Undying's effect, causing the player to die and their inventory to drop."

Observed/Actual behavior

"The EntityResurrectEvent cancels the Totem of Undying's effect, causing the player to die but incorrectly results in their inventory being kept."

Steps/models to reproduce

  • Cancel the event: EntityResurrectEvent
  • Use a Totem in the off-hand or hold it in the main hand.
  • Let the player die.

Plugin and Datapack List

/plugins
Server Plugins (0):

/datapack list
There are 3 data pack(s) enabled: [vanilla (built-in)], [file/bukkit (world)], [paper (built-in)]
There are no more data packs available

Paper version

/version
This server is running Paper version 1.21.4-22-main@188124b (2024-12-23T05:02:42Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)

Other

Discussed in the #hardfork-discussion channel on Discord, @lynxplay shared (https://pastes.dev/GwLU6zdVPr) as a possible fix, but no PR has been submitted yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.version: 1.21.4Game version 1.21.4

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions