last alpha

This commit is contained in:
kawaiizenbo 2023-10-12 15:39:12 -07:00
parent 3ad5af7ea7
commit 5c2a78474a
3 changed files with 43 additions and 2 deletions

View file

@ -21,7 +21,8 @@ public class ModuleManager
new ModulesList(),
new ChatSpammer(),
new Rotation(),
new AutoJump()
new AutoJump(),
new Timer()
);
}

View file

@ -0,0 +1,38 @@
package me.kawaiizenbo.moonlight.module.modules;
import me.kawaiizenbo.moonlight.module.Module;
import me.kawaiizenbo.moonlight.module.settings.DoubleSetting;
import net.minecraft.client.render.RenderTickCounter;
import me.kawaiizenbo.moonlight.module.Category;
public class Timer extends Module
{
public DoubleSetting speed = new DoubleSetting("Speed", 1.5, 0.1, 10, 1);
double current = speed.value;
public Timer()
{
super("Timer", "Changes the number of ticks per second", Category.WORLD);
settings.add(speed);
}
@Override
public void onEnable()
{
super.onEnable();
mc.renderTickCounter = new RenderTickCounter((float)(20.0*speed.value), 0L);
current = speed.value;
}
@Override
public void tick()
{
if (current != speed.value) onEnable();
}
@Override
public void onDisable()
{
super.onDisable();
mc.renderTickCounter = new RenderTickCounter(20.0f, 0L);
}
}

View file

@ -1,2 +1,4 @@
accessWidener v1 named
accessible method net/minecraft/client/gui/DrawContext fillGradient (IIIIIII)V
accessible method net/minecraft/client/gui/DrawContext fillGradient (IIIIIII)V
accessible field net/minecraft/client/MinecraftClient renderTickCounter Lnet/minecraft/client/render/RenderTickCounter;
mutable field net/minecraft/client/MinecraftClient renderTickCounter Lnet/minecraft/client/render/RenderTickCounter;