Reducing maxHealth / max_health can cause fake death
It's possible to have higher maximum health than actual health (see MC-16345) because the helth doesn't adequately update server-side when an attribute stops being applied.
In this state, when the player takes more damage than its max health, the client will show the death screen. However, since the maximum health has not actually been updated yet on the server side, the player doesn't die server-side. When the player then clicks "Respawn", the game continues as if the player hadn't died.
This is a client-server desync where on the client-side, the player dies, but server-side, it doesn't.
To reproduce
- Place a wither rose
- Switch into survival mode
- Give yourself this item:
/give @p dirt{AttributeModifiers:[{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:20d,Operation:0,UUID:[I;0,1,2,3],Slot:"mainhand"}]} - Select the dirt block
- Run this command to fill your health:
/effect give @p minecraft:instant_health 1 3
- Deselect the dirt block
- Walk into the wither rose
→
You die immediately (because the server sends to the client "decrease health by 20 because max health changed")
→
On the death screen, you continue to take damage - Click "Respawn"
→
You don't respawn, but are still at the same location as if nothing happened
These actions can also cause this bug from being triggered, apart from being damaged by a wither rose:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Starvation (Hunger)
- Hitting a wall with elytra
Linked Issues
is duplicated by54
relates to6
- Fixed
Daniel Goodman
[Mojang] Grum (Erik Broes)- 106
- 44
- Confirmed
Normal
- Player
- animation attribute death-screen interface max_health
1.6.1 - 21w17a
1.6.1 1.6.2 13w39b 14w20b 1.7.10 14w30c 14w31a 14w33c 14w34a 14w34b 14w34c 14w34d 1.8-pre1 1.8-pre2 1.8 1.8.1 1.8.3 15w44b 15w46a 1.8.9 16w02a 16w03a 16w06a 1.9-pre2 1.9-pre3 1.9-pre4 1.9 1.9.1-pre1 1.9.1-pre3 1.9.1 1.9.2 16w15b 1.10.2 16w41a 16w42a 16w43a 16w44a 1.11-pre1 1.11 16w50a 1.11.1 1.11.2 17w06a 17w13b 17w15a 17w16b 17w17a 17w18b 1.12-pre2 1.12 1.12.1 1.12.2 18w05a 18w15a 1.13-pre7 1.13.1 1.13.2 18w48a 18w48b 18w49a 18w50a 1.14.1 1.14.4 19w42a 1.15.2 20w06a 20w17a 20w18a 20w19a 20w20b 20w22a 1.16-pre2 1.16.1 20w27a 20w29a 1.16.2-pre1 1.16.2-pre2 1.16.2-pre3 1.16.2-rc1 1.16.2 1.16.3 1.16.4-rc1 1.16.4 20w51a 1.16.5 21w05b 21w06a 21w07a 21w10a 21w11a 21w14a 21w17a- 1.17-pre1
Created Issue:
Instant health causing fake death
If you have a clock with a effect command "/effect @a 6 1 10" you can run into some interesting problems. In addition to this you must also have a item with an attribute of +max health. When you deselect the item (losing health) with the effect on a clock a death message will show up. This is fake. When you hit respawn you do not respawn it just removes the message. This can also lead to some animation glitches (player leaning sideways). The pictures included were taken back to back.
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
relates to
is duplicated by
is duplicated by
relates to
MC-84871
is duplicated by
relates to
If you have a clock with a effect command "/effect @a 6 1 10" you can run into some interesting problems. In addition to this you must also have a item with an attribute of +max health. When you deselect the item (losing health) with the effect on a clock a death message will show up. This is fake. When you hit respawn you do not respawn it just removes the message. This can also lead to some animation glitches (player leaning sideways). The pictures included were taken back to back.
If you have a clock with a effect command "/effect @a 6 1 10" you can run into some interesting problems. In addition to this you must also have a item with an attribute of +max health. When you deselect the item (losing health) with the effect on a clock a death message will show up. This is fake. When you hit respawn you do not respawn it just removes the message. This can also lead to some animation glitches (player leaning sideways). The pictures included were taken back to back.
A way to reproduce:
- Give yourself an item with the max health attribute
/give @p dirt 1 0 {AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:40d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}- Give yourself constantly the instant health effect by a clock or just use this command:
/effect @p instant_health 300000 5- Get hurt (this doesn't always work on the first try, the best way is to use this command; seems not to be necessary)
/effect @p instant_damage 300000 1- And now select and deselect the item with the max healt attribute very often
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
If you have a clock with a effect command "/effect @a 6 1 10" you can run into some interesting problems. In addition to this you must also have a item with an attribute of +max health. When you deselect the item (losing health) with the effect on a clock a death message will show up. This is fake. When you hit respawn you do not respawn it just removes the message. This can also lead to some animation glitches (player leaning sideways). The pictures included were taken back to back.
A way to reproduce:
- Give yourself an item with the max health attribute
/give @p dirt 1 0 {AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:40d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}Give yourself constantly the instant health effect by a clock or justuse thiscommand:/effect @p instant_health300000 5Get hurt (this doesn't always work on the first try, the best way is to use this command; seems not to be necessary)/effect @p instant_damage 300000 1- And now select and deselect the item with the max healt attribute very often
Sometimes when you damage yourself more than you have maxHealth but less then you have Health (it's possible because of
MC-16345: you should decrease your maxHealth and then update your health), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
Steps to reproduce:
- Prepare 2 hotbar slots. One of them should have an item which makes you have N hearts and the other one - 2N (or more) hearts. For example, you can have a slot with any item (10 hearts) and a slot with an item from the next command (20 hearts):
/give @p dirt 1 0 {AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:20d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}- Choose the slot with 2N hearts and heal up (you can use the next command)
/effect @p minecraft:instant_health 1 3- Choose the slot with N hearts.
- Update your health. These things can trigger the bug:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Hunger damage
Instant health causingfake deathReducing maxHealth can cause fake death
is duplicated by
is duplicated by
Sometimes when you damage yourself more than you have maxHealth but less then you have Health (it's possible because of
MC-16345: you should decrease your maxHealth and then update your health), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
Steps to reproduce:
- Prepare 2 hotbar slots. One of them should have an item which makes you have N hearts and the other one - 2N (or more) hearts. For example, you can have a slot with any item (10 hearts) and a slot with an item from the next command (20 hearts):
/give @p dirt 1 0 {AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:20d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}- Choose the slot with 2N hearts and heal up (you can use the next command)
/effect @p minecraft:instant_health 1 3- Choose the slot with N hearts.
- Update your health. These things can trigger the bug:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
Hunger damageSometimes when you damage yourself more than you have maxHealth but less then you have Health (it's possible because of
MC-16345: you should decrease your maxHealth and then update your health), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
Steps to reproduce:
- Prepare 2 hotbar slots. One of them should have an item which makes you have N hearts and the other one - 2N (or more) hearts. For example, you can have a slot with any item (10 hearts) and a slot with an item from the next command (20 hearts):
/give @p dirt 1 0 {AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:20d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}- Choose the slot with 2N hearts and heal up (you can use the next command)
/effect @p minecraft:instant_health 1 3- Choose the slot with N hearts.
- Update your health. These things can trigger the bug:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Starvation (Hunger)
Sometimes when you damage yourself more than you have maxHealth but less then you have Health (it's possible because of
MC-16345: you should decrease your maxHealth and then update your health), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
Steps to reproduce:
- Prepare 2 hotbar slots. One of them should have an item which makes you have N hearts and the other one - 2N (or more) hearts. For example, you can have a slot with any item (10 hearts) and a slot with an item from the next command (20 hearts):
/give @p dirt 1 0 {AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:20d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}- Choose the slot with 2N hearts and heal up (you can use the next command)
/effect @p minecraft:instant_health 1 3- Choose the slot with N hearts.
- Update your health. These things can trigger the bug:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Starvation (Hunger)
- Hitting a wall with elytra
is duplicated by
Sometimes when you damage yourself more than you have maxHealth but less then you have Health (it's possible because of
MC-16345: you should decrease your maxHealth and then update your health), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
Steps to reproduce:
- Prepare 2 hotbar slots. One of them should have an item which makes you have N hearts and the other one - 2N (or more) hea
rts. For example, you can have a slot with any item (10 hearts) and a slot with an item from the next command (20 hearts):/give @p dirt 1 0 {AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:20d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}- Choose the slot with 2N hea
rtsand heal up (you can use the next command)/effect @p minecraft:instant_health 1 3- Choose the slot with N hea
rts.- Update your health. These things can trigger the bug:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Starvation (Hunger)
- Hitting a wall with elytra
Sometimes when you damage yourself more than you have maxHealth but less then you have Health (it's possible because of
MC-16345: you should decrease your maxHealth and then update your health), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
Steps to reproduce:
- Prepare 2 hotbar slots. One of them should have an item which makes you have N hearts and the other one - 2N (or more) health. For example, you can have a slot with any item (20 health/10 hearts) and a slot with an item from the next command (40 health/20 hearts):
/give @p dirt 1 0 {AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:20d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}- Choose the slot with 2N health and heal up (you can use the next command)
/effect @p minecraft:instant_health 1 3- Choose the slot with N health.
- Update your health. These things can trigger the bug:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Starvation (Hunger)
- Hitting a wall with elytra
Sometimes when you damage yourself more than you have maxHealth but less then you have Health (it's possible because of
MC-16345: you should decrease your maxHealth and then update your health), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
Steps to reproduce:
- Prepare 2 hotbar slots. One of them should have an item which makes you have N hea
rtsand the other one - 2N (or more) health. For example, you can have a slot with any item (20 health/10 hearts) and a slot with an item from the next command (40 health/20 hearts):/give @p dirt 1 0 {AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:20d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}- Choose the slot with 2N health and heal up (you can use the next command)
/effect @p minecraft:instant_health 1 3- Choose the slot with N health.
- Update your health. These things can trigger the bug:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Starvation (Hunger)
- Hitting a wall with elytra
Sometimes when you damage yourself more than you have maxHealth but less then you have Health (it's possible because of
MC-16345: you should decrease your maxHealth and then update your health), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
Steps to reproduce:
- Prepare 2 hotbar slots. One of them should have an item which makes you have N health and the other one - 2N (or more) health. For example, you can have a slot with any item (20 health/10 hearts) and a slot with an item from the next command (40 health/20 hearts):
/give @p dirt 1 0 {AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:20d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}- Choose the slot with 2N health and heal up (you can use the next command)
/effect @p minecraft:instant_health 1 3- Choose the slot with N health.
- Update your health. These things can trigger the bug:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Starvation (Hunger)
- Hitting a wall with elytra
is duplicated by
relates to
is duplicated by
is duplicated by
relates to
is duplicated by
Sometimes when you damage yourself more than you have maxHealth but less then you have Health (it's possible because of
MC-16345: you should decrease your maxHealth and then update your health), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
Steps to reproduce:
- Prepare 2 hotbar slots. One of them should have an item which makes you have N health and the other one - 2N (or more) health. For example, you can have a slot with any item (20 health/10 hearts) and a slot with an item from the next command (40 health/20 hearts):
/give @p dirt1 0{AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:20d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}- Choose the slot with 2N health and heal up (you can use the next command)
/effect @p minecraft:instant_health 1 3- Choose the slot with N health.
- Update your health. These things can trigger the bug:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Starvation (Hunger)
- Hitting a wall with elytra
Sometimes when you damage yourself more than you have maxHealth but less then you have Health (it's possible because of
MC-16345: you should decrease your maxHealth and then update your health), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
Steps to reproduce:
- Prepare 2 hotbar slots. One of them should have an item which makes you have N health and the other one - 2N (or more) health. For example, you can have a slot with any item (20 health/10 hearts) and a slot with an item from the next command (40 health/20 hearts):
/give @p dirt{AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:20d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}- Choose the slot with 2N health and heal up (you can use the next command)
/effect give @p minecraft:instant_health 1 3- Choose the slot with N health.
- Update your health. These things can trigger the bug:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Starvation (Hunger)
- Hitting a wall with elytra
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
relates to
is duplicated by
Reducing maxHealth / max_health can cause fake death
is duplicated by
Affects 1.16
Sometimes when you damage yourself more than you have maxHealth but less then you have Health (it's possible because of
MC-16345: you should decrease your maxHealth and then update your health), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
Steps to reproduce:
- Prepare 2 hotbar slots. One of them should have an item which makes you have N health and the other one - 2N (or more) health. For example, you can have a slot with any item (20 health/10 hearts) and a slot with an item from the next command (40 health/20 hearts):
/give @p dirt{AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:20d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}- Choose the slot with 2N health and heal up (you can use the next command)
/effect give @p minecraft:instant_health 1 3- Choose the slot with N health.
- Update your health. These things can trigger the bug:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Starvation (Hunger)
- Hitting a wall with elytra
Sometimes when you damage yourself more than you have maxHealth but less then you have Health (it's possible because of
MC-16345: you should decrease your maxHealth and then update your health), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
Steps to reproduce:
- Prepare 2 hotbar slots. One of them should have an item which makes you have N health and the other one - 2N (or more) health. For example, you can have a slot with any item (20 health/10 hearts) and a slot with an item from the next command (40 health/20 hearts):
/give @p dirt{AttributeModifiers:[{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:20d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}- Choose the slot with 2N health and heal up (you can use the next command)
/effect give @p minecraft:instant_health 1 3- Choose the slot with N health.
- Update your health. These things can trigger the bug:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Starvation (Hunger)
- Hitting a wall with elytra
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
Can confirm in 21w05b.
Sometimes when you damage yourself more than you have maxHealth but less then you have Health (it's possible because of
MC-16345: you should decrease your maxHealth and then update your health), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
Steps to reproduce:
- Prepare 2 hotbar slots. One of them should have an item which makes you have N health and the other one - 2N (or more) health. For example, you can have a slot with any item (20 health/10 hearts) and a slot with an item from the next command (40 health/20 hearts):
/give @p dirt{AttributeModifiers:[{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:20d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}- Choose the slot with 2N health and heal up (you can use the next command)
/effect give @p minecraft:instant_health 1 3- Choose the slot with N health.
- Update your health. These things can trigger the bug:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Starvation (Hunger)
- Hitting a wall with elytra
Sometimes when you damage yourself more than you have maxHealth but less then you have Health (it's possible because of
MC-16345: you should decrease your maxHealth and then update your health), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
Steps to reproduce:
- Prepare 2 hotbar slots. One of them should have an item which makes you have N health and the other one - 2N (or more) health. For example, you can have a slot with any item (20 health/10 hearts) and a slot with an item from the next command (40 health/20 hearts):
/give @p dirt{AttributeModifiers:[{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:20d,Operation:0,UUID:[I;0,1,2,3],Slot:"mainhand"}]}- Choose the slot with 2N health and heal up (you can use the next command)
/effect give @p minecraft:instant_health 1 3- Choose the slot with N health.
- Update your health. These things can trigger the bug:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Starvation (Hunger)
- Hitting a wall with elytra
is duplicated by
relates to
is duplicated by
Sometimes when you damage yourself more than you have maxHealth but lessthenyou have Health (it's possible because ofMC-16345: you should decrease your maxHealth and then update yourhealth), you can get fake death. When you hit respawn you do not respawn, it just removes the message. This can also lead to some animation glitches (player leaning sideways).
Steps to reproduce:
- Prepare 2 hotbar slots. One of them should have an item which makes you have N health and the other one - 2N (or more) health. For example, you can have a slot with any item (20 health/10 hearts) and a slot with an item from the next command (40 health/20 hearts):
/give @p dirt{AttributeModifiers:[{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:20d,Operation:0,UUID:[I;0,1,2,3],Slot:"mainhand"}]}Choose the slot with 2N health and heal up (you can use the next command)/effect give @p minecraft:instant_health 1 3Choose the slot with N health.Update your health. These things can trigger the bug:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Starvation (Hunger)
- Hitting a wall with elytra
It's possible to have higher maximum health than actual health (see
MC-16345) because the helth doesn't adequately update server-side when an attribute stops being applied.In this state, when the player takes more damage than its max health, the client will show the death screen. However, since the maximum health has not actually been updated yet on the server side, the player doesn't die server-side. When the player then clicks "Respawn", the game continues as if the player hadn't died.
This is a client-server desync where on the client-side, the player dies, but server-side, it doesn't.
To reproduce
- Place a wither rose
- Switch into survival mode
- Give yourself this item:
/give @p dirt{AttributeModifiers:[{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:20d,Operation:0,UUID:[I;0,1,2,3],Slot:"mainhand"}]}- Select the dirt block
- Run this command to fill your health:
/effect give @p minecraft:instant_health 1 3- Deselect the dirt block
- Walk into the wither rose
→You die immediately (because the server sends to the client "decrease health by 20 because max health changed")
→On the death screen, you continue to take damage
- Click "Respawn"
→You don't respawn, but are still at the same location as if nothing happened
These actions can also cause this bug from being triggered, apart from being damaged by a wither rose:
- Instant health effect
- Instant damage effect
- Poison effect
- Suffocation
- Drowning
- Starvation (Hunger)
- Hitting a wall with elytra
is duplicated by
is duplicated by
is duplicated by
is duplicated by
Nevermind, dupe of MC-19690
There have been a couple of issues like this, some of which have been fixed. This is at least related to MC-19690.
Relates to: MC-19690
Confirmed for
- 14w30c
- 14w31a
- Minecraft 1.8-pre 1
How to reproduce:
- Perform this command
/scoreboard objectives add Health health
- Then this
/scoreboard objectives setdisplay sidebar Health
- Give yourself an item with the max healt attribute and select it
/give @p dirt 1 0 {AttributeModifiers:[0:{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:10000,Operation:0,UUIDLeast:894654,UUIDMost:2872},1:{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:2.5,Operation:1,UUIDLeast:111113,UUIDMost:1111},2:{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:40,Operation:0,UUIDLeast:111113,UUIDMost:1111}],display:{Name:"GodSword 2.1",Lore:["The Ultimate Power","By Vengeur69"]}} - Your Health score should now be 60, now deselect it
Your Health score is still 60, the game changes this back to 20 as soon as you get damage, but does NOT reduce your health lower than 20 because of the damage
I know some people could say that this is a bug with the scoreboard, but it is not, you can proof this with programmes like the "NBT-Explorer" this shows you the same like the scoreboard does
Duplicate of MC-19690
Dupe of MC-19690
Dupe of MC-19690
Relates to:
The bug
When you give yourself an item with AttributeModifiers that reduce your health to 0, you are unable to respawn. When pressing the respawn button nothing happens. This is very likely because the player has still 0 health.
How to reproduce
- Give yourself an item that reduces your health to 0
Example command
/give @p dirt 1 0 {AttributeModifiers:[{Amount:-20d,AttributeName:"generic.maxHealth",Name:"Health Attribute",Operation:0,UUIDLeast:1,UUIDMost:1,Slot:"mainhand"}]} - Update your NBT data by for example using the following command
Example command
/effect @p instant_health
The death screen should appear but when you click "Respawn" nothing happens
Dupe of MC-19690 (at least John Smith's map shows that issue)
So, this is not a duplicate of MC-19690, but seemingly relates.
Hello, Kumasasa, I hate to be annoying, but this but is not at all the same as MC-19690. I know the “fake death” glitch, I have done it; it’s not the same as this. Unlike in MC-19690, here you do not receive a death message at all, here your screen jitters as if you were dead, here you actually appear in game mode survival to have no health. Sorry to annoy you, yet again, but this is a decidedly unique bug.
Possibly relates to MC-19690 ?
Though as far as i know this has been happening in one way or another for a very long time.
Thank you for your report!
However, this issue is a Duplicate of MC-19690.
If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Thank you for your report!
We're actually already tracking this issue in MC-19690, so I resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Does MC-19690 describe your issue?
The Bug
When your max health is set to 0, you don't die directly. This is caused by MC-16345.
Additionally, when you take damage, you die twice. This is MC-19690.
How to Reproduce
- /attribute @s minecraft:generic.max_health base set 0
→
You are still alive, with one heart - Take damage and die
- Click respawn
→
You are resurrected at the same location as you died, now with half a heart (MC-19690) - Die again
→
You now respawn properly
Observed Behavior
Players remain alive when their "minecraft:generic.max_health" attribute is set to "0".
Expected Behavior
Players would die and not remain alive when their "minecraft:generic.max_health" attribute is set to "0".
Duplicate of MC-19690
Thank you for your report!
We're actually already tracking this issue in MC-19690, so I resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
Thank you for your report!
However, this issue is a Duplicate of MC-19690.
Please use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-19690.
Please use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-19690.
Please use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
I wonder if this relates to a different bug where modifying the generic.max_health attribute in a certain way really fast and giving the player instant damage could cause the player to "die", get a fake respawn screen, and get stuck in the death animation. This is MC-19690 I am mentioning if that helps.
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-19690.
Please use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-19690.
Please use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-19690, which is a report that has not been resolved yet.
If you want, you can upvote the parent ticket, and enable watching to receive any updates about it - if you believe you have any information that may be important for this issue, please leave a comment on the parent. Please also use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord
Duplicate of MC-19690
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-19690, which is a report that has not been resolved yet.
If you want, you can upvote the parent ticket, and enable watching to receive any updates about it - if you believe you have any information that may be important for this issue, please leave a comment on the parent. Please also use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-19690, which is a report that has not been resolved yet.
If you want, you can upvote the parent ticket, and enable watching to receive any updates about it - if you believe you have any information that may be important for this issue, please leave a comment on the parent. Please also use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-19690, which is a report that has not been resolved yet.
If you want, you can upvote the parent ticket, and enable watching to receive any updates about it - if you believe you have any information that may be important for this issue, please leave a comment on the parent. Please also use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-19690, which is a report that has not been resolved yet.
If you want, you can upvote the parent ticket, and enable watching to receive any updates about it - if you believe you have any information that may be important for this issue, please leave a comment on the parent. Please also use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord
Thank you for your report!
We're tracking this issue in MC-19690, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
– I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit
Duplicate of MC-19690.
Does MC-19690 happen to describe your issue? You mentioned in this ticket that you "fast respawn after death". Are you referring to a fake death here?
Thank you for your report!
We're tracking this issue in MC-19690, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
This report appears to be a duplicate of MC-19690, which hasn't yet been resolved. If you have any additional information to provide regarding this issue, feel free to comment on the parent ticket. If you feel that this issue is affecting you, feel free to vote for the duplicated ticket, to give Mojang a basic idea of how many people are impacted by the problem. Just to further inform you, this will not determine how quickly the bug gets handled or fixed.
Thank you for your report!
We're tracking this issue in MC-19690, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Duplicate of MC-19690.
Thank you for your report!
We're tracking this issue in MC-19690, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
– I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit
Thank you for your report!
We're tracking this issue in MC-19690, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
– I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit
I cannot reproduce this in 1.18.1. Might have been fixed with MC-19690
Does MC-19690 describe your issue? (ignore the fact it's resolved)













Seems like a combination of
MC-18027and the issue where getting healed at the same time as you die causes you to turn sideways (which I can't seem to find).It's still happening in Minecraft 1.6.2. Check
MC-29319for simpler repro steps.Confirmed for
Form
MC-33827:/give @p dirt 1 0 {AttributeModifiers:[0:{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:10000,Operation:0,UUIDLeast:894654,UUIDMost:2872},1:{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:2.5,Operation:1,UUIDLeast:111113,UUIDMost:1111},2:{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:40,Operation:0,UUIDLeast:111113,UUIDMost:1111}],display:{Name:"GodSword 2.1",Lore:["The Ultimate Power","By Vengeur69"]}}I know some of the steps here use other bugs, but this also works without using these bugs
I am able to reproduce this, while healing with Regeneration, as I took damage, it showed I died, but my health is still full. And my health is still Regenerating. Once I hit the respawn button, I went all sideways (half dying animation). I'm playing on 1.8.1
The more you do it, the lower the player gets
Also it is only visible to you, not anybody else
Confirmed for
Please include a way to reproduce:
/give @p dirt 1 0 {AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:40d,Operation:0,UUIDLeast:111113,UUIDMost:1111,Slot:"mainhand"}]}It's still working in 16w03a.
Still in 16w06a
Still in 1.9 pre-realase 2.
Still in 1.9-pre3
Still in 1.9-pre4
Still in release 1.9
Still in 1.9.1-pre1
Still in 1.9.1-pre3
Can confirm for 1.9.1 & 1.9.2, you can tell it is a fake death, because it does not show up on statistics.
Still in 16w15b
Having a health value above your maxHealth attribute and then taking certain types of damage cause the false death.
fire, poison, suffocation, and drowning cause false death.
melee, fall, momentum damage do not cause false death
confirmed for 16w41a
Colton Jelsema, 16w41a is already marked as affected
Can confirm for MC 1.12.1.
@colton Jelsema, More specifically, If health is greater than or equal to 2*maxhealth, the fake death occurs upon updating your health. This is likely do to the game causing damage to the player equal to (health-maxhealth) (when maxhealth<health) upon a health update occurring, and with the condition I gave above, the game would consider this damage to be a fatal hit to a player (health=2*maxhealth, damage=2*maxhealth-maxhealth=maxhealth), thus triggering the death screen. However, since the player's health (now equal to maxhealth) is still greater than 0, no death actually occurs.
confirmed for MC 1.14.1
confirmed for MC 1.14.2
confirmed for MC 1.14.3
confirmed for MC 1.14.4
Confirmed for MC 1.15 and MC 1.15.2
This issue could easily be resolved by updating the players maxHealth value to match the attribute when it is modified
Really hard to believe this is still an issue after all of these years
So many closed duplicates...
It's really too bad that this is marked low priority. This would be a simple fix, and causes a big headache to many map makers. With the addition of the new /attribute command introduced in 20w17a, this could be a great opportunity to finally take care of this bug.
Affects 1.16.1
Affects 20w27a
for any one heaving problems with this bug
if you want to control player heath
heath boost is a good work around
it will display to hafe heart and dosent glitch
effect give @s minecraft:health_boost 1 3 true
attribute @s[scores=\{health=1}] minecraft:generic.max_health base set 1
X20
effect clear @s minecraft:health_boost
attribute @s minecraft:generic.max_health base set 20
i was messing with this bug and i noticed something: the more times you repeat the glitch the more inclined the player gets, so i thought, can i get the player to be upside down?, well, unfortunately, no, you can't, however i managed to get the player stuck in a infinite respawn screen, if immediateRespawn is active you can interact with the world, but you cannot move. As usual, relogging fixes the infinite respawn screen.
Can confirm for 20w29a.
In 1.16.2 Pre-1
Confirmed on 1.16.2.
Pietro already added to the affected versions
How to fix
look at attribute command
attribute @s generic.max_health modifier add 22e67162-454c-4125-9ff5-cb71365a41a8 "mat.damage" -15 add
effect give @s instant_health
will not do fake death.
If my max health is below 20 when i take damage higher than my health it will create "fake death"
For example
5 max hp.
20 hp (hp not reduced to max, because i don't get any heal or damage)
effect give @s intant_healt - take 15 damage to reduce my health to maximum.
How to fix - always reduce health to maximum
bug -
if hp>maxHp
then "damage on client side"="real damage"+hp-maxHp
else "damage on client side"="real damage"
fix -
if hp>maxHp then hp=maxHp
If you do /attribute @s minecraft:generic.max_health base set 1 and take any damage, I think the client(or the server, I don't know so much about this) will think that you are half a heart, but the server(or the client) will think will are 1 heart, causing this bug to happen.
I can get this to work by just
/attribute @p minecraft:generic.max_health base set 10which should set my max health to 5 hearts
shows I have 20 health
now, I set up a dispenser with arrows hooked up to a pressure plate, should be 3 damage
It does the fake death, click respawn, everything back to normal, 5 hearts
this is on 1.16.4
edit this doesn't trigger when zombies attack and it seems like health is correctly 10
Can confirm in 20w51a.
Can confirm in 21w05b.
Can confirm in 21w06a.
Can confirm in 21w07a. Video attached.
Can confirm in 21w11a
but if modifying health with the /attribute command you have to specify your name (@s doesnt work)
Can confirm in 21w17a.
I see this is "In Progress". Perhaps fix it and make it also a feature somehow?
Fixed!