BaritoneSettings module

BaritoneSettings: Minecraft 26.3 cheat module, full source for every implementation (1 client: MelaHack (ThunderHack fork)).

1 implementationCLIENT

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.

MelaHack (ThunderHack fork)CLIENTsrc/main/java/thunder/hack/features/modules/client/BaritoneSettings.javaJava · 42 lines · 1.9 KB
SettingsAllowBreakBlockAllowPlaceAllowSprintDebugEnterPortalDesktopNotifications
BaritoneSettings.javaJava · Minecraft 26.2 · 42 lines · 1.9 KB · complete file, verbatimOriginal ↗
1
package thunder.hack.features.modules.client;
2
3
import thunder.hack.utility.BaritoneIntegration;
4
import meteordevelopment.orbit.EventHandler;
5
import thunder.hack.ThunderHack;
6
import thunder.hack.events.impl.EventSetting;
7
import thunder.hack.features.modules.Module;
8
import thunder.hack.setting.Setting;
9
10
import static thunder.hack.features.modules.client.ClientSettings.isRu;
11
12
public final class BaritoneSettings extends Module {
13
    public BaritoneSettings() {
14
        super("BaritoneSettings", Category.CLIENT);
15
    }
16
17
    public final Setting<Boolean> allowBreakBlock = new Setting<>("AllowBreakBlock", true);
18
    public final Setting<Boolean> allowPlace = new Setting<>("AllowPlace", true);
19
    public final Setting<Boolean> allowSprint = new Setting<>("AllowSprint", true);
20
    public final Setting<Boolean> debug = new Setting<>("Debug", false);
21
    public final Setting<Boolean> enterPortal = new Setting<>("EnterPortal", false);
22
    public final Setting<Boolean> desktopNotifications = new Setting<>("DesktopNotifications", false);
23
24
    @EventHandler
25
    public void onSettingChange(EventSetting e) {
26
        if (!ThunderHack.baritone) {
27
            sendMessage(isRu() ? "Баритон не найден (можешь скачать на https://meteorclient.com)" : "Baritone not found (you can download it at https://meteorclient.com)");
28
            return;
29
        }
30
        BaritoneIntegration.setBooleanSetting("allowBreak", allowBreakBlock.getValue());
31
        BaritoneIntegration.setBooleanSetting("allowPlace", allowPlace.getValue());
32
        BaritoneIntegration.setBooleanSetting("allowSprint", allowSprint.getValue());
33
        BaritoneIntegration.setBooleanSetting("chatDebug", debug.getValue());
34
        BaritoneIntegration.setBooleanSetting("enterPortal", enterPortal.getValue());
35
        BaritoneIntegration.setBooleanSetting("desktopNotifications", desktopNotifications.getValue());
36
    }
37
38
    @Override
39
    public boolean isToggleable() {
40
        return false;
41
    }
42
}