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

[FEATURE_REQUEST] Shorthand syntax for execute if function #108

Open
Nico314159 opened this issue Jul 14, 2024 · 0 comments
Open

[FEATURE_REQUEST] Shorthand syntax for execute if function #108

Nico314159 opened this issue Jul 14, 2024 · 0 comments
Assignees
Labels
Type: Feature request New feature or request

Comments

@Nico314159
Copy link
Contributor

Nico314159 commented Jul 14, 2024

Description

Minecraft 1.20.3 added the execute if function command, which can be quite useful. JMC does support putting such a condition into an if statement, but we're limited to using the vanilla syntax for the actual condition. Eg:

if (function namespace:my_func) {...}

It seems like a bit of a feature gap that the more intuitive option of

if (my_func()) {...}

is not yet supported. I especially would appreciate being able to use the JMC custom syntax here because I use the this keyword quite often when working in nested folders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants