NewChunks: Added height, NoLag: Enabled particles by default(big fps improvement using this!)

This commit is contained in:
noil 2021-01-23 19:47:07 -05:00
parent 9b41ce010c
commit e4329a53a1
2 changed files with 7 additions and 6 deletions

View File

@ -28,7 +28,8 @@ public final class NewChunksModule extends Module {
public final Value<Mode> mode = new Value<Mode>("Mode", new String[]{"M", "type", "t"}, "Select a mode to use to draw the chunk visual.", Mode.PLANE);
public final Value<Color> color = new Value<Color>("Color", new String[]{"color", "c"}, "Change the color of the chunk visual.", new Color(255, 255, 255));
public final Value<Integer> alpha = new Value<Integer>("Alpha", new String[]{"Alp", "Opacity", "a", "o"}, "Edit the alpha of the chunk visual.", 127, 1, 255, 1);
public final Value<Float> width = new Value<Float>("Width", new String[]{"W", "size", "s"}, "Edit the width chunk visual.", 1.5f, 0.1f, 5.0f, 0.1f);
public final Value<Float> lineWidth = new Value<Float>("LineWidth", new String[]{"Width", "Line-Width", "line", "size", "s", "l"}, "Edit the line width chunk visual.", 1.5f, 0.1f, 5.0f, 0.1f);
public final Value<Float> height = new Value<Float>("Height", new String[]{"H"}, "Edit the height of the chunk visual.", 3f, 1f, 25f, 1f);
public enum Mode {
BOX, OUTLINE, PLANE
@ -85,17 +86,17 @@ public final class NewChunksModule extends Module {
double x = chunkData.x - mc.getRenderManager().viewerPosX;
double y = -mc.getRenderManager().viewerPosY;
double z = chunkData.z - mc.getRenderManager().viewerPosZ;
final AxisAlignedBB chunkBB = new AxisAlignedBB(0, 0, 0, 16, 2, 16);
final AxisAlignedBB chunkBB = new AxisAlignedBB(0, 0, 0, 16, this.height.getValue(), 16);
switch (this.mode.getValue()) {
case BOX:
RenderUtil.drawFilledBox(x, y, z, chunkBB, ColorUtil.changeAlpha(color, this.alpha.getValue()));
break;
case OUTLINE:
RenderUtil.drawBoundingBox(x, y, z, chunkBB, this.width.getValue(), color);
RenderUtil.drawBoundingBox(x, y, z, chunkBB, this.lineWidth.getValue(), color);
break;
case PLANE:
RenderUtil.drawPlane(x, y, z, new AxisAlignedBB(0, 0, 0, 16, 1, 16), this.width.getValue(), color);
RenderUtil.drawPlane(x, y, z, chunkBB, this.lineWidth.getValue(), color);
break;
}
}

View File

@ -39,8 +39,8 @@ public final class NoLagModule extends Module {
public final Value<Boolean> pistons = new Value<Boolean>("Pistons", new String[]{"Piston", "p"}, "Choose to enable the piston lag fix. Disables pistons from rendering.", false);
public final Value<Boolean> slimes = new Value<Boolean>("Slimes", new String[]{"Slime", "sl"}, "Choose to enable the slime lag fix. Disables slimes from spawning.", false);
public final Value<Boolean> items = new Value<Boolean>("Items", new String[]{"Item", "i"}, "Disables the rendering of items.", false);
public final Value<Boolean> particles = new Value<Boolean>("Particles", new String[]{"Part", "par"}, "Disables the spawning of all particles.", false);
public final Value<Boolean> sky = new Value<Boolean>("Sky", new String[]{"Skies", "ski"}, "Disables the rendering of the sky.", false);
public final Value<Boolean> particles = new Value<Boolean>("Particles", new String[]{"Part", "par"}, "Disables the spawning of all particles.", true);
public final Value<Boolean> sky = new Value<Boolean>("Sky", new String[]{"Skies", "ski"}, "Disables the rendering of the sky.", true);
public final Value<Boolean> names = new Value<Boolean>("Names", new String[]{"Name", "n"}, "Disables the rendering of vanilla name-tags.", false);
public final Value<Boolean> withers = new Value<Boolean>("Withers", new String[]{"Wither", "w"}, "Disables the rendering of withers.", false);
public final Value<Boolean> skulls = new Value<Boolean>("Skulls", new String[]{"WitherSkull", "skulls", "skull", "ws"}, "Disables the rendering of flying wither skulls.", false);