HomeJavaModsAntiNbtKick
AntiNbtKick
ModsJava

AntiNbtKick

by UnicornMaster · on Modrinth

A mod that prevents your player from picking up items that exceed the NBT data limit and prevents being kicked in general.

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Fabric only.

⬇ Download for 1.21.6–1.21.11⬇ Download for 1.20.5–1.21.5
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

AntiNbtKick

A Fabric mod that prevents players from getting kicked due to oversized NBT data in their inventory. This mod intelligently monitors and restricts inventory size to keep you safe from server kicks while still allowing you to manage your items effectively.

Features

🛡️ Inventory Size Protection

📦 Comprehensive Inventory Monitoring

The mod tracks and checks:

🚫 Multi-Mode Protection

Ground Item Pickup:

Container Interactions (Survival & Creative):

Creative Mode Protection:

🎮 Easy Toggle Commands

Control the mod with simple chat commands:

Command Description
/apk Show current mod status
/apk toggle Toggle mod on/off
/apk on Enable the mod
/apk off Disable the mod
/apk status Display detailed status

Status messages use color coding:

How It Works

Size Calculation

The mod uses Minecraft's native ItemStack.CODEC to accurately encode items into NBT format and measures their serialized size in bytes. This matches how the server calculates inventory data size, ensuring consistency.

Smart Blocking

The mod intelligently:

  1. Allows picking up items from the ground (unless already at limit)
  2. Allows depositing items into containers (cleaning your inventory)
  3. Allows moving items within your own inventory
  4. Blocks adding new items that would exceed the limit
  5. Blocks dragging items into your inventory from containers
  6. Blocks creative mode placement of oversized items

Configuration

Installation

  1. Download the mod JAR file
  2. Place it in your .minecraft/mods folder
  3. Launch Minecraft with Fabric Loader
  4. The mod will be active by default

Requirements

Troubleshooting

Q: I can't place items in my inventory A: Your inventory is likely at or near the 1,777,777 byte limit. Use /apk off to disable the mod, or deposit items into a container.

Q: Can I drag items into containers? A: Yes! You can always move items FROM your inventory INTO containers, even when over the limit. This is the intended way to clean up.

Q: Does this affect multiplayer? A: Yes, the mod protects you on any server. It prevents you from reaching the server-side NBT size limits that would cause kicks.

Q: Can I disable the mod? A: Yes! Use /apk off to disable all protections. Use /apk on to re-enable.

Credits

Stay safe from NBT kicks!

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more