ClearView module

ClearView: Minecraft 26.3 cheat module, full source for every implementation (1 client: OfflineClient).

1 implementationRENDER

Clients with this module

Full module source: 1 implementation

Every implementation below is the complete module file, verbatim. Expand a client to read its code.

OfflineClientRENDERsrc/main/java/com/jellypudding/offlineclient/modules/render/ClearView.javaJava · 181 lines · 7.5 KB

Removes screen overlays that hide what you need to see.

SettingsPumpkinPowder snowVignetteFireLower fireWaterBlock in faceFogParticlesParticle typesEating crumbsSpyglassBoss barsScoreboardTitlesItem namesEffect iconsTotem popCrosshairMagic textChat signature barTutorial tipsRecipe toastsAdvancement toasts
ClearView.javaJava · Minecraft 26.2 · 181 lines · 7.5 KB · complete file, verbatimOriginal ↗
1
package com.jellypudding.offlineclient.modules.render;
2
3
import com.jellypudding.offlineclient.module.Category;
4
import com.jellypudding.offlineclient.module.Module;
5
import com.jellypudding.offlineclient.setting.BoolSetting;
6
import com.jellypudding.offlineclient.setting.EnumSetting;
7
import com.jellypudding.offlineclient.setting.NumberSetting;
8
import com.jellypudding.offlineclient.setting.RegistryListSetting;
9
import net.minecraft.client.gui.components.toasts.AdvancementToast;
10
import net.minecraft.client.gui.components.toasts.RecipeToast;
11
import net.minecraft.client.gui.components.toasts.Toast;
12
import net.minecraft.client.gui.components.toasts.TutorialToast;
13
import net.minecraft.core.particles.ParticleType;
14
import net.minecraft.core.registries.BuiltInRegistries;
15
16
import java.util.List;
17
18
// Overlay removal happens in HudMixin and ScreenEffectRendererMixin and
19
// FogRendererMixin and ParticleEngineMixin and ToastManagerMixin which check these settings.
20
public final class ClearView extends Module {
21
22
    public enum Particles { KEEP, HIDE_ALL, HIDE_CHOSEN }
23
24
    private final BoolSetting pumpkin = new BoolSetting("Pumpkin",
25
        "Removes the carved pumpkin overlay.", true);
26
    private final BoolSetting powderSnow = new BoolSetting("Powder snow",
27
        "Removes the powder snow frost overlay.", true);
28
    private final BoolSetting vignette = new BoolSetting("Vignette",
29
        "Removes the dark border around the screen edges.", false);
30
    private final BoolSetting fire = new BoolSetting("Fire",
31
        "Removes the flames drawn over your view whilst you burn.", true);
32
    private final NumberSetting lowerFire = new NumberSetting("Lower fire",
33
        "Pushes the flames down out of your view instead of removing them.", 0, 0, 0.6, 0.01, " blocks")
34
        .min(0).max(1).unless(fire);
35
    private final BoolSetting water = new BoolSetting("Water",
36
        "Removes the blue tint drawn over your view underwater.", false);
37
    private final BoolSetting blockInFace = new BoolSetting("Block in face",
38
        "Removes the block texture drawn over your view when your head is inside one.", true);
39
    private final BoolSetting fog = new BoolSetting("Fog",
40
        "Pushes fog far enough away that it never hides anything.", false);
41
    private final EnumSetting<Particles> particles = new EnumSetting<>("Particles",
42
        "Which particles are stopped from spawning.", Particles.KEEP)
43
        .describe(Particles.KEEP, "Every particle spawns as normal.")
44
        .describe(Particles.HIDE_ALL, "No particle spawns at all.")
45
        .describe(Particles.HIDE_CHOSEN, "Only the particle types picked below are stopped.");
46
    private final RegistryListSetting<ParticleType<?>> particleTypes = new RegistryListSetting<>(
47
        "Particle types", "The particles that are stopped.", BuiltInRegistries.PARTICLE_TYPE, List.of())
48
        .under(particles, Particles.HIDE_CHOSEN);
49
    private final BoolSetting eatingCrumbs = new BoolSetting("Eating crumbs",
50
        "Stops the crumbs that fly whilst something is eaten.", false);
51
    private final BoolSetting spyglass = new BoolSetting("Spyglass",
52
        "Removes the black frame whilst you look through a spyglass.", false);
53
    private final BoolSetting bossBars = new BoolSetting("Boss bars",
54
        "Hides boss health bars.", false);
55
    private final BoolSetting scoreboard = new BoolSetting("Scoreboard",
56
        "Hides the sidebar scoreboard.", false);
57
    private final BoolSetting titles = new BoolSetting("Titles",
58
        "Hides titles the server puts in the middle of the screen.", false);
59
    private final BoolSetting itemNames = new BoolSetting("Item names",
60
        "Hides the name that pops up above the hotbar on a slot change.", false);
61
    private final BoolSetting effectIcons = new BoolSetting("Effect icons",
62
        "Hides the potion effect icons in the top right corner.", false);
63
    private final BoolSetting totemPop = new BoolSetting("Totem pop",
64
        "Skips the totem animation that fills the screen.", false);
65
    private final BoolSetting crosshair = new BoolSetting("Crosshair",
66
        "Hides the crosshair.", false);
67
    private final BoolSetting magicText = new BoolSetting("Magic text",
68
        "Scrambled text is drawn as plain letters.", false);
69
    private final BoolSetting signatureBar = new BoolSetting("Chat signature bar",
70
        "Hides the coloured bar beside signed chat lines.", false);
71
    private final BoolSetting tutorialTips = new BoolSetting("Tutorial tips",
72
        "Hides the tips like Open your inventory that pop up in the top right corner.", true);
73
    private final BoolSetting recipeToasts = new BoolSetting("Recipe toasts",
74
        "Hides the new recipe pop ups in the top right corner.", false);
75
    private final BoolSetting advancementToasts = new BoolSetting("Advancement toasts",
76
        "Hides the advancement pop ups in the top right corner.", false);
77
78
    public ClearView() {
79
        super("ClearView", "Removes screen overlays that hide what you need to see.", Category.RENDER);
80
        addSettings(pumpkin, powderSnow, vignette, fire, lowerFire, water, blockInFace, fog, particles,
81
            particleTypes, eatingCrumbs, spyglass, bossBars, scoreboard, titles, itemNames,
82
            effectIcons, totemPop, crosshair, magicText, signatureBar, tutorialTips, recipeToasts,
83
            advancementToasts);
84
        searchTags("no fog", "no fire", "no overlay", "no particles", "norender", "toasts",
85
            "tutorial");
86
    }
87
88
    public boolean blocksPumpkin() {
89
        return pumpkin.isOn();
90
    }
91
92
    public boolean blocksPowderSnow() {
93
        return powderSnow.isOn();
94
    }
95
96
    public boolean blocksVignette() {
97
        return vignette.isOn();
98
    }
99
100
    public boolean blocksFire() {
101
        return fire.isOn();
102
    }
103
104
    // How far the flames are pushed down when they are kept.
105
    public double fireOffset() {
106
        return fire.isOn() ? 0 : lowerFire.getValue();
107
    }
108
109
    public boolean blocksWater() {
110
        return water.isOn();
111
    }
112
113
    public boolean blocksBlockInFace() {
114
        return blockInFace.isOn();
115
    }
116
117
    public boolean blocksFog() {
118
        return fog.isOn();
119
    }
120
121
    public boolean blocksAllParticles() {
122
        return particles.is(Particles.HIDE_ALL);
123
    }
124
125
    public boolean blocksParticle(ParticleType<?> type) {
126
        return particles.is(Particles.HIDE_ALL)
127
            || particles.is(Particles.HIDE_CHOSEN) && particleTypes.contains(type);
128
    }
129
130
    public boolean blocksEatingCrumbs() {
131
        return eatingCrumbs.isOn();
132
    }
133
134
    public boolean blocksCrosshair() {
135
        return crosshair.isOn();
136
    }
137
138
    public boolean blocksMagicText() {
139
        return magicText.isOn();
140
    }
141
142
    public boolean blocksSignatureBar() {
143
        return signatureBar.isOn();
144
    }
145
146
    // Read by ToastManagerMixin. The client's own toasts always get through.
147
    public boolean blocksToast(Toast toast) {
148
        return toast instanceof TutorialToast && tutorialTips.isOn()
149
            || toast instanceof RecipeToast && recipeToasts.isOn()
150
            || toast instanceof AdvancementToast && advancementToasts.isOn();
151
    }
152
153
    public boolean blocksSpyglass() {
154
        return spyglass.isOn();
155
    }
156
157
    public boolean blocksBossBars() {
158
        return bossBars.isOn();
159
    }
160
161
    public boolean blocksScoreboard() {
162
        return scoreboard.isOn();
163
    }
164
165
    public boolean blocksTitles() {
166
        return titles.isOn();
167
    }
168
169
    public boolean blocksItemNames() {
170
        return itemNames.isOn();
171
    }
172
173
    public boolean blocksEffectIcons() {
174
        return effectIcons.isOn();
175
    }
176
177
    public boolean blocksTotemPop() {
178
        return totemPop.isOn();
179
    }
180
}
181