Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Attribute modifiers don't reset after death 1.21.1

Open FurrO2 opened this issue 1 year ago • 2 comments

Expected behavior

  1. the player have an attribute ( like this one for exemple : /attribute @p minecraft:generic.max_health modifier add 1 10 add_value
  2. the player died
  3. the attribute is reset because in this case, the attribute is not the Base attribute

here an exemple of vanilla 1.21.1

https://youtu.be/hHGpRTtGZJA

Observed/Actual behavior

  1. the player have an attribute ( like this one for exemple : /attribute @p minecraft:generic.max_health modifier add 1 10 add_value
  2. the player died
  3. the attribute still active ( and somes plugins are affected by that )

Steps/models to reproduce

how to make the bug:

  1. do that command: /attribute @p minecraft:generic.max_health modifier add 1 10 add_value
  2. play in gamemode survival and do some /kill @p
  3. the generic.max_health modifier is not reset and that is the bug

Plugin and Datapack List

no plugins

Paper version

This server is running Paper version 1.21.1-119-master@7cd4f2c (2024-10-03T15:19:34Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)

Other

No response

FurrO2 avatar Oct 03 '24 19:10 FurrO2

Worth mentioning, 24w20a fixed base values not being copied on death, attribute modifiers should still be reset on death to be like in vanilla

masmc05 avatar Oct 03 '24 19:10 masmc05

~~https://minecraft.wiki/w/Java_Edition_24w33a 1.21.2 snapshot, also changes this further...~~ actually, this is a non factor, this only affects living respawns, something spigot basically opted us out of

electronicboy avatar Oct 03 '24 19:10 electronicboy