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

playerInteractWithBlock and playerInteractWithEntity classes are still in beta modules of script API.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.62 Hotfix, 1.20.80.21 Preview
    • Confirmed
    • Multiple
    • 1203739

      The stable release of Minecraft, version 1.20.50. In changelog, it mentioned that playerInteractWithBlock and playerInteractWithEntity classes are moved from beta to 1.7.0, even in official documentation it didn't say they're still in pre-release.

      Expected Behavior:
      Beta modules is no longer needed in using these classes; hence they're supposed to be out of the beta already.
      Actual Behavior:
      Beta modules is still needed to use the mentioned classes, otherwise they won't work.

      Steps to reproduce:

      • Create a script manifest of behavior pack that uses stable API version 1.7.0 or higher
      • Write a script that use playerInteractWithBlock or playerInteractWithEntity classes
      • Run it in the world to test them.

      Sample Code:
      import { world } from '@minecraft/server';

      world.afterEvents.playerInteractWithEntity.subscribe(() => {
          console.warn('Hello World')
      });
       
      world.afterEvents.playerInteractWithBlock.subscribe(() => {
          console.warn('Hello World')
      });

            MariusTanghal03 Unknown
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: