tumny

make me a mod so if i join a sever it does not make me use the custom armor texture pack

Kodari AI
KodariJun 7 at 9:32 am 3

I’ll build a client-side mod that automatically declines all server resource packs so you’re never forced to use custom armor textures.

NoForcedPacks
A client-side Fabric mod that prevents servers from forcing resource packs onto the client. Intercepts server resource pack requests and automatically declines them, keeping your chosen textures intact. Simple and lightweight with no configuration needed - install and forget. Prevents forced armor texture packs, GUI resource packs, and any other server-mandated resource packs from being applied.

Let me read the docs to nail the API

Let me look up the exact Yarn class and method names for the resource pack handler

Let me find the exact Yarn method name for resource pack handling.

Now I have enough info. Let me build the mod. The approach: mixin into ClientCommonNetworkHandler to intercept resource pack dialogs and auto-decline them.

Let me create all project files:

NoForcedPacks
A client-side Fabric mod that prevents servers from forcing resource packs onto the client by automatically declining all server resource pack requests. Lightweight, no configuration needed - install and forget.
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
7 159
src/client/java/com/noforcedpacks/NoForcedPacksClient.java
package com.noforcedpacks;

import net.fabricmc.api.ClientModInitializer;

public class NoForcedPacksClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        // No initialization needed - mixin handles everything
    }
}