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
orplayerInteractWithEntity
classesRun 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')
});
Attachments
Comments 1
