NoShieldOverlay module

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

Moves a held shield down out of your view.

SettingsBlocking offsetResting offset
NoShieldOverlay.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.NumberSetting;
6
import com.mojang.blaze3d.vertex.PoseStack;
7
8
// ItemInHandRendererMixin lowers the shield by these amounts.
9
public final class NoShieldOverlay extends Module {
10
11
    private final NumberSetting blocking = new NumberSetting("Blocking offset",
12
        "How far the shield drops whilst you block.", 0.5, 0, 0.8, 0.01).min(0);
13
    private final NumberSetting resting = new NumberSetting("Resting offset",
14
        "How far the shield drops whilst it is only held.", 0.2, 0, 0.5, 0.01).min(0);
15
16
    public NoShieldOverlay() {
17
        super("NoShieldOverlay", "Moves a held shield down out of your view.", Category.RENDER);
18
        addSettings(blocking, resting);
19
        searchTags("shield", "block view");
20
    }
21
22
    public void lowerShield(PoseStack pose, boolean isBlocking) {
23
        if (!isEnabled()) {
24
            return;
25
        }
26
        pose.translate(0, -(isBlocking ? blocking : resting).getFloat(), 0);
27
    }
28
}
29