Stable version of @minecraft/server module v2.0.0 is broken: neither of system.beforeEvents or world.beforeEvents work (havent checked for afterEvents tho).
Steps to reproduce:
1. Create empty script BP
2. Use @minecraft/server module v2.0.0
3. Import {world, system} from @minecraft/server
4. Try calling any existing beforeEvent of either of these
Expected result:
The code works perfectly no content log errors and the event callback does the thing
Actual result:
Content log logs an error: “cannot read property “subscribe” of undefined at N line”
Comments 2
Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
Is this still an issue in the latest version? If yes, could you please add it to the affected versions (or mention it if you are not the reporter)?
This ticket will automatically reopen when you reply.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
And it works perfectly for v2.1.0-beta