From 633a59a3b48ee911cb96b63f2258ddd9b5f879bf Mon Sep 17 00:00:00 2001 From: cqb13 Date: Thu, 19 Mar 2026 21:52:37 -0400 Subject: [PATCH 1/2] added seperate line and side colors to Break Indicators --- .../modules/render/BreakIndicators.java | 34 +++++++++++++------ 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/render/BreakIndicators.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/render/BreakIndicators.java index cfc126e643..01f26860d8 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/render/BreakIndicators.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/render/BreakIndicators.java @@ -44,16 +44,30 @@ public class BreakIndicators extends Module { .build() ); - private final Setting startColor = sgGeneral.add(new ColorSetting.Builder() - .name("start-color") - .description("The color for the non-broken block.") + private final Setting startSideColor = sgGeneral.add(new ColorSetting.Builder() + .name("start-side-color") + .description("The side color for the non-broken block.") .defaultValue(new SettingColor(25, 252, 25, 150)) .build() ); - private final Setting endColor = sgGeneral.add(new ColorSetting.Builder() - .name("end-color") - .description("The color for the fully-broken block.") + private final Setting startLineColor = sgGeneral.add(new ColorSetting.Builder() + .name("start-line-color") + .description("The line color for the non-broken block.") + .defaultValue(new SettingColor(25, 252, 25, 150)) + .build() + ); + + private final Setting endSideColor = sgGeneral.add(new ColorSetting.Builder() + .name("end-side-color") + .description("The side color for the fully-broken block.") + .defaultValue(new SettingColor(255, 25, 25, 150)) + .build() + ); + + private final Setting endLineColor = sgGeneral.add(new ColorSetting.Builder() + .name("end-line-color") + .description("The line color for the fully-broken block.") .defaultValue(new SettingColor(255, 25, 25, 150)) .build() ); @@ -164,8 +178,8 @@ private void renderBlock(Render3DEvent event, Box orig, BlockPos pos, double shr double y2 = pos.getY() + box.maxY + yShrink; double z2 = pos.getZ() + box.maxZ + zShrink; - Color c1Sides = startColor.get().copy().a(startColor.get().a / 2); - Color c2Sides = endColor.get().copy().a(endColor.get().a / 2); + Color c1Sides = startSideColor.get().copy().a(startSideColor.get().a / 2); + Color c2Sides = endSideColor.get().copy().a(endSideColor.get().a / 2); cSides.set( (int) Math.round(c1Sides.r + (c2Sides.r - c1Sides.r) * progress), @@ -174,8 +188,8 @@ private void renderBlock(Render3DEvent event, Box orig, BlockPos pos, double shr (int) Math.round(c1Sides.a + (c2Sides.a - c1Sides.a) * progress) ); - Color c1Lines = startColor.get(); - Color c2Lines = endColor.get(); + Color c1Lines = startLineColor.get(); + Color c2Lines = endLineColor.get(); cLines.set( (int) Math.round(c1Lines.r + (c2Lines.r - c1Lines.r) * progress), From 53bbed2a5f67e67fefc146d098f42eb695be2b2e Mon Sep 17 00:00:00 2001 From: cqb13 Date: Thu, 19 Mar 2026 21:56:38 -0400 Subject: [PATCH 2/2] hide line and side settings appropriately in Break Indicators --- .../meteorclient/systems/modules/render/BreakIndicators.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/render/BreakIndicators.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/render/BreakIndicators.java index 01f26860d8..c6201c3dae 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/render/BreakIndicators.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/render/BreakIndicators.java @@ -48,6 +48,7 @@ public class BreakIndicators extends Module { .name("start-side-color") .description("The side color for the non-broken block.") .defaultValue(new SettingColor(25, 252, 25, 150)) + .visible(() -> shapeMode.get().sides()) .build() ); @@ -55,6 +56,7 @@ public class BreakIndicators extends Module { .name("start-line-color") .description("The line color for the non-broken block.") .defaultValue(new SettingColor(25, 252, 25, 150)) + .visible(() -> shapeMode.get().lines()) .build() ); @@ -62,6 +64,7 @@ public class BreakIndicators extends Module { .name("end-side-color") .description("The side color for the fully-broken block.") .defaultValue(new SettingColor(255, 25, 25, 150)) + .visible(() -> shapeMode.get().sides()) .build() ); @@ -69,6 +72,7 @@ public class BreakIndicators extends Module { .name("end-line-color") .description("The line color for the fully-broken block.") .defaultValue(new SettingColor(255, 25, 25, 150)) + .visible(() -> shapeMode.get().lines()) .build() );