Mojira Archive
MC-179940

Player's attributes reset back to default values upon respawning

The Bug

When you modify your attributes and then die, all attributes reset back to the default values.

How to reproduce

  1. Change your max health attribute: /attribute @s generic.max_health base set 10
  2. Die in any way
  3. Respawn
  4. Check your max health: /attribute @s generic.max_health base get
    -> Max health is 20 it should be 10

Expected behavior

The base values aren't changed back to default values on respawning, but kept as they were. Modifiers are only lost if the effect/item that grants said modifier is lost.

Notes

This is potentially also the cause for MC-181604. Considering returning from the end is for most part just respawning.

Fixed

[Mod] turbo

Jello

[Mojang] TommyWallberg

2020-04-22, 09:53 PM

2024-07-27, 03:03 PM

2024-05-14, 04:14 PM

57

31

Confirmed

Low

Platform

Commands

death, health

20w17a - 1.20.620w17a, 20w18a, 20w19a, 20w20b, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w28a, 20w29a, 1.16.2, 20w46a, 20w51a, 21w03a, 1.16.5, 21w06a, 21w08b, 21w15a, 21w16a, 1.17, 1.17.1, 1.18.1, 1.18.2, 22w19a, 1.19, 1.19.1 Pre-release 5, 1.19.2, 1.19.3, 23w03a, 1.19.4, 23w17a, 23w18a, 1.20.1, 23w31a, 23w32a, 23w33a, 1.20.3, 1.20.4, 23w51b, 24w07a, 24w09a, 1.20.5, 1.20.6

24w20a