Code:
on left click:
execute console command "/reach player %player% 3"
clear {timer}
set {timer} to 0
set {atkspd} to player's attack speed final attribute
set {chargetimer} to 2*(20/{atkspd})
loop {chargetimer} times:
add 1 to {timer}
send "%{timer}%"
wait 1 tick
if {timer} >= {chargetimer}:
execute console command "/reach player %player% 4"
send "yes"
This is the code I currently have right now, however the final if statement still triggers even if I don't wait the full 2x and is very inconsistent. Could someone please help?
Last edited: