newborn

Create me a mod by which I can expand regular player or mob hitboxes by any commands like /hitbox width (a value) and also /hitbox height (a value) and a toggelable button which I can setup in keybinds and the selected specific keybind expands the hitbox when clicked and changes to normal hitbox when clicked again. Like it should work like On/off. For minecraft fabric, version 1.21.11 and the name of mod should be Full Bright

Kodari AI
KodariFri at 6:01 pm 3
HitboxExpander
Adds commands /hitbox width and /hitbox height to modify player or mob hitbox dimensions. Includes a configurable keybind toggle that expands the selected entity's hitbox when pressed and reverts to normal size when pressed again, functioning as an on/off switch for quick hitbox manipulation.
  • Add client-side width and height commands and a rebindable toggle.

  • Expand other players’ and mobs’ hitboxes while enabled, without changing the local player’s hitbox.

Created Full Bright for Fabric 1.21.11.

  • Set the extra targeting size with /hitbox width <value> and /hitbox height <value>.

  • Bind Toggle hitbox expansion in Controls to switch it on and off.

The expansion is client-side: servers still validate interactions against their own hitboxes and reach rules. Settings reset when the game restarts.

newborn

Turn the mod into client side from server side and it should work while installed on any minecraft instance or client and should actually register hits inside the expanded hitboxes when they're on

Kodari AI
KodariFri at 6:12 pm 3
  • Keep the mod client-only and extend targeting to weapons that use Minecraft’s attack-range component.

  • Use normal attack packets; the server still controls whether a hit is accepted.

Full Bright was already client-side. I extended its targeting to cover weapons that use Minecraft’s attack-range component, so clicking an expanded target sends a normal attack attempt.

It requires a Fabric 1.21.11 client with Fabric API; it cannot run on arbitrary Minecraft versions or non-Fabric clients. Servers still decide whether hits are valid, so a client-only mod cannot guarantee hits outside the server’s allowed range or rules.

newborn

Just do anything that u want but build me the mod im asking for. Do anything to build it

Kodari AI
KodariFri at 6:14 pm 1

Full Bright is already built as a client-side Fabric 1.21.11 mod. Its expanded hitboxes can help select targets, but the server decides whether each hit is valid; a client-only mod cannot guarantee expanded hits on every server.

For reliable expanded hitboxes, the server must also run a mod that supports them. Would you like me to add that server-side component while keeping the client toggle and commands?

newborn

So would the hits not be registered that are hit in the expanded hitbox when they're on?

Kodari AI
KodariFri at 6:17 pm 1

Not necessarily. The client can target the expanded hitbox and send an attack, but the server decides whether to accept it using its own hitbox and reach rules.

Some hits may register, but hits outside what the server allows can be rejected. For reliable expanded hitboxes, the server also needs to support them.

newborn

But then how does the mod named as- Extended Hitbox does it?

Kodari AI
KodariFri at 6:18 pm 1

An extended-hitbox mod can make your client select a player or mob even when your crosshair is just outside its visible hitbox, then send a normal attack packet for that entity.

Some servers accept that attack because they check the target’s distance and other conditions without requiring the crosshair to intersect its exact hitbox. Others perform stricter checks and may reject it or flag it as suspicious.

That’s the approach Full Bright uses: the expanded area helps select the target, but it doesn’t change the server’s actual hitbox. If you send me a link to the specific Extended Hitbox mod, I can check how it works.

newborn

7547531

Kodari AI
KodariFri at 6:20 pm 2

Is 7547531 the mod’s download or file ID? Please send the link to its page so I can check its implementation.

newborn

I added the Extended Hitbox file to the project, now view it

Kodari AI
KodariFri at 6:24 pm 1

The generation was stopped before any content could be produced.

newborn

https://www.google.com/url?opi=89978449&q=https://www.curseforge.com/minecraft/mc-mods/extended-hitbox&sa=U&sqi=2&ved=2ahUKEwil1Ym-lZeYAxXQjeEIHTvJFqMQFnoECBEQAQ&usg=AOvVaw2tKvf8XsCw8ZUGR8EBHFVn

Kodari AI
KodariFri at 6:24 pm 1

[Generation stopped]

newborn

This is the addres to the mod

Kodari AI
KodariFri at 6:26 pm 1

That’s the Extended Hitbox page. I couldn’t access it because CurseForge returned a 403, and the JAR you added could not be opened as a valid archive, so I can’t verify exactly how that mod works.

Full Bright currently expands client-side targeting and sends normal attacks. Whether those hits register still depends on the server’s checks.

If you can add a fresh copy of the Extended Hitbox JAR or its source code, I can compare its implementation with Full Bright.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
extendedhitbox-fabric-1.21.11.jar
gradle.properties
settings.gradle
Code
9 206
src/client/java/com/fullbright/FullBrightClient.java
package com.fullbright;

import com.mojang.brigadier.arguments.FloatArgumentType;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.command.v2.ClientCommandRegistrationCallback;
import net.fabricmc.fabric.api.client.command.v2.ClientCommandManager;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.text.Text;
import net.minecraft.util.Identifier;
import org.lwjgl.glfw.GLFW;

public final class FullBrightClient implements ClientModInitializer {
    public static boolean enabled = false;
    public static float width = 0.5F;
    public static float height = 0.5F;

    @Override
    public void onInitializeClient() {
        KeyBinding toggle = KeyBindingHelper.registerKeyBinding(new KeyBinding(
                "key.fullbright.toggle", GLFW.GLFW_KEY_UNKNOWN,
                KeyBinding.Category.create(Identifier.of("fullbright", "general"))));

        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            while (toggle.wasPressed()) {
                enabled = !enabled;
                if (client.player != null) {
                    client.player.sendMessage(Text.literal("Hitbox expansion: " + (enabled ? "ON" : "OFF")), true);
                }
            }
        });

        ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> dispatcher.register(
                ClientCommandManager.literal("hitbox")
                        .then(ClientCommandManager.literal("width")
                                .then(ClientCommandManager.argument("value", FloatArgumentType.floatArg(0.0F, 64.0F))
                                        .executes(context -> {
                                            width = FloatArgumentType.getFloat(context, "value");
                                            context.getSource().sendFeedback(Text.literal("Extra hitbox width: " + width));
                                            return 1;
                                        })))
                        .then(ClientCommandManager.literal("height")
                                .then(ClientCommandManager.argument("value", FloatArgumentType.floatArg(0.0F, 64.0F))
                                        .executes(context -> {
                                            height = FloatArgumentType.getFloat(context, "value");
                                            context.getSource().sendFeedback(Text.literal("Extra hitbox height: " + height));
                                            return 1;
                                        })))));
    }
}