lambdaCraft

mc-try-parallel

Jan 30th, 2020
561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. f1 = function ()
  2. while true do
  3. turtle.turnLeft()
  4. end
  5. end
  6.  
  7. f2 = function ()
  8. local t = 0
  9. while true do
  10. sleep(1)
  11. print(t)
  12. t = t + 1
  13. end
  14. end
  15.  
  16. parallel.waitForAny(f1, f2)
Advertisement
Add Comment
Please, Sign In to add comment