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

Add schedule code blocks #34

Open
mathgeniuszach opened this issue Feb 24, 2021 · 1 comment
Open

Add schedule code blocks #34

mathgeniuszach opened this issue Feb 24, 2021 · 1 comment

Comments

@mathgeniuszach
Copy link

Minecraft has support for a built in function called schedule that combined with code blocks could create very basic asynchronous code. Supporting the schedule command as a language feature rather than a command is mostly just syntactic sugar:

after (<time>d|s|t, replace) {
    /say hi!
}

The replace field is optional and could be a different keyword or identifier. By default though, this should compile to append rather than replace.

This would be similar to putting your code in other function and calling /schedule d|s|t , but it looks a lot nicer when you have your code in one file.

@Heath123
Copy link

Sadly this isn't really supported or updated any more...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants