forked from SelfMadeSystem/Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAACLowHop3.js
62 lines (55 loc) · 1.5 KB
/
AACLowHop3.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
var scriptName = "AACLowHop3";
var scriptVersion = 1.1;
var scriptAuthor = "Sms_Gamer";
var AACLowHop3 = new AACLowHop3();
var client;
var strafeModule = moduleManager.getModule("Strafe");
function AACLowHop3() {
var strafe = false;
this.getName = function() {
return "AACLowHop3";
};
this.getDescription = function() {
return "AACLowHop3";
};
this.getCategory = function() {
return "Movement";
};
this.onEnable = function() {
if(strafeModule.state == true){
strafe = true;
}else{
strafe = false;
strafeModule.setState(true)
}
}
this.onUpdate = function() {
if (mc.gameSettings.keyBindForward.isKeyDown() && !mc.thePlayer.isSneaking()) {
mc.thePlayer.setSprinting(true);
if (mc.thePlayer.onGround){
if(!mc.gameSettings.keyBindJump.isKeyDown()){
mc.thePlayer.jump()
}
mc.thePlayer.motionZ *= 1.01;
mc.thePlayer.motionX *= 1.01;
}
mc.thePlayer.motionY -= 0.0149;
}
}
this.onDisable = function () {
if(strafe == true){
strafe = true;
strafeModule.setState(true)
}else{
strafe = false;
strafeModule.setState(false)
}
}
}
function onLoad() {}
function onEnable() {
client = moduleManager.registerModule(AACLowHop3);
}
function onDisable() {
moduleManager.unregisterModule(client);
}