跳到正文

EnderChest Restrictor

作者:Mr_Panda

Prevents restricted items from being stored in Ender Chests, including nested items in Shulkers or Bundles.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Ender Chest Restrictor

Ender Chest Restrictor is a small Fabric mod that prevents configurable items from being stored in Ender Chests.

The restriction applies recursively, meaning an item is also blocked if it is contained inside a Shulker Box, Bundle, or any combination of nested containers.

Blocked items are not banned. They can still be used, carried, dropped, and stored normally in regular inventories and containers, they simply cannot be placed into an Ender Chest.

Features

  • Configurable list of restricted items
  • Recursive detection of items inside Shulker Boxes and Bundles
  • Supports nested containers and combinations of containers
  • Affects Ender Chests only
  • Server-side enforcement
  • Lightweight implementation using targeted inventory and Bundle interaction mixins
  • Compatible with vanilla and modded items

Configuration

After the first launch, a configuration file is generated at:

config/enderchestrestrictor.json

Example:

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

Add any valid item ID, including items from mods.

Configuration changes require a server restart.

How It Works

Ender Chest slots reject restricted items through the server-side slot validation logic. Bundle-specific interactions are handled separately to prevent restricted items from entering a Bundle during an Ender Chest interaction.

When an item is checked, its own type and the contents of supported container components are inspected recursively.

常见问题

EnderChest Restrictor 支持哪些 Minecraft 版本?

EnderChest Restrictor 支持 Minecraft Java 版 1.21.5–26.2,共 11 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

EnderChest Restrictor 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

Mr_Panda 的其他作品

查看全部 →