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

       

       

        1. bugreport.png
          810 kB
          Tim Winchester
        2. image-2020-05-08-15-08-21-144.png
          209 kB
          Martin Cornejo
        3. min_repro_case.js
          0.9 kB
          Tim Winchester

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

              Created:
              Updated:
              CHK: