[Script] GhostFall 1.1 hotfix

Avatar

By yorik100 14 December 2018 12:49

Member · 277 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
https://cdn.discordapp.com/attachments/ … ostFall.js

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){
	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);
}

Last edited by yorik100 (20 August 2019 17:49)

Avatar

By Virus 14 December 2018 13:45

Member · 292 comments

nice

Avatar

By yorik100 9 February 2019 12:12

Member · 277 comments

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

Avatar

By Elelrxi 9 February 2019 14:19

Member · 230 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 · 277 comments

Edit : This plugin can make any nofall bypass DAC

Avatar

By yorik100 15 June 2019 09:41

Member · 277 comments

Update : Now resetting fall when in water/lava

Avatar

By michaelpt9 15 June 2019 11:42

Member · 83 comments

What a nice idea, very good.


Config creator.

Avatar

By michaelpt9 15 June 2019 11:43

Member · 83 comments

why exactly 2.695?


Config creator.

Avatar

By yorik100 15 June 2019 11:56

Member · 277 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 · 277 comments

Fixed fall not resetting on ladders/vines

Avatar

By Candy 29 July 2019 09:33

Member · 2 comments

Very good Js thank you