Can Somebody Help Me To Get The Code Down Below To Work? I Am Slightly Confused On This Scripting API.
const script = registerScript({
name: "AntiVulcanLimit",
version: "1.0.0",
authors: ["IgniteTNT"]
});
var sneakCooldown = 200; // Cooldown in milliseconds
script.registerModule({
name: "VulcanLimit",
category: "Misc", // Movement, Combat, Renderr, ...
description: "Bypass Vulcan's Limit Check When Scaffolding"
}, (mod) => {
mod.on("enable", () => {
Client.displayChatMessage("§aEnabled AntiVulcanLimit :)");
mc.gameSettings.keyBindSneak.pressed = true;
setTimeout(function() {
mc.gameSettings.keyBindSneak.pressed = false;
}, sneakCooldown);
});
mod.on("disable", () => {
Client.displayChatMessage("§aDisabled AntiVulcanLimit :(");
});
this.onGround = function(event) {
mc.gameSettings.keyBindSneak.pressed = true;
setTimeout(function() {
mc.gameSettings.keyBindSneak.pressed = false;
}, sneakCooldown);
}
});