[Script] GhostFall 1.1 hotfix

Avatar

By yorik100 14 December 2018 12:49

Member · 840 comments

Pretty much NoFall but you only take 0.5 max heart when you land (you'll look legit while taking barely any damage), this won't work on servers who patched ncp damage


var scriptName = "CleanFall";
var scriptVersion = 1.1;
var scriptAuthor = "yorik100";
var noFallModule = moduleManager.getModule("NoFall");
var BlockPos = Java.type('net.minecraft.util.BlockPos');
var S08PacketPlayerPosLook = Java.type("net.minecraft.network.play.server.S08PacketPlayerPosLook");

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.onPacket = function (event) {
        var packet = event.getPacket();
        if (packet instanceof S08PacketPlayerPosLook) {
	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 > 8){
	fortnite = 0;
	mc.thePlayer.fallDistance = 0;
}
if (mc.thePlayer.fallDistance > 3.34) {
fortnite++;
}
if (mc.thePlayer.onGround && fortnite != 0){
    fortnite = 0
	noFallModule.setState(false)
	commandManager.executeCommand(".hurt");
}else{
	noFallModule.setState(true)
}
}
    this.onDisable = function () {
    }
}

function onLoad() {}

function onEnable() {
    client = moduleManager.registerModule(cleanFall);
}

function onDisable() {
    moduleManager.unregisterModule(client);
}

Last edited by yorik100 (10 February 2020 19:14)

Avatar

By Virus 14 December 2018 13:45

Member · 351 comments
Avatar

By yorik100 9 February 2019 12:12

Member · 840 comments

1.1 : Added "teleport" detection, you won't get damaged after getting teleported

Avatar

By Elelrxi 9 February 2019 14:19

Member · 229 comments
yorik100 wrote

1.1 : Added "teleport" detection, you won't get damaged after getting teleported

Ty daddy

Avatar

By yorik100 19 February 2019 23:42

Member · 840 comments

Edit : This plugin can make any nofall bypass DAC

Avatar

By yorik100 15 June 2019 09:41

Member · 840 comments

Update : Now resetting fall when in water/lava

Avatar

By michaelpt9 15 June 2019 11:42

Member · 168 comments

What a nice idea, very good.


ScriptAPI fucktard.

Avatar

By michaelpt9 15 June 2019 11:43

Member · 168 comments

why exactly 2.695?


ScriptAPI fucktard.

Avatar

By yorik100 15 June 2019 11:56

Member · 840 comments
michaelpt9 wrote

why exactly 2.695?

If you fall less than 2.695 blocks you start taking damage

Avatar

By yorik100 23 June 2019 22:16

Member · 840 comments

Fixed fall not resetting on ladders/vines

Avatar

By Candy 29 July 2019 09:33

Member · 2 comments

Very good Js thank you