CurseForge · Minecraft mod
Container Blocker
A lightweight Minecraft Fabric mod that prevents configured items from being placed into containers.
Quick answer
Which Container Blocker release matches 1.21.2?
Container Blocker v1.0 targets 1.21.5, 1.21.8, 1.21.4 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.
Where it goes
Is Container Blocker required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does Container Blocker v1.0 need?
Container Blocker v1.0 on 1.21.2. Every mod below is checked against that same setup.
Install Fabric API first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Container Blocker without breaking your instance.
Built for Container Blocker v1.0 on 1.21.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use Container Blocker v1.0. It targets 1.21.5, 1.21.8, 1.21.4 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside Container Blocker v1.0. It opens that exact file at the source.
About this project
What does Container Blocker add?
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)
Project description from CurseForge.
Pick your setup
Container Blocker by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.10
1 loader build1.21.8
1 loader build1.21.7
1 loader build1.21.6
1 loader build1.21.5
1 loader build1.21.4
1 loader build1.21.3
1 loader build1.21.2
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Container Blocker versions and loaders
Container Blocker v1.0
container-blocker-v1.0.0.jar
24 Oct 2025
Looking for an older file? The official CurseForge project page is in Resources.