Adding delay between jumps
-
Hey guys, I need to make a delay between jumps but I didn't found the class which does provides it
[...] onEnable: function () { // jump delay = 10 } onDisable: function() { // jump delay = default } [...]
I'll be grateful for any help for solving this problem
-
@dont_doubt said in Adding delay between jumps:
Hey guys, I need to make a delay between jumps but I didn't found the class which does provides it
[...] onEnable: function () { // jump delay = 10 } onDisable: function() { // jump delay = default } [...]
I'll be grateful for any help for solving this problem
mixinentityplayersp
-
icewormy3replied to ohno on 1 Feb 2021, 16:02 last edited by icewormy3 2 Jan 2021, 17:03
if(mc.thePlayer.ticksExisted % 20 == 0) {
mc.thePlayer.jump();
}
for every second that passes, you will jump
40 ticks = 2 seconds
20 ticks = 1 second
10 ticks = 0.5 seconds
5 ticks = 0.25 seconds
and so on
1/3