step
This commit is contained in:
parent
95ed46fff0
commit
fa3d84db0e
2 changed files with 29 additions and 1 deletions
|
@ -14,7 +14,8 @@ public class ModuleManager
|
||||||
registerModules(
|
registerModules(
|
||||||
new Fly(),
|
new Fly(),
|
||||||
new NoFall(),
|
new NoFall(),
|
||||||
new HUDModule()
|
new HUDModule(),
|
||||||
|
new Step()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue