FovControl module

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

1 implementationVISUALS

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.

CombatantVISUALSsrc/main/java/combatant/client/features/module/modules/visuals/FovControl.javaJava · 100 lines · 3.1 KB
SettingsfovControlUseCustomfovControlCustomFovfovControlExpandScalefovControlShrinkScalefovControlToggles
FovControl.javaJava · Minecraft 26.2 · 100 lines · 3.1 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 combatant.client.config.values.BooleanMapValue;
11
import combatant.client.config.values.BooleanValue;
12
import combatant.client.config.values.NumberValue;
13
import combatant.client.features.module.Module;
14
import combatant.client.features.module.ModuleCategory;
15
import combatant.client.features.module.ModuleInfo;
16
17
import java.util.LinkedHashMap;
18
19
//todo Description
20
@ModuleInfo(
21
        id = "fovcontrol",
22
        displayName = "FovControl",
23
        category = ModuleCategory.VISUALS
24
)
25
public class FovControl extends Module {
26
    private static final String SETTING_USE_CUSTOM_FOV = "use_custom_fov";
27
    private static final String SETTING_CUSTOM_FOV = "custom_fov";
28
    private static final String SETTING_EXPAND_SCALE = "expand_scale";
29
    private static final String SETTING_SHRINK_SCALE = "shrink_scale";
30
    private static final String SETTING_DISABLE_FACTORS = "disable_factors";
31
32
    private final BooleanValue useCustomFov =
33
            bool("fovControlUseCustom", SETTING_USE_CUSTOM_FOV, false);
34
    private final NumberValue<Integer> customFov =
35
            visibleWhen(num("fovControlCustomFov", SETTING_CUSTOM_FOV, 70, 10, 350), useCustomFov::get);
36
37
    private final NumberValue<Float> expandScale =
38
            num("fovControlExpandScale", SETTING_EXPAND_SCALE, 1.0f, 0.0f, 2.0f);
39
    private final NumberValue<Float> shrinkScale =
40
            num("fovControlShrinkScale", SETTING_SHRINK_SCALE, 1.0f, 0.0f, 2.0f);
41
42
    private final BooleanMapValue toggles = group(
43
            "fovControlToggles",
44
            SETTING_DISABLE_FACTORS,
45
            new LinkedHashMap<>() {{
46
                put("Sprint", false);
47
                put("Speed effects", false);
48
                put("Slowness effects", false);
49
                put("Flying", false);
50
                put("Bow", false);
51
                put("Spyglass", false);
52
                put("Fluid", false);
53
            }}
54
    );
55
56
    public boolean useCustomFov() {
57
        return isEnabled() && useCustomFov.get();
58
    }
59
60
    public int getCustomFov() {
61
        return customFov.get();
62
    }
63
64
    public float getExpandScale() {
65
        return expandScale.get();
66
    }
67
68
    public float getShrinkScale() {
69
        return shrinkScale.get();
70
    }
71
72
    public boolean disableSprintFov() {
73
        return isEnabled() && toggles.get("Sprint");
74
    }
75
76
    public boolean disableSpeedFov() {
77
        return isEnabled() && toggles.get("Speed effects");
78
    }
79
80
    public boolean disableSlownessFov() {
81
        return isEnabled() && toggles.get("Slowness effects");
82
    }
83
84
    public boolean disableFlyingFov() {
85
        return isEnabled() && toggles.get("Flying");
86
    }
87
88
    public boolean disableBowFov() {
89
        return isEnabled() && toggles.get("Bow");
90
    }
91
92
    public boolean disableSpyglassFov() {
93
        return isEnabled() && toggles.get("Spyglass");
94
    }
95
96
    public boolean disableFluidFov() {
97
        return isEnabled() && toggles.get("Fluid");
98
    }
99
}
100