TrueSight module

TrueSight: 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/TrueSight.javaJava · 50 lines · 1.7 KB

Renders invisible entities.

SettingsStrength
TrueSight.javaJava · Minecraft 26.2 · 50 lines · 1.7 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.NumberSetting;
6
import com.jellypudding.offlineclient.util.ColorUtil;
7
import com.jellypudding.offlineclient.util.EntityFilter;
8
import net.minecraft.world.entity.Entity;
9
import net.minecraft.world.entity.LivingEntity;
10
11
import java.util.List;
12
13
// EntityRendererMixin flags them and LivingEntityRendererMixin forces the body to render.
14
public final class TrueSight extends Module {
15
16
    private static volatile TrueSight instance;
17
18
    private final EntityFilter filter = EntityFilter.living("Reveal", "revealed", true,
19
        EntityFilter.Pick.ALL, List.of());
20
    private final NumberSetting strength = new NumberSetting("Strength",
21
        "How solid the invisible entity looks.", 0.4, 0.1, 1, 0.05).min(0.05).max(1);
22
23
    public TrueSight() {
24
        super("TrueSight", "Renders invisible entities.", Category.RENDER);
25
        addSettings(filter.settings());
26
        addSettings(strength);
27
        searchTags("invisible", "potion", "reveal");
28
        instance = this;
29
    }
30
31
    // Null before the client has started.
32
    public static TrueSight get() {
33
        return instance;
34
    }
35
36
    public boolean applies(Entity entity) {
37
        if (!isEnabled() || entity == mc.player || !entity.isInvisible()) {
38
            return false;
39
        }
40
        if (!(entity instanceof LivingEntity living) || !living.isAlive()) {
41
            return false;
42
        }
43
        return filter.matches(entity);
44
    }
45
46
    public int tint() {
47
        return ColorUtil.fade(0xFFFFFFFF, strength.getFloat());
48
    }
49
}
50
LiquidBounce (Kotlin)RENDERsrc/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/render/ModuleTrueSight.ktKotlin · 64 lines · 2.4 KB

Allows you to see invisible objects and entities.

SettingsSightEntityColorEntityFeatureLayerColor
ModuleTrueSight.ktKotlin · Minecraft 26.2 · 64 lines · 2.4 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.ccbluex.liquidbounce.features.module.modules.render.esp.ModuleESP
25
import net.ccbluex.liquidbounce.render.engine.type.Color4b
26
import net.ccbluex.liquidbounce.utils.render.entity
27
import net.minecraft.client.renderer.entity.state.LivingEntityRenderState
28
import net.minecraft.world.entity.LivingEntity
29
30
/**
31
 * TrueSight module
32
 *
33
 * Allows you to see invisible objects and entities.
34
 */
35
object ModuleTrueSight : ClientModule("TrueSight", ModuleCategories.RENDER) {
36
    private val sight by multiEnumChoice("Sight", Sight.entries)
37
38
    val barriers get() = Sight.BARRIERS in sight
39
    val lights get() = Sight.LIGHTS in sight
40
    val entities get() = Sight.ENTITIES in sight
41
42
    val entityColor by color("EntityColor", Color4b(255, 255, 255, 100))
43
    val entityFeatureLayerColor by color("EntityFeatureLayerColor", Color4b(255, 255, 255, 120))
44
45
    @JvmStatic
46
    @Suppress("ComplexCondition")
47
    fun canRenderEntities(state: LivingEntityRenderState): Boolean {
48
        val enabled = this.running && entities
49
50
        val entity = state.entity as? LivingEntity ?: return false
51
52
        return (enabled || ModuleESP.running && ModuleESP.requiresTrueSight(entity))
53
            && entity.isInvisible
54
    }
55
56
    private enum class Sight(
57
        override val tag: String
58
    ) : Tagged {
59
        BARRIERS("Barriers"),
60
        LIGHTS("Lights"),
61
        ENTITIES("Entities")
62
    }
63
}
64