The Issue:
Running the code from the documentation creator page for getting entities causes an error.
https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/mojang-minecraft/entityqueryoptions
How to reproduce:
Setup an empty test project for GameTest Framework and import EntityQueryOptions.
Run the first line of code from the documentation page listed above, "const query = new mc.EntityQueryOptions();"
An error is shown that there is, "No constructor for native class 'EntityQueryOptions'"
Expected behavior:
There should be a constructor for this class.
Attachments
Comments 3
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 attach an example addon with which the issue can be observed?
This ticket will automatically reopen when you reply.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki
Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
EntityQueryOptions changed to Interface instead of Class
Use DeepL translation{+}{+}