PrismProtect — 保护你的模组化 Minecraft 服务器
需要 Architectury API
PrismProtect 是一款面向 Minecraft 1.20.1–1.20.4 的服务端(以及用于高亮显示的客户端)Architectury 模组,为模组化服务器带来类似 CoreProtect 的日志记录与回滚功能——无需插件,专为高性能打造。
特性
- 记录方块破坏/放置/替换,完整支持 BlockEntity NBT
- 追踪爆炸事件(TNT、苦力怕、原版爆炸管线)
注意: 部分拥有完全自定义爆炸逻辑的模组可能会绕过原版钩子导致未被记录 - 记录实体死亡,并提供完整的 NBT 快照以确保准确还原
- 记录容器和物品栏变化,包含菜单打开/关闭的差异追踪
- 记录从被破坏方块掉落的物品及合成输出,以支持物品回滚
- 支持来自任何模组的方块/实体(命名空间 ID 原样存储)
- 使用优化的 SQLite 存储,带有 WAL 预写式日志和线程安全写入
- 包含检查模式,可在游戏内查看方块历史
命令
/pp inspect
切换检查模式,点击方块以查看其历史记录。
/pp lookup [u:<name>] [t:<time>] [r:<radius>] [a:block|entity|container]
使用过滤器搜索已记录的行动(默认为 a:block)。
/pp rollback [u:<name>] [t:<time>] [r:<radius>] [a:entity]
在选定范围内回滚更改。
若未指定 a:entity,则仅回滚方块/容器/物品的变化。
/pp highlight [off] [u:<name>] [t:<time>] [r:<radius>] [w:<world>] [d:<sec>] [l:<limit>] [p:<page>]
通过世界内的彩色轮廓高亮显示匹配的方块变化,以便视觉调查。
使用 off 可立即清除当前的高亮显示。
再次运行 /pp highlight ... 将替换该玩家之前的高亮集。
/pp restore [u:<name>] [t:<time>] [r:<radius>]
恢复此前被回滚的方块/容器/物品变化。
/pp purge t:<time>
删除旧的日志数据(需要 OP 等级 4)。
/pp status
显示数据库计数器和运行时状态。
时间格式
支持 s(秒)、m(分)、h(时)、d(天)、w(周)
示例:30m、1h30m、2d、1w
高亮模式
使用 /pp highlight 在世界中渲染匹配方块变化的轮廓标记。
颜色表示行动类型,执行 /pp highlight off 可立即清除当前的高亮显示。
实体回滚
实体回滚属于独立的范围:在回滚命令中添加 a:entity。
PrismProtect 会在实体死亡时捕获完整的 NBT 快照,并在原始坐标处重生实体。
物品回滚
PrismProtect 会记录:
- 从被破坏方块掉落的物品
- 从合成结果槽取出的合成产物
在执行 /pp rollback 时,它会恢复受影响的方块,并尝试从原始玩家的物品栏中移除已记录的物品。
如果物品栏中找不到这些物品,它还会检查原始位置周围地面上的掉落物。
存储
PrismProtect 使用内置的 SQLite(无需外部数据库)。
数据库路径:config/prismprotect/prismprotect.db
WAL 预写式日志机制确保了在高负载服务器下并发访问的安全性。
版本支持
| Minecraft | Loader | Status |
|---|---|---|
| 1.20.1–1.20.4 | Forge 47.2.0+ | ✅ 支持 |
| 1.20.1–1.20.4 | Fabric Loader 0.14.25+ + Fabric API 0.92.2+1.20.1 | ✅ 支持 |
| 1.20.5+ / 1.21.x | Other builds | ⚠️ 不可用(即将添加) |
服务端必备,客户端可选。客户端不需要安装 PrismProtect 即可加入服务器。
PrismProtect — protect your modded Minecraft server
Requires Architectury API
PrismProtect is a server-side(and client for hightlighting) Architectury mod for Minecraft 1.20.1–1.20.4 that brings CoreProtect-like logging and rollback to modded servers — no plugins required, built for performance.
Features
- Logs block break/place/replace with full BlockEntity NBT support
- Tracks explosions (TNT, creepers, vanilla explosion pipeline)
Note: some mods with fully custom explosion logic may bypass vanilla hooks and not be logged - Logs entity deaths with full NBT snapshots for accurate restoration
- Records container and inventory changes with menu open/close diff tracking
- Logs item drops from broken blocks and crafting outputs for item rollback
- Supports blocks/entities from any mod (namespaced IDs are stored as-is)
- Uses optimized SQLite storage with WAL journaling and thread-safe writes
- Includes inspect mode to view block history in-game
Commands
/pp inspect
Toggle inspect mode and click blocks to view history.
/pp lookup [u:<name>] [t:<time>] [r:<radius>] [a:block|entity|container]
Search logged actions using filters (a:block by default).
/pp rollback [u:<name>] [t:<time>] [r:<radius>] [a:entity]
Rollback changes in the selected scope.
Without a:entity, rolls back block/container/item changes.
/pp highlight [off] [u:<name>] [t:<time>] [r:<radius>] [w:<world>] [d:<sec>] [l:<limit>] [p:<page>]
Highlights matched block changes with in-world colored outlines for visual investigation.
Use off to clear active highlights immediately.
Running /pp highlight ... again replaces the previous highlight set for that player.
/pp restore [u:<name>] [t:<time>] [r:<radius>]
Restore previously rolled-back block/container/item changes.
/pp purge t:<time>
Delete old log data (requires OP level 4).
/pp status
Show database counters and runtime status.
Time Format
Supports s, m, h, d, w
Examples: 30m, 1h30m, 2d, 1w
Highlight Mode
Use /pp highlight to render outline markers for matched block changes in-world.
Colors indicate action type, and /pp highlight off clears active highlights immediately.
Entity Rollback
Entity rollback is a separate scope: add a:entity to rollback commands.
PrismProtect respawns entities at original coordinates using full NBT snapshots captured at death.
Item Rollback
PrismProtect logs:
- item drops from broken blocks
- crafting outputs taken from result slots
During /pp rollback, it restores affected blocks and tries to remove logged items from the original player inventory.
If items are missing there, it also checks nearby ground drops around the original position.
Storage
PrismProtect uses bundled SQLite (no external DB required).
Database path: config/prismprotect/prismprotect.db
WAL journaling provides safe concurrent access under active server load.
Version Support
| Minecraft | Loader | Status |
|---|---|---|
| 1.20.1–1.20.4 | Forge 47.2.0+ | ✅ Supported |
| 1.20.1–1.20.4 | Fabric Loader 0.14.25+ + Fabric API 0.92.2+1.20.1 | ✅ Supported |
| 1.20.5+ / 1.21.x | Other builds | ⚠️ Not working(Will be added soon) |
Server-side and optional client side. Clients do not need PrismProtect installed to join.
下载 PrismProtect
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PrismProtect
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PrismProtect
下载 PrismProtect
下载 PrismProtect
下载 PrismProtect
下载 PrismProtect
新增
- 新增物品追踪与回滚支持:
- 记录破坏方块掉落的物品
- 记录合成结果拾取
- 在回滚期间,从玩家背包和附近地面掉落物中移除匹配的物品
- 新增变化高亮显示(
/pp highlight)用于可视化调查 - 新增客户端侧高亮渲染(基于轮廓),可通过
/pp highlight off关闭 - 新增客户端配置界面:
- Forge:模组 -> PrismProtect -> 配置
- Fabric:ModMenu -> PrismProtect -> 配置
改进
- 扩展了
/pp status命令,增加高亮状态及存储/运行时信息 - 优化了高亮性能(针对大规模结果集优化最近方块选择逻辑)
- 更新兼容目标至 Minecraft 1.20.1–1.20.4(Forge/Fabric 分支)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧