Do a Barrel Roll

Do a Barrel Roll

8M Downloads

Insta-kill bug

Red-Pumpkin20 opened this issue · 10 comments

commented

Describe the issue
I found a very peculiar yet dangerous bug while messing with the Kinetic Damage option in the server settings. When set to Insta-kill if the player does hit a wall the game soft locks into a weird state of being alive yet dead at the same time. The players has zero hearts and can't die to anything, including /kill and void damage. I couldn't find a way to fix this issue so I ended up just replacing the player data file and rolling my character back before this happened.
In this half dead half alive state I couldn't open any guis (inventory, chests, villagers etc) and couldn't go through portals. I also couldn't pick up items though I could throw the items from my hotbar on the ground

Crash report/logs (if applicable)

Additional information
I play on version 1.21 in a single player world that was started in version 1.19. I think this is important because I couldn't replicate the issue in a freshly generated 1.21 world. In the screenshot attached me and my friend are both experiencing this bug and as can be seen in my hud I have no hearts.

Image

commented

I scrolled through the playerdata and in [My UUID].dat there was health=NaN(Not a Number). I replaced it with 20 and the Problem was fixed.

commented

Oh I never realized you could do that. Thank you for discovering this, I’ll close the issue now

commented

I didnt meant that this fixed the bug entirely, just that you dont need to loose your playerdata if you accidentially triggered the bug

commented

I mean yeah but as far as I can see this bug is very niche and the developer probably won’t be bothered to fix it (which is understandable honestly)

commented

They could maybe remove the Feature because not everyone wants to scroll through github bug comments to fix his Problem. And BTW there is something other broken in the playerdata and to set Health to twenty isnt a Permanent Solution

commented

True, maybe we should bring up this issue in their discord server

commented

I can take a look into this. Seems like whatever function is used to calculate the damage is undefined at some points.

commented

Should be an easy fix.

commented

absorptionAmount was also set to anything exept for a number

commented

I have also experienced this bug and had to delete my player.dat file to fix it.
Image