This commit is contained in:
kawaiizenbo 2023-01-06 09:14:16 -07:00
parent 95ed46fff0
commit fa3d84db0e
2 changed files with 29 additions and 1 deletions

View file

@ -14,7 +14,8 @@ public class ModuleManager
registerModules(
new Fly(),
new NoFall(),
new HUDModule()
new HUDModule(),
new Step()
);
}

View file

@ -0,0 +1,27 @@
package me.kawaiizenbo.moonlight.module.modules;
import me.kawaiizenbo.moonlight.module.Category;
import me.kawaiizenbo.moonlight.module.Module_;
import me.kawaiizenbo.moonlight.module.settings.DoubleSetting;
public class Step extends Module_
{
DoubleSetting stepHeight = new DoubleSetting("Height", 1, 1, 10, 0);
public Step()
{
super("Step", "Allows you to step up full blocks.", Category.MOVEMENT);
}
@Override
public void tick()
{
mc.player.stepHeight = (float)stepHeight.value;
}
@Override
public void onDisable()
{
mc.player.stepHeight = 0.5f;
}
}