TickTimer
-
///api_version=2 var Timer = moduleManager.getModule('Timer'); var script = registerScript({ name: "TimerTick", version: "1.0.0", authors: ["ItsDoome1"] }); script.registerModule({ name: "TimerTick", category: "Fun", description: ":>", settings: { SpeedT: Setting.float({ name: "SpeedTimer", default: 1.5, min: 0.0, max: 20.0 }), Tick: Setting.integer({ name: "Tick", default: 1, min: 0, max: 20 }) } }, function (module) { module.on("update", function() { if(mc.thePlayer.ticksExisted % (1*module.settings.Tick.get()) == 0) { Timer.setState(true); } if(mc.thePlayer.ticksExisted % (1*module.settings.Tick.get()+5) == 0) { Timer.setState(false); } }); module.on("disable", function() { Timer.setState(false); }); module.on("enable", function() { moduleManager.getModule("Timer").getValue("Speed").set(module.settings.SpeedT.get()); }) } );
-
best coder 2021
-
@skidma huhu