SkinDerp module

SkinDerp: Minecraft 26.3 cheat module, full source for every implementation (2 clients: OfflineClient, LiquidBounce (Kotlin)).

2 implementationsMISCFUN

Full module source: 2 implementations

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

OfflineClientMISCsrc/main/java/com/jellypudding/offlineclient/modules/misc/SkinDerp.javaJava · 45 lines · 1.6 KB

Makes your skin layers blink on and off for everyone to see.

SettingsChance
SkinDerp.javaJava · Minecraft 26.2 · 45 lines · 1.6 KB · complete file, verbatimOriginal ↗
1
package com.jellypudding.offlineclient.modules.misc;
2
3
import com.jellypudding.offlineclient.event.Subscribe;
4
import com.jellypudding.offlineclient.event.events.TickEvent;
5
import com.jellypudding.offlineclient.module.Category;
6
import com.jellypudding.offlineclient.module.Module;
7
import com.jellypudding.offlineclient.setting.NumberSetting;
8
import net.minecraft.world.entity.player.PlayerModelPart;
9
10
import java.util.concurrent.ThreadLocalRandom;
11
12
// Flicks the skin layers on and off. Vanilla only tells the server about the
13
// layers when the options are saved. The change has to be sent by hand.
14
public final class SkinDerp extends Module {
15
16
    private final NumberSetting chance = new NumberSetting("Chance",
17
        "How likely each tick is to flip the layers.", 25, 1, 100, 1, "%").min(1).max(100);
18
19
    public SkinDerp() {
20
        super("SkinDerp", "Makes your skin layers blink on and off for everyone to see.",
21
            Category.MISC);
22
        addSettings(chance);
23
        searchTags("skin blink", "spooky skin", "troll");
24
    }
25
26
    @Override
27
    protected void onDisable() {
28
        for (PlayerModelPart part : PlayerModelPart.values()) {
29
            mc.options.setModelPart(part, true);
30
        }
31
        mc.options.broadcastOptions();
32
    }
33
34
    @Subscribe
35
    private void onTick(TickEvent event) {
36
        if (!inGame() || ThreadLocalRandom.current().nextInt(100) >= chance.getInt()) {
37
            return;
38
        }
39
        for (PlayerModelPart part : PlayerModelPart.values()) {
40
            mc.options.setModelPart(part, !mc.options.isModelPartEnabled(part));
41
        }
42
        mc.options.broadcastOptions();
43
    }
44
}
45
LiquidBounce (Kotlin)FUNsrc/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/fun/ModuleSkinDerp.ktKotlin · 82 lines · 2.8 KB

Makes the different layers of your skin turn on and off.

SettingsSyncDelayParts
ModuleSkinDerp.ktKotlin · Minecraft 26.2 · 82 lines · 2.8 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.`fun`
20
21
import net.ccbluex.liquidbounce.config.types.list.Tagged
22
import net.ccbluex.liquidbounce.event.tickHandler
23
import net.ccbluex.liquidbounce.event.waitTicks
24
import net.ccbluex.liquidbounce.features.module.ClientModule
25
import net.ccbluex.liquidbounce.features.module.ModuleCategories
26
import net.minecraft.world.entity.player.PlayerModelPart
27
import kotlin.random.Random
28
29
/**
30
 * Skin Derp module
31
 *
32
 * Makes your skin blink (Requires multi-layer skin).
33
 */
34
@Suppress("MagicNumber")
35
object ModuleSkinDerp : ClientModule("SkinDerp", ModuleCategories.FUN) {
36
    private val sync by boolean("Sync", false)
37
    private val delay by int("Delay", 0, 0..20, "ticks")
38
    private val parts by multiEnumChoice("Parts", DerpParts.entries)
39
40
    private var prevModelParts = emptySet<PlayerModelPart>()
41
42
    override fun onEnabled() {
43
        prevModelParts = mc.options.modelParts.toSet()
44
    }
45
46
    override fun onDisabled() {
47
        // Disable all current model parts
48
        for (modelPart in PlayerModelPart.entries) {
49
            mc.options.setModelPart(modelPart, false)
50
        }
51
        // Enable all old model parts
52
        for (modelPart in prevModelParts) {
53
            mc.options.setModelPart(modelPart, true)
54
        }
55
    }
56
57
    val repeatable = tickHandler {
58
        waitTicks(delay)
59
60
        parts.forEach {
61
            if (sync) {
62
                mc.options.setModelPart(it.part, !mc.options.isModelPartEnabled(it.part))
63
            } else {
64
                mc.options.setModelPart(it.part, Random.nextBoolean())
65
            }
66
        }
67
    }
68
69
    private enum class DerpParts(
70
        override val tag: String,
71
        val part: PlayerModelPart
72
    ) : Tagged {
73
        HAT("Hat", PlayerModelPart.HAT),
74
        JACKET("Jacket", PlayerModelPart.JACKET),
75
        LEFT_PANTS("LeftPants", PlayerModelPart.LEFT_PANTS_LEG),
76
        RIGHT_PANTS("RightPants", PlayerModelPart.RIGHT_PANTS_LEG),
77
        LEFT_SLEEVE("LeftSleeve", PlayerModelPart.LEFT_SLEEVE),
78
        RIGHT_SLEEVE("RightSleeve", PlayerModelPart.RIGHT_SLEEVE),
79
        CAPE("Cape", PlayerModelPart.CAPE)
80
    }
81
}
82