Mojira Archive
MCPE-66389

getBlock() from scripting API fails unexpectedly

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

 

 

Unresolved

Tim Winchester

2020-03-26, 04:56 AM

2024-08-25, 02:11 PM

10

9

Confirmed

436138

scripting-api

1.17.10.21 Beta, 1.14.30 Hotfix, 1.16.40 Hotfix, 1.16.221 Hotfix

-