-
Notifications
You must be signed in to change notification settings - Fork 5
/
SekSinSpeed.js
75 lines (63 loc) · 2.26 KB
/
SekSinSpeed.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
63
64
65
66
67
68
69
70
71
72
73
74
75
//Speed for Mc-SekSin.net | By 1337quip (wasd#9800)
var scriptName = "SekSinSpeed";
var scriptVersion = 1.0;
var scriptAuthor = "1337quip";
var SekSinSpeed = new SekSinSpeed();
function SekSinSpeed() {
this.getName = function () {
return "SekSinSpeed";
};
this.getDescription = function () {
return "Speed for Mc-SekSin.net | By 1337quip (wasd#9800)";
};
this.getCategory = function () {
return "Misc";
};
this.onUpdate = function () {
//Check if player is on ground
if (mc.thePlayer.onGround) {
//Prevent players from jumping
mc.gameSettings.keyBindJump.pressed = false;
//Set player to jump
mc.thePlayer.jump();
}
//Check if player isn't on ground & Check player fall distance
if (!mc.thePlayer.onGround && mc.thePlayer.fallDistance <= 0.1) {
//Set player speed in air to 0.02
mc.thePlayer.speedInAir = 0.02;
//Set player timer speed to 1.5
mc.timer.timerSpeed = 1.5;
}
//Check player fall distance
if (mc.thePlayer.fallDistance > 0.1 && mc.thePlayer.fallDistance < 1.3) {
//Set player speed in air to 0.0205
mc.thePlayer.speedInAir = 0.0205;
//Set player timer speed to 0.7
mc.timer.timerSpeed = 0.7;
}
//Check player fall distance
if (mc.thePlayer.fallDistance >= 1.3) {
//Reset player timer speed to 1
mc.timer.timerSpeed = 1;
//Reset player speed in air to 0.02
mc.thePlayer.speedInAir = 0.02;
}
}
this.onEnable = function () {
chat.print("§8§l§m+---------------------------------------------+");
chat.print("");
chat.print("§8§l[§9§lLiquidBounce§8§l] §f§lSpeed for §a§lMc-SekSin.net §f§l| By §a§l1337quip §f§l(§a§lwasd#9800§f§l)");
chat.print("");
chat.print("§8§l§m+---------------------------------------------+");
}
this.onDisable = function () {
mc.timer.timerSpeed = 1;
mc.thePlayer.speedInAir = 0.02
}
}
function onEnable() {
moduleManager.registerModule(SekSinSpeed);
};
function onDisable() {
moduleManager.unregisterModule(SekSinSpeed);
};