AntiNbtKick
ModA mod that prevents your player from picking up items that exceed the NBT data limit and prevents being kicked in general.
Type
Mod
Modrinth Downloads
891
Modrinth ID
EiEEw8oB
Last Updated
Jul 29, 2026
Description
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
- Smart Size Checking: Accurately calculates the byte size of items using Minecraft's CODEC-based encoding
- Maximum Limit: Enforces a 1,777,777 byte limit for total inventory data (includes all slots and metadata overhead)
- Metadata Accounting: Each slot accounts for 128 bytes of overhead for proper size tracking
📦 Comprehensive Inventory Monitoring
The mod tracks and checks:
- Main inventory slots (36 slots)
- Hotbar (9 slots)
- Offhand slot
- Armor slots (4 slots)
- All NBT data and item attributes
🚫 Multi-Mode Protection
Ground Item Pickup:
- Prevents picking up items that would exceed inventory limit
- Silently blocks oversized items from being collected
Container Interactions (Survival & Creative):
- Shift-Click: Blocks moving items FROM containers INTO your inventory if it would exceed the limit
- Single Click: Prevents placing items into your inventory that are too large
- Drag Operations: Blocks dragging items into your inventory when it would exceed the limit
- Container Depositing: Allows you to freely move items FROM your inventory INTO containers, even when over the limit
Creative Mode Protection:
- Blocks creative mode item placement if it would exceed the limit
- Prevents creative mode dragging/painting that would overflow your inventory
- Blocks creative mode cloning (middle-click) of oversized items
🎮 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 statusStatus messages use color coding:
- 🟢 GREEN: Mod is enabled
- 🔴 RED: Mod is disabled
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:
- ✅ Allows picking up items from the ground (unless already at limit)
- ✅ Allows depositing items into containers (cleaning your inventory)
- ✅ Allows moving items within your own inventory
- ❌ Blocks adding new items that would exceed the limit
- ❌ Blocks dragging items into your inventory from containers
- ❌ Blocks creative mode placement of oversized items
Configuration
- Default State: Enabled on startup
- Togglable: Use /apk toggle to enable/disable on-the-fly
- No Config Files: Works out of the box with sensible defaults
Installation
- Download the mod JAR file
- Place it in your .minecraft/mods folder
- Launch Minecraft with Fabric Loader
- The mod will be active by default
Requirements
- Minecraft: 1.21.4 or later
- Fabric Loader: 0.16.4 or later
- Java: 21 or later
- Fabric API: Any version compatible with your Minecraft version
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
- Original Author: UnicornMaster-Dev
- Minecraft Version: 1.21.4
Stay safe from NBT kicks! ✨
Compatibility
Mod Loaders
Game Versions
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Fallen From Heaven
A Minecraft Datapack: When you fall out of the world, you end up in the dimension beneath
Clean View
Removes the vignette effect from your screen.
OFF Client
Compact Fabric utility client with a neon module panel, hotkeys, fullbright, armor HUD, health indicators, elytra swap,...
Dimensional ItemGate
Control dimension access using inventory items
Dap ur Homies! Updated
This is a 1.21.11 (and 26.1.1) port of Anteryo's Dap ur Homies project.
No Fire Overlay Plus
This is a very simple mod that removes the fire and lava overlay from your screen when you're on fire or in lava so you...