ChestSee 是一款轻量级的 Fabric 模组,用于 Minecraft 服务器的箱子日志记录。它将箱子、桶、潜影盒及其他容器的操作记录到简单的 .txt 文件中。放入即可使用,无需额外配置。在游戏中通过 /chestsee 查看日志,或直接打开世界文件夹中的文件。
仅限服务端运行。原版客户端可以加入。
工作原理
该模组在服务端运行,追踪玩家每次打开容器并更改其内容的行为。它还会记录有人破坏容器或在下方放置漏斗的情况。
日志以 .txt 文件格式保存在世界文件夹下的 ChestLog/ 目录中,按维度分类。每个容器都有独立的文件,文件名由方块类型和坐标组成。移动的容器(矿车、箱船)则使用其实体 UUID 作为文件名。
已记录的容器
箱子、桶、潜影盒、漏斗、发射器、投掷器、制造台、熔炉、高炉、烟熏炉、酿造台、箱/漏斗矿车和箱船。熔炉和酿造台仅记录玩家放入或取出的物品——不记录烧炼或酿造过程本身。
命令
/chestsee inspect
切换检视模式。右键点击或攻击一个容器即可查看其日志。在检视模式下,容器不会打开也不会被破坏。
/chestsee lookup <x y z> [page] [dimension]
显示指定位置容器的日志。
/chestsee player <name> [page]
显示某玩家在各类容器中的所有操作,最新的排在前面。点击条目可跳转到对应容器的日志。搜索在后台运行,因此大型日志文件夹不会导致服务器卡顿。
/chestsee reload
无需重启即可重新加载 config/chestsee.json。
所有命令均可从控制台和 RCON 执行。若无权限管理模组,则需要 OP 等级 2。
文件夹结构
world/
└── ChestLog/
├── Overworld/
│ ├── Chest 120 64 -340.txt
│ └── Barrel 80 70 200.txt
├── The Nether/
└── The End/
日志条目示例 (Chest 120 64 -340.txt)
[06.05.26 19:31:37] Steve
Items Added: [3 diamond]
Items Removed: [1 iron_ingot]
[06.05.26 19:45:02] Alex
Items Added: []
Items Removed: [3 diamond]
[06.05.26 20:10:14] Steve
Broke Chest
配置
首次启动时,ChestSee 会创建 config/chestsee.json:
{
"pageSize": 8,
"retentionDays": 0,
"maxFileSizeKb": 0,
"excludedDimensions": [],
"containers": {
"chest": true,
"barrel": true,
"shulker_box": true,
"hopper": true,
"dispenser": true,
"dropper": true,
"crafter": true,
"furnace": true,
"brewing_stand": true,
"minecart": true,
"chest_boat": true,
"other": true
}
}
| 选项 | 描述 |
|---|---|
pageSize |
命令中每页显示的条目数。 |
retentionDays |
在服务器启动时删除早于 X 天的条目。设为 0 表示保留所有内容。 |
maxFileSizeKb |
当日志文件过大时,删除最旧的条目。设为 0 表示禁用此限制。 |
excludedDimensions |
不应记录日志的维度 ID,例如 "minecraft:the_nether"。 |
containers |
针对每种容器类型开启或关闭日志记录。 |
现有的日志文件仍可正常使用。更新后无需进行任何转换。
权限(可选 - LuckPerms)
ChestSee 使用 fabric-permissions-api。如果没有安装 LuckPerms,命令需要 OP 等级 2。
| 节点 | 访问权限 |
|---|---|
chestsee.inspect |
/chestsee inspect |
chestsee.lookup |
/chestsee lookup |
chestsee.player |
/chestsee player |
chestsee.reload |
/chestsee reload |
示例:
/lp group moderator permission set chestsee.inspect true
/lp group moderator permission set chestsee.lookup true
/lp group moderator permission set chestsee.player true
配套模组
ChestSee 与 StaffSee 配合使用——容器日志存储在 ChestLog/,玩家监管数据存储在 StaffLog/。同时安装两者后,在 StaffSee 中使用 /history <player> chests 即可查看 ChestSee 的活动记录。
安装
- 为你的 Minecraft 版本安装 Fabric Loader 和 Fabric API
- 将
ChestSee.jar放入服务器的mods/文件夹 - 重启服务器
完成。无需额外设置。
灵感来源于 Aguga2201's Chest Logs。
ChestSee is a lightweight Fabric chest logger for Minecraft servers. It logs chests, barrels, shulker boxes and other containers to simple .txt files. Drop it in, no setup needed. Look up logs in-game with /chestsee, or open the files in your world folder.
Server-side only. Vanilla clients can join.
How it works
The mod runs on the server and tracks every time a player opens a container and changes its contents. It also logs when someone breaks a container or places a hopper underneath one.
Logs are saved as .txt files under ChestLog/ in your world folder, sorted by dimension. Each container gets its own file, named after the block type and coordinates. Moving containers (minecarts, chest boats) use their entity UUID instead.
Logged containers
Chests, barrels, shulker boxes, hoppers, dispensers, droppers, crafters, furnaces, blast furnaces, smokers, brewing stands, chest/hopper minecarts and chest boats. Furnaces and brewing stands only log what players put in or take out - not the smelting or brewing itself.
Commands
/chestsee inspect
Toggle inspect mode. Right-click or punch a container to see its log. The container does not open and does not break while inspect mode is on.
/chestsee lookup <x y z> [page] [dimension]
Show the log of one container.
/chestsee player <name> [page]
Show everything a player did in all containers, newest first. Click an entry to jump to that container's log. The search runs in the background, so big log folders do not lag the server.
/chestsee reload
Reload config/chestsee.json without a restart.
All commands work from the console and RCON. Without a permission mod they need OP level 2.
Folder structure
world/
└── ChestLog/
├── Overworld/
│ ├── Chest 120 64 -340.txt
│ └── Barrel 80 70 200.txt
├── The Nether/
└── The End/
Example log entry (Chest 120 64 -340.txt)
[06.05.26 19:31:37] Steve
Items Added: [3 diamond]
Items Removed: [1 iron_ingot]
[06.05.26 19:45:02] Alex
Items Added: []
Items Removed: [3 diamond]
[06.05.26 20:10:14] Steve
Broke Chest
Config
On first start ChestSee creates config/chestsee.json:
{
"pageSize": 8,
"retentionDays": 0,
"maxFileSizeKb": 0,
"excludedDimensions": [],
"containers": {
"chest": true,
"barrel": true,
"shulker_box": true,
"hopper": true,
"dispenser": true,
"dropper": true,
"crafter": true,
"furnace": true,
"brewing_stand": true,
"minecart": true,
"chest_boat": true,
"other": true
}
}
| Option | Description |
|---|---|
pageSize |
Entries per page in commands. |
retentionDays |
Remove entries older than X days on server start. 0 keeps everything. |
maxFileSizeKb |
Drop the oldest entries when a log file gets too big. 0 disables the limit. |
excludedDimensions |
Dimension IDs that should not be logged, e.g. "minecraft:the_nether". |
containers |
Turn logging on or off per container type. |
Existing log files keep working. Nothing needs to be converted after an update.
Permissions (optional - LuckPerms)
ChestSee uses fabric-permissions-api. Without LuckPerms, commands need OP level 2.
| Node | Access |
|---|---|
chestsee.inspect |
/chestsee inspect |
chestsee.lookup |
/chestsee lookup |
chestsee.player |
/chestsee player |
chestsee.reload |
/chestsee reload |
Example:
/lp group moderator permission set chestsee.inspect true
/lp group moderator permission set chestsee.lookup true
/lp group moderator permission set chestsee.player true
Companion mod
ChestSee pairs with StaffSee - container logs in ChestLog/, player moderation in StaffLog/. With both installed, /history <player> chests in StaffSee opens ChestSee activity.
Install
- Install Fabric Loader and Fabric API for your Minecraft version
- Place
ChestSee.jarin your server'smods/folder - Restart the server
Done. No extra setup required.
Inspired by Aguga2201's Chest Logs.
下载 ChestSee - Chestlogger
下载 ChestSee - Chestlogger
下载 ChestSee - Chestlogger
下载 ChestSee - Chestlogger
下载 ChestSee - Chestlogger
下载 ChestSee - Chestlogger
下载 ChestSee - Chestlogger
下载 ChestSee - Chestlogger
下载 ChestSee - Chestlogger
下载 ChestSee - Chestlogger
新增
- 游戏内查询,无需再深入世界文件夹查找:
/chestsee inspect切换检查模式。右键点击或攻击容器即可查看其日志。在检查模式下,容器不会打开也不会被破坏。/chestsee lookup <x y z> [page] [dimension]显示特定容器的日志。/chestsee player <name> [page]显示玩家在各类容器中的所有操作记录,最新记录优先。点击条目可跳转至对应容器的日志。搜索在后台运行,因此大型日志文件夹不会导致服务器卡顿。- 所有命令均可从控制台和 RCON 执行。
- 熔炉、高炉、烟熏台和酿造台现在也会被记录日志。仅记录玩家放入或取出的物品,不记录冶炼或酿造过程本身。
- 箱子矿车、漏斗矿车和箱船现在也会被记录日志。由于这些实体可以移动,其日志文件以实体 UUID 命名。
- 新增配置文件
config/chestsee.json:retentionDays:在服务器启动时移除早于 X 天的条目maxFileSizeKb:当日志文件过大时,删除最旧的条目excludedDimensions:在这些维度中不记录日志containers:针对每种容器类型关闭日志记录pageSize:每页显示的条目数/chestsee reload可在无需重启的情况下应用更改。
- LuckPerms 权限节点:
chestsee.inspect、chestsee.lookup、chestsee.player和chestsee.reload。如果没有安装权限管理模组,则仍需像以前一样拥有 OP 等级 2 的权限。
现有的日志文件仍可正常使用,无需进行任何转换。
修复
- 1.1.0 版本(适用于 1.21.7)生成的日志文件缺少
.txt扩展名。它们会在服务器启动时被重命名,以便命令能够找到它们。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧