Blank basic script code (in case you want it)

Avatar

By soulplexis 7 September 2019 19:35

Donator · 771 comments

for just in case you want a very basic module script here it is:

var scriptName = "script";
var scriptAuthor = "author"; 
var scriptVersion = 1.0;


function Module() {
    this.getName = function() {
        return "AModule";
    }
    this.getCategory = function() {
        return "Combat";   
    }

    this.getDescription = function() {
        return "It does... something.";
    }
	//
    this.onEnable = function() {
		
    }
	this.onUpdate = function() {
		
	}
	this.onDisable = function() {
		
	}
}

var module = new Module();
var moduleClient;

function onEnable() {
    moduleClient = moduleManager.registerModule(module);
}

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

由我的世界由我既世界驅動, 使你自己嘅世界從未好似而家噉!
I'm not as active on Minecraft (and this community) as I used to be but I can try to help you if you have questions.

Avatar

By Sms_Gamer_3808 7 September 2019 19:37

Member · 767 comments

no u


I don't exist

Avatar

By icewormy3 7 September 2019 20:00

Member · 1,060 comments

actually the best template for scriptAPI newbies