WingedSeal / jmc

A compiler for JMC (JavaScript-like Minecraft Function), a mcfunction extension language for making Minecraft Datapack
https://jmc.wingedseal.com
MIT License
64 stars 7 forks source link

Add `async while` for repeating clock #82

Closed WingedSeal closed 4 months ago

WingedSeal commented 5 months ago
async while ($num == 1) {
  ...
} 1s;
async while ($num == 1) {
  ...
}
async while (true) {
  ...
}
WingedSeal commented 4 months ago

Added in https://github.com/WingedSeal/jmc/commit/605ce142b0a5985fe2d677cd0ef8e41fee255206

But timing is now required and cannot be implicitly left out