-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathVerusFastFly.js
More file actions
77 lines (62 loc) · 1.69 KB
/
VerusFastFly.js
File metadata and controls
77 lines (62 loc) · 1.69 KB
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
76
77
/// api_version=2
var LB = Java.type("net.ccbluex.liquidbounce.LiquidBounce");
var ground = 0.00;
var speed = 0;
var script = registerScript({
name: "Verus_nofall",
version: "6.9.0",
authors: ["BilalWare"]
});
script.registerModule({
name: "VerusFastFly",
category: "player",
description: "bruh"
}, function (module) {
module.on("update", function (event) {
mc.thePlayer.motionY = -0.1;
if(mc.thePlayer.posY < ground && mc.thePlayer.hurtTime < 1)
{
mc.thePlayer.motionY = 0.5;
}
mc.thePlayer.jumpState = 0;
if(mc.gameSettings.keyBindJump.pressed) {
ground = ground + 0.3;
}
if(mc.gameSettings.keyBindSneak.pressed) {
ground = ground + -0.3;
if(mc.thePlayer.motionY < 0)
{
mc.thePlayer.motionY = -0.5;
}
}
if(mc.thePlayer.onGround == 0 && mc.gameSettings.keyBindForward.pressed && !mc.gameSettings.keyBindSneak.pressed)
{
if(speed < 0.37)
{
speed = speed + 0.01;
}
setSpeed(speed);
}
else if(mc.thePlayer.onGround == 0 && mc.gameSettings.keyBindForward.pressed && mc.gameSettings.keyBindSneak.pressed)
{
setSpeed(0.17);
speed = 0.17;
}
else
{
speed = mc.thePlayer.motionX + mc.thePlayer.motionZ;
}
});
module.on("enable", function () {
ground = mc.thePlayer.posY + -0.01;
playertixk = 0;
});
});
function setSpeed(_speed) {
var playerYaw = Math.radians(mc.thePlayer.rotationYaw);
mc.thePlayer.motionX = _speed * -Math.sin(playerYaw);
mc.thePlayer.motionZ = _speed * Math.cos(playerYaw);
}
Math.radians = function(degrees) {
return degrees * Math.PI / 180;
};