Better NoFall script (Updated)

Avatar

By soulplexis 8 April 2019 02:50

Donator · 284 comments

Now it toggles less. no more annoying clicky sounds all the time. have fun


1. copy code
2. paste it into a .js file
3. move the file into .minecraft/LiquidBounce-1.8/scripts
code:

var scriptName = "Better NoFall";
var scriptAuthor = "Soulplexis";
var scriptVersion = 1.1;

var antifall = moduleManager.getModule("NoFall");

function noFall() {
var ticks = 0;
    this.getName = function() {
        return "BetterNoFall";
    }

    this.getCategory = function() {
        return "Player";   
    }

    this.getDescription = function() {
        return "Fixes NoFall so that Criticals works.";
    }

    this.onUpdate = function() {
		if(mc.thePlayer.motionY <= -0.45) {
			ticks++ 
			if(ticks >= 3) {
				antifall.setState(true);
			}
		} else {
			antifall.setState(false);
			ticks = 0;
		}
		if(ticks == 3) {
			ticks = 0;
		}
	}
}

var nofall = new noFall();
var nofallClient;

function onEnable() {
    nofallClient = moduleManager.registerModule(nofall);
}

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

【ソルプレクサス】

Avatar

By Sms_Gamer_3808 8 April 2019 03:21

Member · 322 comments

You don't need that var ticks. Just use mc.thePlayer.ticksExist % 3 == 0
but kewl


ਗਨੋਮ ਲਵੋ