NoBackground module

NoBackground: 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/NoBackground.javaJava · 29 lines · 1.1 KB

Removes the dark tint behind inventory screens.

SettingsAll screens
NoBackground.javaJava · Minecraft 26.2 · 29 lines · 1.1 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 net.minecraft.client.gui.screens.Screen;
7
import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen;
8
9
// ScreenMixin skips the dark tint behind a screen.
10
public final class NoBackground extends Module {
11
12
    private final BoolSetting allScreens = new BoolSetting("All screens",
13
        "Clears the tint behind every screen rather than just inventories.", false);
14
15
    public NoBackground() {
16
        super("NoBackground", "Removes the dark tint behind inventory screens.", Category.RENDER);
17
        addSettings(allScreens);
18
        searchTags("gui background", "no gradient");
19
    }
20
21
    // Menus outside a world keep their background. There is nothing to see behind them.
22
    public boolean clears(Screen screen) {
23
        if (!isEnabled() || mc.level == null) {
24
            return false;
25
        }
26
        return allScreens.isOn() || screen instanceof AbstractContainerScreen;
27
    }
28
}
29