Posted 25 April 2015 - 12:06 PM
Hi!
I'm working on a command computer based map/game. I'm using lots of commands.async.setBlock() commands.
While developing and testing, I simply wait at certain points using read().
That's fine for now and I could check out good sleep durations instead of hitting enter,
but as this sould run also smoothly for other players I'm courious if there are clever ways to solve this?
Generally not using async is no option, as it would take ages to set everything up.
Maybe I can somehow get the number of open tasks, so I can sleep depending on this info?
I'm working on a command computer based map/game. I'm using lots of commands.async.setBlock() commands.
While developing and testing, I simply wait at certain points using read().
That's fine for now and I could check out good sleep durations instead of hitting enter,
but as this sould run also smoothly for other players I'm courious if there are clever ways to solve this?
Generally not using async is no option, as it would take ages to set everything up.
Maybe I can somehow get the number of open tasks, so I can sleep depending on this info?