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

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