AutoToggle Module Script - Liquidbounce Nextgen
-
Fun simple script I made that allows you to auto toggle modules you would like. For example, the default config makes an anti-Vulcan limit so when you are scaffolding it won't flag the pretty poorly made limit checks on Vulcan (most of the time).
Auto Toggle Script:
const script = registerScript({ name: "AutoToggle", version: "1.0.0", authors: ["IgniteTNT"] }); script.registerModule({ name: "AutoToggle", category: "Misc", description: "Automatically toggles on and off a module.", settings: { moduleName: Setting.text({ name: "Module Name", default: "Sneak" }), moduleOn: Setting.int({ name: "On Ticks", default: 2, range: [0, 100] }), moduleOff: Setting.int({ name: "Off Ticks", default: 22, range: [0, 100] }) } }, (mod) => { let ticksPassed = 0; let trackOnOrOff = false; let justEnabledReset = true; const module = Client.moduleManager.getModuleByName(mod.settings.moduleName.value); mod.on("enable", () => { if (!module) { trackOnOrOff = false; Client.displayChatMessage("§cModule not found: " + mod.settings.moduleName.value); return; } module.enabled = true; }); mod.on("disable", () => { ticksPassed = 0; module.enabled = false; }); mod.on("playerTick", () => { if (ticksPassed > 1 && justEnabledReset == true ) { module.enabled = false; } ticksPassed++; if (trackOnOrOff == false && ticksPassed >= mod.settings.moduleOff.value) { module.enabled = true; trackOnOrOff = !trackOnOrOff; ticksPassed = 0; } else if (trackOnOrOff == true && ticksPassed >= mod.settings.moduleOn.value) { module.enabled = false; trackOnOrOff = !trackOnOrOff; ticksPassed = 0; } }); });
Video For Demonstration (posted on random account):
Auto Toggle Script Showcase - Liquidbounce Nextgen – 01:00
— Benny Charles