Container Blocker: Stop Unwanted Items in Chests

Container Blocker for Minecraft stops specific items from entering chests, hoppers, and more. Configure blocked items easily. Download the Fabric mod today!

Download container blocker for Minecraft 1.21.10, 1.21.5

Original name: container blocker

Minecraft: 1.21.10, 1.21.5

Loaders: Fabric

FileVersionLoaderSize
container-blocker-1.1.jar1.21.10Fabric13 КБDownload
container-blocker-v1.0.0.jar1.21.5Fabric10 КБDownload

Container Blocker

Have you ever spent hours building a beautiful storage room, only to find a stray dragon egg or a stack of bedrock cluttering up your carefully sorted chests? Or perhaps you run a multiplayer server where players keep sneaking forbidden items into shared storage. The Container Blocker mod for Minecraft is the simple, elegant solution to this persistent problem. This lightweight Fabric mod gives you total control over which items can be placed into any container, ensuring your inventory systems stay exactly how you want them.

What Does Container Blocker Do?

At its core, Container Blocker is a quality-of-life and server-management tool. It uses powerful Mixin technology to intercept item transfer methods, preventing specific items from ever entering a container slot. By default, the mod blocks the Ender Dragon Egg, a notoriously difficult item to manage, but its true power lies in its customizability. You can configure it to block any item you desire, from precious netherite ingots to annoying poisonous potatoes.

Key Features of Container Blocker for Minecraft

This mod is designed to be both powerful and unobtrusive. It doesn't just stop one method of transfer; it covers all the bases to ensure your rules are enforced.

  • Configurable Blocked Items: Customize exactly which items cannot enter containers via the config/blocked_items.json file.
  • Blocks Manual Placement: Prevents players from clicking blocked items into container slots, whether it's a chest, barrel, or hopper.
  • Blocks Shift-Clicking: Stops players from using the quick-move feature to shift-click blocked items from their inventory into containers.
  • Blocks Hopper Transfers: Prevents hoppers from moving blocked items between containers, stopping automated systems from breaking your rules.
  • Works with All Containers: Applies to every container type, including chests, barrels, shulker boxes, hoppers, and even modded containers.
  • Player Inventory Allowed: Blocked items can still be moved within the player's own inventory and hotbar, so you aren't completely restricted from carrying them.

How to Configure the Mod

Getting started with Container Blocker is incredibly easy. The mod creates a config/blocked_items.json file on its first run. You can then edit this file to customize which items are blocked. The format is straightforward and uses standard Minecraft item IDs.

For example, the default configuration looks like this:

{
  "blockedItems": [
    "minecraft:dragon_egg"
  ]
}

To block more items, simply add their IDs to the list. For instance, to also block command blocks and barrier blocks, you would modify the file to look like this:

{
  "blockedItems": [
    "minecraft:dragon_egg",
    "minecraft:command_block",
    "minecraft:barrier"
  ]
}

Installation: How to Install Container Blocker

Installing this mod is a breeze, especially if you're familiar with Fabric. It supports Minecraft versions 1.21.2 and higher, so make sure your game is up to date. Here’s a step-by-step guide on how to install it.

  1. Install Fabric Loader: First, ensure you have the Fabric Loader installed for your Minecraft version.
  2. Install Fabric API: Download and install the Fabric API, as Container Blocker requires it to function correctly.
  3. Place the Mod JAR: Put the Container Blocker mod JAR file into your .minecraft/mods folder.
  4. Launch Minecraft: Start the game with the Fabric profile. The mod will generate its config file on the first launch.
  5. Configure (Optional): Edit the config/blocked_items.json file to add or remove items from the blocked list.

If you are looking for a seamless way to manage your mods, you might find that using a dedicated launcher simplifies the process. For example, the foxygame.net launcher offers a one-click install feature for many popular mods, which can save you the hassle of manually downloading and placing JAR files. You can search for "Container Blocker" directly in its add-on catalog, and the launcher will handle the installation and version compatibility for you, making it an excellent choice for players who want a streamlined experience.

Technical Details and Performance

Container Blocker is built for the Fabric platform and written in Java. It is designed to be lightweight, meaning it won't add noticeable overhead to your game's performance. The mod uses Mixins to intercept item transfer methods efficiently, ensuring that the checks happen quickly and without causing lag, even in complex contraptions with many hoppers.

This focus on performance makes it an ideal choice for both single-player worlds and busy multiplayer servers. Server administrators will appreciate the ability to enforce storage rules without needing to use complex command blocks or plugins.

Why Use Container Blocker?

In the grand scheme of Minecraft modding, Container Blocker fills a very specific but incredibly useful niche. It provides peace of mind. Whether you are protecting a valuable item from being accidentally shuffled away by a hopper or preventing players on your server from griefing shared storage, this mod gives you the control you need. Its simplicity is its greatest strength; there are no complicated menus or commands to learn, just a simple config file that does exactly what you tell it to.

Furthermore, if you use the foxygame.net launcher, you can take advantage of its auto-update feature. This ensures that your version of Container Blocker for Minecraft is always up to date with the latest fixes and improvements, without you having to manually check for new releases. This integration makes managing your mod collection much more convenient.

In conclusion, Container Blocker is a must-have utility mod for anyone who values order and control in their Minecraft world. It is a small addition that makes a big difference, and its ease of use means you can set it up in minutes and forget about it, secure in the knowledge that your containers are protected. Download Container Blocker today and take the first step towards a more organized, stress-free storage system. It is a simple tool, but it is an incredibly effective one.