robot.keyPress(KeyEvent.Vk_W);
//Need a 50ms delay here
robot.keyRelease(KeyEvent.Vk_W);
}
} catch (AWTException e) {
e.printStackTrace();
}
I'm not using forge, all I need is a proper ticking handler, can someone hand me a help because robot.delay(ms) makes the game freeze(not the most reliable way to delay an event)
I might be able to help you with my limited coding knowledge; I had to input a delay for a bow I was making, so I simply made a long that gets increased by one every time the game does a tick. You can then use that to create a delay using if statements.
try {
robot = new Robot();
robot.keyPress(KeyEvent.Vk_W);
//Need a 50ms delay here
robot.keyRelease(KeyEvent.Vk_W);
}
} catch (AWTException e) {
e.printStackTrace();
}
I'm not using forge, all I need is a proper ticking handler, can someone hand me a help because robot.delay(ms) makes the game freeze(not the most reliable way to delay an event)
I might be able to help you with my limited coding knowledge; I had to input a delay for a bow I was making, so I simply made a long that gets increased by one every time the game does a tick. You can then use that to create a delay using if statements.
CLICK FOR BEST SUPPORT WEBSITE EVER!
Make sure to click the reply or quote button on my post if you are replying to me, otherwise it is unlikely that I will see your post.