Mineuniverse
Log in Register
Mods

Container Blocker

A lightweight Minecraft Fabric mod that prevents configured items from being placed into containers.
by Destroyaa
Download Claim this project
42 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Storage Utility & QoL

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)
Container Blocker v1.1
MC Fabric, Client, 1.21.10, Server
Release 2025-10-25 Get

You Might Also Like

BiblioCraft: BiblioWoods Forestry Edition
Adds support for Forestry woods to BiblioCraft blocks. Requires BiblioCraft to run.
9,923,538
Stone Chest
Stone variations vanilla chests.
9,739,410
Nyf's Quivers
Add's Quivers that hold Arrows based on Quiver Type and Bows will pull from the Quivers Active Slot First
9,695,959
Treasure2
Who doesn't like finding loot? It is always fun to find free stuff!
9,542,708
Wearable Backpacks: RLCraft Edition
Wearable, placeable, dyeable backpacks with Bauble support.
9,531,969
Just Another Crafting Bench
Just adds a single block, a crafting bench that stores its inventory
978,962