fullbright module

fullbright: Minecraft 26.3 cheat module, full source for every implementation (7 clients: Meteor Client, MelaHack (ThunderHack fork), OfflineClient, …).

7 implementationsRenderRENDERVISUALS

Full module source: 7 implementations

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

Meteor ClientRendersrc/main/java/meteordevelopment/meteorclient/systems/modules/render/Fullbright.javaJava · 120 lines · 4.3 KB

Lights up your world!

Settingsmodelight-typeminimum-light-level
Fullbright.javaJava · Minecraft 26.2 · 120 lines · 4.3 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of the Meteor Client distribution (https://github.com/MeteorDevelopment/meteor-client).
3
 * Copyright (c) Meteor Development.
4
 */
5
6
package meteordevelopment.meteorclient.systems.modules.render;
7
8
import meteordevelopment.meteorclient.events.world.TickEvent;
9
import meteordevelopment.meteorclient.mixin.MobEffectInstanceAccessor;
10
import meteordevelopment.meteorclient.settings.EnumSetting;
11
import meteordevelopment.meteorclient.settings.IntSetting;
12
import meteordevelopment.meteorclient.settings.Setting;
13
import meteordevelopment.meteorclient.settings.SettingGroup;
14
import meteordevelopment.meteorclient.systems.modules.Categories;
15
import meteordevelopment.meteorclient.systems.modules.Module;
16
import meteordevelopment.orbit.EventHandler;
17
import net.minecraft.core.registries.BuiltInRegistries;
18
import net.minecraft.world.effect.MobEffectInstance;
19
import net.minecraft.world.effect.MobEffects;
20
import net.minecraft.world.level.LightLayer;
21
22
public class Fullbright extends Module {
23
    private final SettingGroup sgGeneral = settings.getDefaultGroup();
24
25
    public final Setting<Mode> mode = sgGeneral.add(new EnumSetting.Builder<Mode>()
26
        .name("mode")
27
        .description("The mode to use for Fullbright.")
28
        .defaultValue(Mode.Gamma)
29
        .onChanged(mode -> {
30
            if (isActive()) {
31
                if (mode != Mode.Potion) disableNightVision();
32
                if (mc.levelRenderer != null) {
33
                    mc.levelExtractor.allChanged();
34
                }
35
            }
36
        })
37
        .build()
38
    );
39
40
    public final Setting<LightLayer> lightType = sgGeneral.add(new EnumSetting.Builder<LightLayer>()
41
        .name("light-type")
42
        .description("Which type of light to use for Luminance mode.")
43
        .defaultValue(LightLayer.BLOCK)
44
        .visible(() -> mode.get() == Mode.Luminance)
45
        .onChanged(_ -> {
46
            if (mc.levelRenderer != null && isActive()) {
47
                mc.levelExtractor.allChanged();
48
            }
49
        })
50
        .build()
51
    );
52
53
    private final Setting<Integer> minimumLightLevel = sgGeneral.add(new IntSetting.Builder()
54
        .name("minimum-light-level")
55
        .description("Minimum light level when using Luminance mode.")
56
        .visible(() -> mode.get() == Mode.Luminance)
57
        .defaultValue(8)
58
        .range(0, 15)
59
        .sliderMax(15)
60
        .onChanged(_ -> {
61
            if (mc.levelRenderer != null && isActive()) {
62
                mc.levelExtractor.allChanged();
63
            }
64
        })
65
        .build()
66
    );
67
68
    public Fullbright() {
69
        super(Categories.Render, "fullbright", "Lights up your world!");
70
    }
71
72
    @Override
73
    public void onActivate() {
74
        if (mode.get() == Mode.Luminance) {
75
            mc.levelExtractor.allChanged();
76
        }
77
    }
78
79
    @Override
80
    public void onDeactivate() {
81
        if (mode.get() == Mode.Luminance) {
82
            mc.levelExtractor.allChanged();
83
        } else if (mode.get() == Mode.Potion) disableNightVision();
84
    }
85
86
    public int getLuminance(LightLayer type) {
87
        if (!isActive() || mode.get() != Mode.Luminance || type != lightType.get()) return 0;
88
        return minimumLightLevel.get();
89
    }
90
91
    public boolean getGamma() {
92
        return isActive() && mode.get() == Mode.Gamma;
93
    }
94
95
    @EventHandler
96
    private void onTick(TickEvent.Post event) {
97
        if (mc.player == null || !mode.get().equals(Mode.Potion)) return;
98
        if (mc.player.hasEffect(BuiltInRegistries.MOB_EFFECT.wrapAsHolder(MobEffects.NIGHT_VISION.value()))) {
99
            MobEffectInstance instance = mc.player.getEffect(BuiltInRegistries.MOB_EFFECT.wrapAsHolder(MobEffects.NIGHT_VISION.value()));
100
            if (instance != null && instance.getDuration() < 420)
101
                ((MobEffectInstanceAccessor) instance).meteor$setDuration(420);
102
        } else {
103
            mc.player.addEffect(new MobEffectInstance(BuiltInRegistries.MOB_EFFECT.wrapAsHolder(MobEffects.NIGHT_VISION.value()), 420, 0));
104
        }
105
    }
106
107
    private void disableNightVision() {
108
        if (mc.player == null) return;
109
        if (mc.player.hasEffect(BuiltInRegistries.MOB_EFFECT.wrapAsHolder(MobEffects.NIGHT_VISION.value()))) {
110
            mc.player.removeEffect(BuiltInRegistries.MOB_EFFECT.wrapAsHolder(MobEffects.NIGHT_VISION.value()));
111
        }
112
    }
113
114
    public enum Mode {
115
        Gamma,
116
        Potion,
117
        Luminance
118
    }
119
}
120
MelaHack (ThunderHack fork)RENDERsrc/main/java/thunder/hack/features/modules/render/Fullbright.javaJava · 13 lines · 339 B

Disables darkness.

SettingsMinBright
Fullbright.javaJava · Minecraft 26.2 · 13 lines · 339 B · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.render;
2
3
import thunder.hack.features.modules.Module;
4
import thunder.hack.setting.Setting;
5
6
public class Fullbright extends Module {
7
    public Fullbright() {
8
        super("Fullbright", Category.RENDER);
9
    }
10
11
    public static Setting<Float> minBright = new Setting<>("MinBright", 0.5f, 0f, 1f);
12
}
13
OfflineClientRENDERsrc/main/java/com/jellypudding/offlineclient/modules/render/Fullbright.javaJava · 170 lines · 6.3 KB

See in the dark without torches.

SettingsModeBrightnessLight typeMinimum lightFadeFade speedRestore brightness
Fullbright.javaJava · Minecraft 26.2 · 170 lines · 6.3 KB · complete file, verbatimOriginal ↗
1
package com.jellypudding.offlineclient.modules.render;
2
3
import com.jellypudding.offlineclient.event.Subscribe;
4
import com.jellypudding.offlineclient.event.events.TickEvent;
5
import com.jellypudding.offlineclient.mixinterface.ISimpleOption;
6
import com.jellypudding.offlineclient.module.Category;
7
import com.jellypudding.offlineclient.module.Module;
8
import com.jellypudding.offlineclient.setting.BoolSetting;
9
import com.jellypudding.offlineclient.setting.EnumSetting;
10
import com.jellypudding.offlineclient.setting.NumberSetting;
11
import com.jellypudding.offlineclient.util.ChunkRebuild;
12
import net.minecraft.world.effect.MobEffectInstance;
13
import net.minecraft.world.effect.MobEffects;
14
import net.minecraft.world.level.LightLayer;
15
16
// BrightnessGetterMixin asks for the light floor whilst chunks are lit.
17
public final class Fullbright extends Module {
18
19
    public enum Mode { GAMMA, POTION, LUMINANCE }
20
21
    public enum Layer { BLOCK, SKY }
22
23
    // Night vision only flickers in its last few seconds.
24
    private static final int POTION_TICKS = 420;
25
26
    private static volatile Fullbright instance;
27
28
    private final EnumSetting<Mode> mode = new EnumSetting<>("Mode",
29
        "How the dark is lit.", Mode.GAMMA)
30
        .describe(Mode.GAMMA, "Pushes the brightness slider past its cap.")
31
        .describe(Mode.POTION, "Gives you night vision on your own screen.")
32
        .describe(Mode.LUMINANCE, "Raises the light level of every block so the world is relit rather than washed out.");
33
    private final NumberSetting brightness = new NumberSetting("Brightness",
34
        "Gamma level above the vanilla cap of 1.", 16, 1, 16, 0.5)
35
        .under(mode, Mode.GAMMA);
36
    private final EnumSetting<Layer> layer = new EnumSetting<>("Light type",
37
        "Which kind of light is raised.", Layer.BLOCK)
38
        .describe(Layer.BLOCK, "Light from torches and lava and glowstone.")
39
        .describe(Layer.SKY, "Light from the sky.")
40
        .under(mode, Mode.LUMINANCE);
41
    private final NumberSetting minimumLight = new NumberSetting("Minimum light",
42
        "No block is lit below this level.", 8, 0, 15, 1, "").min(0).max(15)
43
        .under(mode, Mode.LUMINANCE);
44
    private final BoolSetting fade = new BoolSetting("Fade",
45
        "Ease the brightness up instead of snapping to it.", true)
46
        .under(mode, Mode.GAMMA);
47
    private final NumberSetting fadeStep = new NumberSetting("Fade speed",
48
        "How much of the gap is closed each tick.", 1, 0.1, 4, 0.1).min(0.05)
49
        .under(fade, () -> mode.is(Mode.GAMMA) && fade.isOn());
50
    private final NumberSetting restoreBrightness = new NumberSetting("Restore brightness",
51
        "The gamma the game goes back to once this is off.", 1, 0, 1, 0.05).min(0).max(1)
52
        .under(mode, Mode.GAMMA);
53
54
    // Where the fade has reached. Jumps straight to the target whilst fade is off.
55
    private double shown = 1;
56
    private Mode running;
57
    private int lastMinimum;
58
    private Layer lastLayer;
59
60
    public Fullbright() {
61
        super("Fullbright", "See in the dark without torches.", Category.RENDER);
62
        addSettings(mode, brightness, layer, minimumLight, fade, fadeStep,
63
            restoreBrightness);
64
        searchTags("night vision", "brightness");
65
        instance = this;
66
    }
67
68
    public static Fullbright get() {
69
        return instance;
70
    }
71
72
    @Override
73
    public String getSuffix() {
74
        return mode.getValueString();
75
    }
76
77
    @Override
78
    protected void onEnable() {
79
        // A crash whilst enabled leaves the boosted gamma in options.txt. Vanilla caps at 1.
80
        shown = Math.min(mc.options.gamma().get(), 1.0);
81
        running = mode.getValue();
82
        lastMinimum = minimumLight.getInt();
83
        lastLayer = layer.getValue();
84
        if (running == Mode.LUMINANCE) {
85
            relight();
86
        }
87
    }
88
89
    @Override
90
    protected void onDisable() {
91
        stop(running);
92
        running = null;
93
    }
94
95
    // Undoes what one mode did. A mode swap whilst on leaves nothing behind.
96
    private void stop(Mode mode) {
97
        if (mode == null) {
98
            return;
99
        }
100
        switch (mode) {
101
            case GAMMA -> setGamma(restoreBrightness.getValue());
102
            case POTION -> {
103
                if (mc.player != null) {
104
                    mc.player.removeEffect(MobEffects.NIGHT_VISION);
105
                }
106
            }
107
            case LUMINANCE -> relight();
108
        }
109
    }
110
111
    @Subscribe
112
    private void onTick(TickEvent event) {
113
        if (running != mode.getValue()) {
114
            stop(running);
115
            running = mode.getValue();
116
            if (running == Mode.LUMINANCE) {
117
                relight();
118
            }
119
        }
120
        switch (running) {
121
            case GAMMA -> setGamma(stepTowards(brightness.getValue()));
122
            case POTION -> topUpNightVision();
123
            case LUMINANCE -> {
124
                if (lastMinimum != minimumLight.getInt() || lastLayer != layer.getValue()) {
125
                    lastMinimum = minimumLight.getInt();
126
                    lastLayer = layer.getValue();
127
                    relight();
128
                }
129
            }
130
        }
131
    }
132
133
    // The gamma to show this tick. Fade walks it towards the target a step at a time.
134
    private double stepTowards(double target) {
135
        if (!fade.isOn()) {
136
            shown = target;
137
            return shown;
138
        }
139
        double step = fadeStep.getValue();
140
        shown += Math.clamp(target - shown, -step, step);
141
        return shown;
142
    }
143
144
    private void topUpNightVision() {
145
        MobEffectInstance current = mc.player.getEffect(MobEffects.NIGHT_VISION);
146
        if (current == null || current.getDuration() < POTION_TICKS) {
147
            mc.player.addEffect(new MobEffectInstance(MobEffects.NIGHT_VISION, POTION_TICKS, 0));
148
        }
149
    }
150
151
    // Every chunk is meshed again with the new light floor.
152
    private void relight() {
153
        ChunkRebuild.now();
154
    }
155
156
    // The floor for one light layer or nought when the layer is left alone.
157
    public int lightFloor(LightLayer type) {
158
        if (!isEnabled() || running != Mode.LUMINANCE) {
159
            return 0;
160
        }
161
        boolean wanted = type == LightLayer.SKY ? layer.is(Layer.SKY) : layer.is(Layer.BLOCK);
162
        return wanted ? minimumLight.getInt() : 0;
163
    }
164
165
    @SuppressWarnings("unchecked")
166
    private void setGamma(double gamma) {
167
        ((ISimpleOption<Double>) (Object) mc.options.gamma()).offlineclient$forceSetValue(gamma);
168
    }
169
}
170
CombatantVISUALSsrc/main/java/combatant/client/features/module/modules/visuals/FullBright.javaJava · 44 lines · 1.3 KB
SettingsfullBrightMinLight
FullBright.javaJava · Minecraft 26.2 · 44 lines · 1.3 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of the Combatant Client distribution.
3
 * Copyright (c) 2026 pivosos2007.
4
 *
5
 * Licensed under the GNU General Public License v3.0.
6
 */
7
8
package combatant.client.features.module.modules.visuals;
9
10
import net.minecraft.util.Mth;
11
import combatant.client.config.values.NumberValue;
12
import combatant.client.events.EventHandler;
13
import combatant.client.events.impl.LightmapModifyEvent;
14
import combatant.client.features.module.Module;
15
import combatant.client.features.module.ModuleCategory;
16
import combatant.client.features.module.ModuleInfo;
17
18
//todo Description
19
@ModuleInfo(
20
        id = "fullbright",
21
        displayName = "FullBright",
22
        category = ModuleCategory.VISUALS
23
)
24
public class FullBright extends Module {
25
26
    private static final String SETTING_MIN_LIGHT = "min_light";
27
    private final NumberValue<Integer> minLight =
28
            num("fullBrightMinLight", SETTING_MIN_LIGHT, 15, 1, 15);
29
30
    public int getMinLight() {
31
        return isEnabled() ? minLight.get() : 0;
32
    }
33
34
    public float getMinLightStrength() {
35
        return isEnabled() ? Mth.clamp(minLight.get(), 1, 15) / 15.0f : 0.0f;
36
    }
37
38
    @EventHandler
39
    private void onLightmapState(LightmapModifyEvent event) {
40
        if (!isEnabled()) return;
41
        event.raiseMinimumLight(getMinLightStrength());
42
    }
43
}
44
NicotineRendersrc/client/java/nicotine/mod/mods/render/FullBright.javaJava · 22 lines · 503 B
FullBright.javaJava · Minecraft 26.3 · 22 lines · 503 B · complete file, verbatimOriginal ↗
1
package nicotine.mod.mods.render;
2
3
import net.minecraft.client.OptionInstance;
4
import nicotine.mod.Mod;
5
import nicotine.mod.ModCategory;
6
7
import static nicotine.util.Common.mc;
8
9
public class FullBright extends Mod {
10
11
    public FullBright() {
12
        super(ModCategory.Render, "FullBright");
13
    }
14
15
    @Override
16
    public void toggle() {
17
        OptionInstance<Double> gammaOption = mc.options.gamma();
18
        this.enabled = !this.enabled;
19
        gammaOption.set(enabled ? 1000000.0 : 1.0);
20
    }
21
}
22
KiwiClientRENDERsrc/main/java/com/tangykiwi/kiwiclient/module/render/FullBright.javaJava · 37 lines · 1.2 KB

Increases gamma

FullBright.javaJava · Minecraft 26.2 · 37 lines · 1.2 KB · complete file, verbatimOriginal ↗
1
package com.tangykiwi.kiwiclient.module.render;
2
3
import static com.tangykiwi.kiwiclient.KiwiClient.mc;
4
5
import com.google.common.eventbus.Subscribe;
6
import com.tangykiwi.kiwiclient.event.TickEvent;
7
import com.tangykiwi.kiwiclient.mixininterface.ISimpleOption;
8
import com.tangykiwi.kiwiclient.module.Category;
9
import com.tangykiwi.kiwiclient.module.Module;
10
11
import net.minecraft.client.OptionInstance;
12
13
public class FullBright extends Module {
14
    public FullBright() {
15
        super("FullBright", "Increases gamma", Category.RENDER);
16
    }
17
18
    @Subscribe
19
    public void onTick(TickEvent.Post e) {
20
        if (mc.options.gamma().get() < 16) {
21
            OptionInstance<Double> gammaOption = mc.options.gamma();
22
            @SuppressWarnings("unchecked")
23
            ISimpleOption<Double> gammaOption2 = (ISimpleOption<Double>)(Object)gammaOption;
24
            gammaOption2.forceSetValue(gammaOption.get() + 0.5);
25
        }
26
    }
27
28
    @Override
29
    public void onDisable() {
30
        super.onDisable();
31
        OptionInstance<Double> gammaOption = mc.options.gamma();
32
        @SuppressWarnings("unchecked")
33
        ISimpleOption<Double> gammaOption2 = (ISimpleOption<Double>)(Object)gammaOption;
34
        gammaOption2.forceSetValue(1.0);
35
    }
36
}
37
LiquidBounce (Kotlin)RENDERsrc/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/render/ModuleFullBright.ktKotlin · 82 lines · 2.5 KB

Makes the world a brighter place.

SettingsBrightness
ModuleFullBright.ktKotlin · Minecraft 26.2 · 82 lines · 2.5 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.group.Mode
22
import net.ccbluex.liquidbounce.config.types.group.ModeValueGroup
23
import net.ccbluex.liquidbounce.event.events.PlayerPostTickEvent
24
import net.ccbluex.liquidbounce.event.handler
25
import net.ccbluex.liquidbounce.features.module.ClientModule
26
import net.ccbluex.liquidbounce.features.module.ModuleCategories
27
import net.minecraft.world.effect.MobEffectInstance
28
import net.minecraft.world.effect.MobEffects
29
30
/**
31
 * A full bright module
32
 *
33
 * Allows you to see in the dark.
34
 */
35
object ModuleFullBright : ClientModule("FullBright", ModuleCategories.RENDER) {
36
37
    private val modes = choices(
38
        "Mode", FullBrightGamma, arrayOf(
39
            FullBrightGamma, FullBrightNightVision
40
        )
41
    )
42
43
    object FullBrightGamma : Mode("Gamma") {
44
45
        override val parent: ModeValueGroup<Mode>
46
            get() = modes
47
48
        val brightness by int("Brightness", 15, 1..15)
49
50
        var gamma = 0.0F
51
            private set
52
53
        override fun enable() {
54
            gamma = mc.options.gamma().get().toFloat()
55
        }
56
57
        val tickHandler = handler<PlayerPostTickEvent> {
58
            if (gamma < brightness) {
59
                gamma = (gamma + 0.1F).coerceAtMost(brightness.toFloat())
60
            }
61
        }
62
63
    }
64
65
    private object FullBrightNightVision : Mode("NightVision") {
66
67
        override val parent: ModeValueGroup<Mode>
68
            get() = modes
69
70
        @Suppress("unused")
71
        val tickHandler = handler<PlayerPostTickEvent> {
72
            player.addEffect(MobEffectInstance(MobEffects.NIGHT_VISION, 1337))
73
        }
74
75
        override fun disable() {
76
            player.removeEffect(MobEffects.NIGHT_VISION)
77
        }
78
79
    }
80
81
}
82