Container Blocker
A lightweight Minecraft Fabric mod that prevents configured items from being placed into containers.
介绍
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)
常见问题
Container Blocker 支持哪些 Minecraft 版本?
Container Blocker 支持 Minecraft Java 版 1.21.2–1.21.10,共 8 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Container Blocker 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。
destroyaa 的其他作品
查看全部 →Cobblemon – PokeResort [Official]
Play with the PokeResort Modpack for the BEST COBBLEMON EXPERIENCE! The latest version of Cobblemon and gameplay enhancing mods into one convenient and optimized package! Including client performance enhancing mods, QoL adjustments and immersive mods!
Ooh Shiny!
A Minecraft Fabric mod that allows server administrators to create interactive, one-time reward points that players can claim by right-clicking blocks in the world.
评论
登录后评论和评分