
Container Blocker
A lightweight Minecraft Fabric mod that prevents configured items from being placed into containers.
About this Mod
Container Blocker
A lightweight Minecraft Fabric mod that prevents configured items from being placed into containers. By default, it blocks the Ender Dragon Egg, but can be configured to block any item.
Features
- Configurable blocked items: Customize which items cannot enter containers via
config/blocked_items.json - Blocks manual placement: Prevents players from clicking blocked items into container slots (chests, barrels, hoppers, etc.)
- Blocks shift-clicking: Prevents players from shift-clicking blocked items from their inventory into containers
- Blocks hoppers: Prevents hoppers from transferring blocked items between containers
- Works with all containers: Applies to all container types including chests, barrels, shulker boxes, hoppers, and modded containers
- Player inventory allowed: Blocked items can still be moved within the player's own inventory and hotbar
Configuration
The mod creates a config/blocked_items.json file on first run. You can edit this file to customize which items are blocked:
{
"blockedItems": [
"minecraft:dragon_egg"
]
}
How it works
The mod uses Mixins to intercept item transfer methods
Technical Details
- Platform: Fabric
- Language: Java
- Minecraft Version: 1.21.2 and higher
Installation
- Ensure you have Fabric Loader and Fabric API installed
- Place the mod JAR file in your
.minecraft/modsfolder - Launch Minecraft
- Edit
config/blocked_items.jsonto configure blocked items (optional)
Available Versions
How to Install Container Blocker on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.10).
Install Mod
Open the mod browser in the dashboard and search for "Container Blocker". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.10, 1.21.8, 1.21.7 (+5 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Container Blocker server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.10). You can switch loaders with one click in the panel.
Is Container Blocker compatible with fabric?
Container Blocker officially supports fabric for Minecraft 1.21.10, 1.21.8, 1.21.7. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Container Blocker – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Container Blocker consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Container Blocker with just one click on your server.