AntiBlind module

AntiBlind: Minecraft 26.3 cheat module, full source for every implementation (2 clients: OfflineClient, LiquidBounce (Kotlin)).

2 implementationsRENDER

Full module source: 2 implementations

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

OfflineClientRENDERsrc/main/java/com/jellypudding/offlineclient/modules/render/AntiBlind.javaJava · 41 lines · 1.4 KB

Ignores effects that ruin your view.

SettingsBlindnessDarknessNauseaPortal spin
AntiBlind.javaJava · Minecraft 26.2 · 41 lines · 1.4 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
7
// The behaviour lives in LocalPlayerMixin which reads these settings.
8
public final class AntiBlind extends Module {
9
10
    private final BoolSetting blindness = new BoolSetting("Blindness",
11
        "Ignores the blindness effect.", true);
12
    private final BoolSetting darkness = new BoolSetting("Darkness",
13
        "Ignores the darkness effect and its pulsing dim.", true);
14
    private final BoolSetting nausea = new BoolSetting("Nausea",
15
        "Stops the screen spinning from the nausea effect.", true);
16
    private final BoolSetting portal = new BoolSetting("Portal spin",
17
        "Stops the screen spinning whilst you stand in a portal.", true);
18
19
    public AntiBlind() {
20
        super("AntiBlind", "Ignores effects that ruin your view.", Category.RENDER);
21
        addSettings(blindness, darkness, nausea, portal);
22
        searchTags("blindness", "darkness", "nausea", "no nausea", "portal");
23
    }
24
25
    public boolean blocksBlindness() {
26
        return blindness.isOn();
27
    }
28
29
    public boolean blocksDarkness() {
30
        return darkness.isOn();
31
    }
32
33
    public boolean blocksNausea() {
34
        return nausea.isOn();
35
    }
36
37
    public boolean blocksPortal() {
38
        return portal.isOn();
39
    }
40
}
41
LiquidBounce (Kotlin)RENDERsrc/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/render/ModuleAntiBlind.ktKotlin · 109 lines · 3.6 KB

Protects you from potentially annoying screen effects that obscure your view.

SettingsFireOpacity
ModuleAntiBlind.ktKotlin · Minecraft 26.2 · 109 lines · 3.6 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of LiquidBounce (https://github.com/CCBlueX/LiquidBounce)
3
 *
4
 * Copyright (c) 2015 - 2026 CCBlueX
5
 *
6
 * LiquidBounce is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * LiquidBounce is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with LiquidBounce. If not, see <https://www.gnu.org/licenses/>.
18
 */
19
package net.ccbluex.liquidbounce.features.module.modules.render
20
21
import net.ccbluex.liquidbounce.config.types.list.Tagged
22
import net.ccbluex.liquidbounce.features.module.ClientModule
23
import net.ccbluex.liquidbounce.features.module.ModuleCategories
24
import net.minecraft.client.gui.Gui
25
import net.minecraft.resources.Identifier
26
import net.minecraft.world.item.Items
27
28
/**
29
 * AntiBlind module
30
 *
31
 * Protects you from potentially annoying screen effects that block your view.
32
 */
33
@Suppress("MagicNumber")
34
object ModuleAntiBlind : ClientModule("AntiBlind", ModuleCategories.RENDER, aliases = listOf("NoRender")) {
35
    /**
36
     * @see Items.CARVED_PUMPKIN
37
     * @see Gui.renderCameraOverlays
38
     */
39
    @JvmField
40
    val TEXTURE_PUMPKIN_BLUR: Identifier = Identifier.withDefaultNamespace("textures/misc/pumpkinblur.png")
41
42
    private val render = multiEnumChoice("DoRender",
43
        DoRender.ARMOR,
44
        DoRender.MOB_IN_SPAWNER,
45
        DoRender.ENCHANT_TABLE_BOOK,
46
        DoRender.EAT_PARTICLES,
47
        DoRender.BLOCK_BREAK_PARTICLES,
48
        DoRender.BLOCK_BREAK_OVERLAY,
49
        DoRender.TITLE,
50
        DoRender.MAP_CONTENTS,
51
        DoRender.MAP_MARKERS,
52
        DoRender.FALLING_BLOCKS,
53
        DoRender.BEACON_BEAMS,
54
        DoRender.SKYLIGHT_UPDATES,
55
        DoRender.GUI_BACKGROUND,
56
        DoRender.SPYGLASS_OVERLAY,
57
        DoRender.SIGN_TEXT,
58
        DoRender.INVISIBLE_ENTITIES,
59
        DoRender.BOSS_BARS,
60
        DoRender.EXPLOSION_PARTICLES,
61
        DoRender.WORLD_BORDER,
62
        DoRender.FALLING_LEAVES,
63
    )
64
65
    private val fireOpacity by int("FireOpacity", 100, 0..100, suffix = "%")
66
67
    @JvmStatic
68
    fun canRender(choice: DoRender) = !running || choice in render
69
70
    val fireOpacityPercentage get() =
71
        if (running) {
72
            fireOpacity / 100.0f
73
        } else {
74
            1.0f
75
        }
76
}
77
78
enum class DoRender(override val tag: String) : Tagged {
79
    BLINDING("Blinding"),
80
    DARKNESS("Darkness"),
81
    NAUSEA("Nausea"),
82
    ARMOR("Armor"),
83
    MOB_IN_SPAWNER("MobInSpawner"),
84
    ENCHANT_TABLE_BOOK("EnchantTableBook"),
85
    EAT_PARTICLES("EatParticles"),
86
    BLOCK_BREAK_PARTICLES("BlockBreakParticles"),
87
    BLOCK_BREAK_OVERLAY("BlockBreakOverlay"),
88
    TITLE("Title"),
89
    PUMPKIN_BLUR("PumpkinBlur"),
90
    LIQUIDS_FOG("LiquidsFog"),
91
    POWDER_SNOW_FOG("PowderSnowFog"),
92
    FLOATING_ITEMS("FloatingItems"),
93
    MAP_CONTENTS("MapContents"),
94
    MAP_MARKERS("MapMarkers"),
95
    PORTAL_OVERLAY("PortalOverlay"),
96
    WALL_OVERLAY("WallOverlay"),
97
    FALLING_BLOCKS("FallingBlocks"),
98
    BEACON_BEAMS("BeaconBeams"),
99
    SKYLIGHT_UPDATES("SkylightUpdates"),
100
    GUI_BACKGROUND("GuiBackground"),
101
    SPYGLASS_OVERLAY("SpyglassOverlay"),
102
    SIGN_TEXT("SignText"),
103
    INVISIBLE_ENTITIES("InvisibleEntities"),
104
    BOSS_BARS("BossBars"),
105
    EXPLOSION_PARTICLES("ExplosionParticles"),
106
    WORLD_BORDER("WorldBorder"),
107
    FALLING_LEAVES("FallingLeaves"),
108
}
109