check motion
Solved
ScriptAPI
-
@zastix (you can only check one axis at a time)
if you it to be the same (probably wont happen)if(mc.thePlayer.motionX == 1)
or if you want it to be bigger or smaller just replace "==" with "<" or ">"
or you can get the speed of player with "MovementUtils.getSpeed()"btw you can't really check with "player.hurtTime", if you want to detect when a player takes damage try
mc.thePlayer.hurtTime >= 8
Also, this won't work:
module.on("always"
try
module.on("update"
-
@britishbiscuit Thanks for the tips and answering the question.