Container Blocker

Container Blocker

A lightweight Minecraft Fabric mod that prevents configured items from being placed into containers.

by
109 Downloads
fabricgame-mechanicsstorage
Rent Server with this Mod

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

  1. Ensure you have Fabric Loader and Fabric API installed
  2. Place the mod JAR file in your .minecraft/mods folder
  3. Launch Minecraft
  4. Edit config/blocked_items.json to configure blocked items (optional)

Available Versions

Container Blocker 1.1.0release
MC 1.21.10fabric
October 25, 2025
Container Blocker 1.0.0release
MC 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8fabric
October 24, 2025

How to Install Container Blocker on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.10).

3

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

fabric

Minecraft Versions

1.21.10, 1.21.8, 1.21.7 (+5 more)

Server-side

Required

Recommended 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.

Rent Modded Server

Install Container Blocker with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.101.21.81.21.71.21.61.21.51.21.41.21.31.21.2