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

BeforeItemUseOnEvent.getBlockLocation() returns undefined

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.70.22 Preview, 1.19.70
    • None
    • Confirmed
    • Multiple
    • 977809

      As of 1.19.70.22, the property blockLocation in BeforeItemUseOnEvent is now a function. However, this new function is not functioning properly. It's supposed to return a Vector3 object but returns undefined instead. The other event, The same method in ItemUseOnEvent works fine though.

        1. image-2023-02-10-13-32-31-028.png
          1.15 MB
          mrpatches123
        2. image-2023-02-10-13-32-36-295.png
          1.15 MB
          mrpatches123
        3. image-2023-02-10-13-39-04-585.png
          922 kB
          mrpatches123

            SIsilicon Roujel Williams
            Votes:
            9 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: