[Script] TowerScaffoldz (Updated 1.1 by me)

Avatar

By DrDesten / EZhacks YT 21 November 2018 10:46

Member · 124 comments

I decided to change a few things in this script:

-You can now hold space while walking forward without the tower activating.
-Tower enables faster.
-While Tower is enabled, Scaffold will disable (useful if you are using expand scaffold).
-You wont get stopped in the y-Axis when Tower activates.

I hope you'll enjoy it.
Full credit of the original goes to yorik100

Download: https://drive.google.com/open?id=1eBCkj … ahNwwIgCFd

var scriptName = "ILoveTowerScaffold";
var scriptVersion = 1.1;
var scriptAuthor = "yorik100, EzHacksYT";
var towerModule = moduleManager.getModule("Tower");
var scaffoldModule = moduleManager.getModule("Scaffold");

var towerScaffold = new TowerScaffold();

var client;

var stage = 0;
var moveSpeed = 0;

function TowerScaffold() {
    this.getName = function() {
        return "TowerScaffold";
    };

    this.getDescription = function() {
        return "Scaffold Addon";
    };

    this.getCategory = function() {
        return "World";
    };
    var ticks = 0
    var toggle
    this.onEnable = function() {
        ticks = 0;
    }
    this.onUpdate = function() {
        if (mc.gameSettings.keyBindJump.isKeyDown()) {
			if (mc.gameSettings.keyBindForward.isKeyDown() == false) {
				ticks++;
			}
				if (ticks > 3){
				mc.thePlayer.motionX = 0;
				mc.thePlayer.motionZ = 0;
				mc.thePlayer.jumpMovementFactor = 0;
				mc.thePlayer.onGround = false;
				towerModule.setState(true)
				scaffoldModule.setState(false)
        }
}else{
			    towerModule.setState(false)
				scaffoldModule.setState(true)
				ticks = 0;
		}
}
    this.onDisable = function () {
        ticks = 0
        towerModule.setState(false)
		scaffoldModule.setState(false)
    }
}

function onLoad() {}

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

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

Last edited by DrDesten / EZhacks YT (21 November 2018 10:47)


A guy with many questions and ideas,
Also has and YouTube Channel called EZhacksYT:
https://www.youtube.com/channel/UCNoDEh … ofIwGPntbw

Avatar

By yorik100 21 November 2018 15:49

Member · 71 comments

"-You wont get stopped in the y-Axis when Tower activates." It's to fall down faster since you need to be on ground to use tower, this was for tower to instantly climb up instead of wasting a bit of time since it doesn't activate instantly because I wanted to allow the users to go forward and sprint but your update fixed my problem, gonna do some additions and clean some code then release 1.2 in a sec