864 posts
Location
Sometime.
Posted 08 April 2012 - 12:15 AM
Yes it may seem complicated but its not. It lags you out of your own world.
Imagine this on a server!
Anyways here it is.
<snip>
All you have to do is place 2 redstone in the back (not really sure, I was testing and it crashed because of this).
Edited by
864 posts
Location
Sometime.
Posted 08 April 2012 - 12:23 AM
I feel so much power now..
Testing the redstone in the back thingy.
864 posts
Location
Sometime.
Posted 08 April 2012 - 12:26 AM
Ok so it only requires 1 redstone. If you don't have then it gives an error
Error: took to long without yielding.
474 posts
Posted 08 April 2012 - 12:53 AM
Just add a sleep(0.1) at the start of the repeat to fix that.
864 posts
Location
Sometime.
Posted 08 April 2012 - 03:38 AM
ik..
But it crashes, I like it.
Crashes servers too!
378 posts
Location
In the TARDIS
Posted 08 April 2012 - 10:12 AM
Add a sleep(0) instead of sleep(0.1) It works too as far as I know
5 posts
Posted 08 April 2012 - 01:34 PM
You can use coroutine.yield() too. os.sleep() calls coroutine.yield() indirectly.
33 posts
Location
Illinois, USA
Posted 10 April 2012 - 05:17 PM
Interesting find!
864 posts
Location
Sometime.
Posted 26 May 2012 - 05:31 PM
Yep, like an in-game ddoser!