Back to mods
Container Blocker project artwork

CurseForge · Minecraft mod

Container Blocker

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Container Blocker release should I use?

Updated 1 year ago
Latest stable file Container Blocker v1.1
Game version 1.21.10
Loader Fabric

Container Blocker v1.1 targets 1.21.10 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.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Container Blocker v1.1 need?

Container Blocker v1.1. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by Container Blocker v1.1
required
Matching file found Matched file: [1.21.10] Fabric API 0.138.4+1.21.10

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.1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use Container Blocker v1.1. It targets 1.21.10 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside Container Blocker v1.1. 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

  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)

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.

8 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Container Blocker versions and loaders

2 of 2 releases match

Looking for an older file? The official CurseForge project page is in Resources.