Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build a parser #2

Open
amg-12 opened this issue Nov 26, 2023 · 1 comment
Open

Build a parser #2

amg-12 opened this issue Nov 26, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@amg-12
Copy link
Owner

amg-12 commented Nov 26, 2023

It would be nice to have a parser to parse the arguments of /scriptevent commands. The parser would take string representations of the types supported by MakeCode (number, position, selector) and parse them into the corresponding ScriptAPI types (number, Vector3, EntityQueryOptions). Without a parser, I have to use hacks which cost in readability and probably performance.

@amg-12
Copy link
Owner Author

amg-12 commented Nov 26, 2023

Upon discovering mobs.queryTarget(), parsing target selectors will no longer be necessary. I can query the target's unique ID, and pass that as an argument in place of a selector string.

@amg-12 amg-12 added the enhancement New feature or request label Nov 27, 2023
amg-12 added a commit that referenced this issue Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant