Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved How to "toggle run"?

Joined
Jun 5, 2016
Messages
12
Probably a stupid question, but I've been looking through the API and can't figure out a way to do it.

Is there a way to "toggle run" to have the player run? Also, is there a way to read the current "run energy" value? Thanks!

Edit: Solution found. If the
Code:
MANAGE_RUN
option is passed to
Code:
step(TraversalOptions...)
then
Code:
step()
will automatically have the player run. Also, this is enabled by default - so you don't have to worry about running at all! Furthermore, this makes the question about reading "run energy" obsolete, since the API handles running entirely. Thank you for answering this question, @Savior !
 
Last edited:
Top