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

getBlock() from scripting API fails unexpectedly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17.10.21 Beta, 1.14.30 Hotfix, 1.16.40 Hotfix, 1.16.221 Hotfix
    • Confirmed
    • Windows
    • 436138

      Attempted to call getBlock() for coordinates that reside within a ticking area in a single-player world.

      Expected: getBlock() returns a Block object.

      Actual: "Script Error: Something went wrong..."

      Repro steps:

      • Create a behavior pack with the attached file as a server script
      • Create a circular ticking area named "mytickingarea" at 0 65 0 with a radius of 1 (seems to happen for any ticking area, actually, but this is what I did)
      • Teleport to 0 65 0 in survival mode (create a pillar if necessary)
      • Start destroying the block you're standing on
      • The script error will display

       

       

            tim_sama Tim Winchester
            Votes:
            10 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              CHK: