-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathCleanFall.js
More file actions
54 lines (46 loc) · 1.25 KB
/
CleanFall.js
File metadata and controls
54 lines (46 loc) · 1.25 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
var scriptName = "CleanFall";
var scriptVersion = 1.1;
var scriptAuthor = "yorik100";
var noFallModule = moduleManager.getModule("NoFall");
var BlockPos = Java.type('net.minecraft.util.BlockPos');
var cleanFall = new CleanFall();
var client;
function CleanFall() {
this.getName = function() {
return "GhostFall";
};
this.getDescription = function() {
return "Ghost NoFall";
};
this.getCategory = function() {
return "Player";
};
this.onEnable = function() {
}
var fortnite = 0
this.onUpdate = function() {
if (mc.thePlayer.motionY >= 0 || mc.thePlayer.isInWater() || mc.thePlayer.isInLava() || mc.thePlayer.isOnLadder() || mc.thePlayer.isInWeb || mc.thePlayer.hurtTime > 9){
fortnite = 0;
mc.thePlayer.fallDistance = 0;
}
if (mc.thePlayer.fallDistance > 2.695) {
fortnite++;
}
if (mc.thePlayer.onGround && fortnite != 0){
fortnite = 0
noFallModule.setState(false)
commandManager.executeCommand(".damage");
}else{
noFallModule.setState(true)
}
}
this.onDisable = function () {
}
}
function onLoad() {}
function onEnable() {
client = moduleManager.registerModule(cleanFall);
}
function onDisable() {
moduleManager.unregisterModule(client);
}