mc.thePlayer.isMoving

Avatar

By Fryhyi 15 October 2018 12:45

Member · 21 comments

I need to make it so that bhop starts working only when player is moving. Usually for this used if mc.thePlayer.isMoving. Seems that it does not work in JS. Can someone help me please? Give me for example of working script? Maybe I'm doing something wrong.

Last edited by Fryhyi (15 October 2018 13:26)

Avatar

By Senk Ju 15 October 2018 13:26

Administrator · 646 comments

Use the code below:

this.onMotion = function() {
    if (mc.gameSettings.keyBindForward.isKeyDown()) {
        // Your speed code
    }
}

CCBlueX Co-Owner

Avatar

By Fryhyi 15 October 2018 14:42

Member · 21 comments

Thank you  ( ͡ ͜ʖ ͡ )

Avatar

By Sms_Gamer_3808 22 March 2019 00:43

Member · 322 comments

This threads id is 696


ਗਨੋਮ ਲਵੋ