Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-130687

Death screen freezes while setting health via gametest script

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.19.60.26 Preview, 1.19.60
    • 1.17.10.22 Beta, 1.19.21 Hotfix
    • None
    • Confirmed
    • Windows
    • 883362

      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

            MajestikButter MajestikButter
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: