BiggerEnderChestsMC
适用于 Minecraft 1.21.11 Paper 的服务端模组,让你的末影箱变得更大,并且可以从任何地方访问 :3
将末影箱容量翻倍(27 格 -> 54 格)
使用 SQLite 保存数据,确保重启后物品不会丢失
提供从任意位置打开末影箱的命令:/enderchest(或 /echest 或 /ec)
自动迁移原版末影箱的数据(是的,包括离线玩家的数据)
屏蔽原版末影箱 GUI,并替换为自定义的 54 格界面
在打开物理末影箱时会有动画和粒子效果
这就是主要内容
安装方法:
将 jar 文件放入 plugins 文件夹
重启服务器
完成
依赖要求:
Paper 1.21.11 或支持 Paper API 1.21.11 的分叉版本
Java 21
会保存吗?
是的,它只是将更大的末影箱数据存储到 SQLite 中(插件文件夹内的 enderchest.db)
可以更改大小吗?
不可以,它固定为双倍大小(始终为 54 格)
命令:
/enderchest — 从任意位置打开你的末影箱
/echest 和 /ec 是相同功能的别名
/enderchest toggle — 启用或禁用该命令(仅限管理员)
权限:
enderchestdb.command — 允许使用 /enderchest(默认:op)
enderchestdb.admin — 允许使用 /enderchest toggle 和管理员功能(默认:op)
配置:
包含一个 config.yml,有两个设置项:
commands-enabled — 切换 /enderchest 是否可用(true/false)
migrated — 内部标志,请勿修改
API:
其他插件可以使用 EnderChestAPI 来读取/写入末影箱
四个方法:getEnderChest, setEnderChest, hasEnderChest, clearEnderChest
工作原理(极客内容):
当你加入服务器时,它会复制你的原版末影箱数据到 SQLite 并清空原版末影箱
右键点击末影箱方块会打开自定义的 54 格 GUI,而不是原版的
关闭 GUI 时会将所有数据保存到 SQLite
/enderchest 命令会从任意位置打开相同的 GUI
所有物品都序列化为 NBT 字节,因此潜影盒和捆绑包都能正常工作
⚠️ 重要提示
听好了
此模组通过让末影箱表现得像普通箱子一样工作——这就是为什么某些行为可能会很奇怪
它在首次加入时迁移你的原版末影箱数据并清空原版末影箱
如果你移除此插件,你的物品将不再位于原版末影箱中——它们现在存储在 SQLite 数据库中
如果你使用高于 1.21.11 的版本,可能会出现错误——我仅在 1.21.11 上进行了测试
如果发现任何重复物品或物品消失的情况,请立即向我报告
使用前请备份你的世界——你已经收到警告了
如果你的物品出了问题,不要怪我——这是模组,不是官方内容
如果你不喜欢它,可以 fork 代码,它是 MIT 许可证,有原因的
要报告 bug,只需加入我的 Discord 服务器
https://discord.gg/ySZR6ZhBCG
现在去享受你更大的箱子吧 :3
如果你喜欢这个模组
BiggerEnderChestsMC
Minecraft paper mod for 1.21.11 that makes your ender chest bigger and accessible from anywhere :3
makes the enderchest double size (27 slots -> 54 slots)
saves everything in sqlite so your items stick around after restarts
has a command to open it from anywhere: /enderchest (or /echest or /ec)
migrates your vanilla enderchest data automatically (yes even offline players)
blocks the vanilla enderchest gui and replaces it with a custom 54 slot one
has animations and particles when you open a physical ender chest
thats the main stuff
how to install:
drop the jar in plugins folder
restart server
done
requires:
paper 1.21.11 or forks that support paper api 1.21.11
java 21
does it save?
yes its just bigger enderchest data saves in sqlite (enderchest.db in the plugin folder)
can i change size?
no its just double (54 slots always)
commands:
/enderchest — opens your ender chest from anywhere
/echest and /ec are aliases for the same thing
/enderchest toggle — enable or disable the command (admin only)
permissions:
enderchestdb.command — lets you use /enderchest (default: op)
enderchestdb.admin — lets you use /enderchest toggle and admin stuff (default: op)
config:
has a config.yml with two settings:
commands-enabled — toggle whether /enderchest works (true/false)
migrated — internal flag dont touch this
api:
other plugins can use EnderChestAPI to read/write ender chests
four methods: getEnderChest, setEnderChest, hasEnderChest, clearEnderChest
how it works (nerd stuff):
when you join it copies your vanilla enderchest into sqlite and clears the vanilla one
right clicking an ender chest block opens the custom 54 slot gui instead of vanilla
when you close the gui it saves everything to sqlite
the /enderchest command opens the same gui from anywhere
all items are serialized as nbt bytes so shulkers and bundles work fine
⚠️ IMPORTANT NOTE
LISTEN UP
THIS MOD WORKS BY MAKING ENDERCHESTS ACT LIKE CHESTS - THATS WHY THINGS MIGHT GET WEIRD
IT MIGRATES YOUR VANILLA ENDERCHEST DATA ON FIRST JOIN AND CLEARS THE VANILLA ONE
IF YOU REMOVE THIS PLUGIN YOUR ITEMS WONT BE IN THE VANILLA ENDERCHEST ANYMORE - THEY'RE IN SQLITE NOW
IF YOU USE VERSIONS ABOVE 1.21.11 YOU CAN EXPECT BUGS - I ONLY TESTED ON 1.21.11
IF YOU FIND ANY DUPES OR ITEMS VANISHING REPORT THAT TO ME ASAP
BACKUP YOUR WORLD BEFORE USING THIS - YOU HAVE BEEN WARNED
DONT BLAME ME IF YOUR ITEMS GET MESSED UP - ITS A MOD NOT OFFICIAL CONTENT
IF YOU DONT LIKE IT FORK THE CODE ITS MIT FOR A REASON
TO REPORT BUGS JUST JOIN MY DISCORD SERVER
https://discord.gg/ySZR6ZhBCG
now go enjoy your bigger chest :3
if you enjoy this mod
- Donate me: ko-fi.com/xxduckyxx
评论 0
登录后参与评分
还没有评论,来抢沙发吧