Mojira Archive
MCPE-130687

Death screen freezes while setting health via gametest script

The game freezes on the death screen when a player's health is set via the `setCurrent` method of the `health` component.

 

To replicate:
1. Create a behaviour pack with a `javascript` type manifest module
2. Create a `scripts` folder in the behaviour pack
3. Download the attached `index.js` file and move it into the `scripts` folder
4. Set the `entry` property in the manifest to `scripts/index.js`
5. Create a world with the `Enable GameTest Framework` toggle enabled and apply the behaviour pack to the world
6. Load into the world and die within 1 minute, the `setCurrent` loop will stop after 1 minute to show that the issue does not occur due to continuous calls to `setCurrent`

Note: `setCurrent` also seems to disable `/kill`, so death needs to occur through a different method

Fixed

MajestikButter

2021-06-10, 01:51 AM

2023-02-07, 07:32 PM

2023-02-07, 07:32 PM

1

0

Confirmed

883362

1.17.10.22 Beta, 1.19.21 Hotfix

1.19.60.26 Preview, 1.19.60