Shtreimel
用于 Sable 和 Create Aeronautics 的服务器管理工具包。 查找导致卡顿的飞艇,冻结失控目标,撤销意外破坏,查看谁最后登船,追踪尸体确切消失的时间,并识别崩溃时服务器上存在的机械装置。
适用于 NeoForge 和 Fabric 1.21.1。仅限专用服务器安装。无需客户端模组。
“Shtreimel”是一种戴在貂皮衬里上的毛皮帽。它是戴在 Sable 之上的帽子。这个名字是个玩笑;但这个模组不是。
为什么你需要这个
你运营着一个 Sable 或 Create Aeronautics 服务器。迟早会发生以下情况之一:
- 有人建造了一个拥有 50,000 个方块的巨型机械装置,导致你的 TPS 暴跌。你不知道是谁建的、在哪里建的,或者在不使用
/stop 的情况下如何阻止它。
- 一名玩家驾驶飞艇飞出生存范围且再也没有回来。或者它卡在半空中。或者它掉进了虚空。
- 你信任的玩家对错误的机械装置执行了
/sable remove,而你没有任何可以回滚的内容。
- 一名玩家报告他们的飞艇被拆解、移动或被驾驶离开,而你完全不知道上面有谁。
- Sable 在两帧之间移除了一具尸体,而你的日志从未记录原因。
- 你的服务器崩溃,崩溃报告显示“physics tick”(物理刻),但没有其他信息。
Shtreimel 为上述每种情况都提供了相应的命令。
功能介绍
定位卡顿源
当一个维度的物理计算负荷过高时,Shtreimel 会对最可疑的实体进行排名,并在服务器控制台中打印一行包含位置、所有者指定名称、UUID、边界框和可疑度分数的信息。
控制台输出示例:
[shtreimel.lag] lag suspect dim=minecraft:overworld ewma=7.43ms max60=18.20ms uuid=8a1f... name="Big Blimp" plot=(10005,10003) center=(124.0,72.5,-88.3) bb=24x10x32 suspect=83
排名机制使用可配置的代理指标:体积、占地面积、已加载区块数、Sable 活动体、速度、网络延迟、反作用轮、队列中的力、相交实体以及可选的连接/依赖/工单信号。权重和上限均在配置文件中设置。
如果你的服务器负载比典型情况更重或更轻,请在正常游戏几小时后运行 /shtreimel lag autotune,它将打印出针对 <world>/shtreimel/dimension-overrides.json 的推荐阈值。
你也可以随时获取实时排名:
/shtreimel rank
/shtreimel physics-stats
/shtreimel list
消除卡顿
/shtreimel freeze <uuid>
/shtreimel freeze nearest [radius]
/shtreimel freeze connected <uuid>
/shtreimel freeze list
/shtreimel unfreeze <uuid>
/shtreimel unfreeze connected <uuid>
freeze 将机械装置固定在原位,而不会暂停整个维度的物理模拟。connected 会固定该实体及其所有链接的实体。锁定状态会在服务器重启后保持,卸载后幸存,并且分裂出的子实体会从锁定的父实体继承锁定状态。unfreeze 唤醒实体恢复运行。
/shtreimel delete uuid <uuid> --confirm
/shtreimel delete at <x> <y> <z> --confirm
/shtreimel delete nearest --confirm
delete 调用 Sable 自身的移除路径。清理效果与 /sable remove 相同。
撤销错误操作
/shtreimel archive save <uuid> [tag]
/shtreimel archive list [uuid] [limit]
/shtreimel archive verify <uuid> <archiveId>
/shtreimel archive restore <uuid> <archiveId> [keepUuid] [dimension] [at <pos>]
/shtreimel archive prune
archive save 将机械装置的完整方块数据写入磁盘,并附带压缩大小和 SHA-256 元数据。verify 会在你信任存档之前检查其完整性。restore 将其还原,可选择保留相同的 UUID。支持旧版 0.2/0.3 存档的列出和还原。提供针对每个机械装置的独立撤销功能。
检查机械装置
/shtreimel info <uuid>
显示姿态、边界框、质量、质心、质量和刚体有效性、反作用轮、队列中的力、网络延迟、连接链和加载依赖计数、分裂父实体、锁定状态、上次序列化指针、Sable 2 强制加载工单,以及可配置的分段索引分解。在 Sable 1.2.x 上,工单字段会提示 Sable 2 API 不可用。在游戏中,标题栏包含可点击的 [teleport]、[freeze]、[archive] 按钮。
分析单个实体的受力情况
/shtreimel forces start <uuid> [seconds]
/shtreimel forces show <uuid>
/shtreimel forces stop <uuid>
Shtreimel 仅对你明确选择的实体启用单个点力的记录,限于特定时长,并在停止、过期、移除或关闭时自动清理。结果将显示力组采样数、点力数量以及平均/最大力和扭矩。
查找位置信息
/shtreimel at <x> <y> <z>
/shtreimel in <fromPos> <toPos>
/shtreimel near [radius]
/shtreimel watch <uuid> [seconds]
/shtreimel unwatch
at 表示某个方块位置上存在的机械结构。in 列出所有边界框与指定区域相交的机械结构。near 列出调用者玩家周围的物体。watch 让一名工作人员订阅某机械结构的实时姿态更新,持续 N 秒(非常适合实时跟踪一艘飞艇)。
查看谁曾乘坐过
/shtreimel who <uuid>
/shtreimel who recent <uuid> [limit]
/shtreimel who player <player> [limit]
who 显示当前哪些玩家位于机械结构内部、哪些玩家正在追踪它,以及最后已知曾在该结构上的玩家。who recent 按时间从新到旧列出最近离开过的玩家,并附带他们离开多久了以及在结构上停留了多长时间。who player 列出某玩家曾乘坐过的所有机械结构,按时间从新到旧排列,每个结构都包含其最后已知的位置——通常足以找到某人声称丢失的船只。
这两个历史命令适用于未加载或已被删除的机械结构,也支持通过名称或 UUID 查询离线玩家,而这正是报告到达你手中时的常态。只要身处船体内部即算在内,无需站在顶部表面。历史记录会保存至磁盘并在重启后保留,且单个玩家反复上下车不会将其他所有人挤出机械结构的历史记录中。所有内容均在 shtreimel.occupancy 下受到限制并可配置,包括关闭选项。
传送至目标
/shtreimel tp <uuid>
/shtreimel tp player <playerName> <uuid>
/shtreimel tp back
传送到机械结构边界框的顶部。tp back 将你返回原位。
查看操作审计日志
/shtreimel audit tail [n]
/shtreimel audit since 1h
/shtreimel audit by Steve
/shtreimel audit uuid <uuid>
每条破坏性命令(删除、冻结、存档保存/恢复)都会向 <world>/shtreimel/audit.log 写入一行内容。Tail 命令读取当前及轮转后的日志。可直接在游戏中查询。
了解消失前发生了什么
/shtreimel history [limit]
/shtreimel history <uuid> [limit]
Shtreimel 会为每个 Sable 容器附加一个 SubLevelObserver,并在 Sable 销毁地块之前的确切回调处记录新增项和永久移除项。永久移除项会被镜像写入审计日志,包含有效性、姿态、边界范围、原因,以及在启用时还包括发起调用的堆栈帧。即使结构未加载,日志依然存在,并能捕获发生在单一游戏刻内的移除事件。
更完善的崩溃报告
当服务器崩溃时,Shtreimel 会添加一个带边界的 -- Shtreimel snapshot -- 区块,列出已加载的机械装置(UUID、名称、位置、边界框、有效性、票据、拓扑结构)、各维度的物理计时、最近的生命周期/移除事件、活跃的力量配置文件摘要以及存储指针。NeoForge 使用 CrashReportCallables;Fabric 则通过一个容错友好的报告 mixin 输出相同内容。
在安装了 Create 的 NeoForge 服务器上,崩溃报告还可以指出在 ContraptionCollider.collideEntities 内部正在处理的机械装置(Create Aeronautics 飞艇/螺旋桨崩溃)。Create 机械装置上下文需要 NeoForge;Create 6 和 Aeronautics 在 1.21.1 上为 NeoForge 发布。
运行 /shtreimel debug crash-header 可在不导致服务器崩溃的情况下预览该区块。
权限
在未安装权限模组的情况下,Shtreimel 使用原版操作者等级:
- Op 2:只读命令(
list、info、rank、history、who、watch、空间查找、physics-stats、dump、snapshot diff、lag autotune)。
- Op 3:破坏性和状态更改命令(
delete、freeze、archive save / restore / prune / verify、forces start / stop、audit 查询)。
- Op 4:跳过
--confirm 令牌。服务器控制台和 RCON 均为 Op 4。
如果你运行权限模组(LuckPerms、FTB Ranks、Fabric Permissions API 等),对应的节点名称为:
shtreimel.observe
shtreimel.profile
shtreimel.delete
shtreimel.delete.confirm_bypass
shtreimel.audit.read
安装
- 确保你的服务器在
mods/ 目录中包含 Sable 1.2.1 或更高版本。
- 将匹配的 jar 文件从 Releases 放入同一个
mods/ 文件夹:
- 在 NeoForge 上使用
shtreimel-neoforge-1.21.1-<version>.jar,或者
- 在 Fabric 上使用
shtreimel-fabric-1.21.1-<version>.jar。
- 启动服务器。配置文件将在
<world>/serverconfig/shtreimel-server.toml 生成,并在你编辑文件时重新加载。现有的 0.3.x 配置、冻结状态、归档、快照和审计日志仍可读。
就这样。无需在你的玩家客户端上安装任何内容。
兼容性
NeoForge
| 组件 |
所需版本 |
| Minecraft |
1.21.1 |
| NeoForge |
21.1.219 或更高版本 |
| Java |
21 |
| Sable |
1.2.1 至 2.x(>=1.2.1 <3.0.0) |
NeoForge 上可选
| 模组 |
提供的内容 |
| Create |
崩溃报告可以指明在 ContraptionCollider.collideEntities 内部活动的机械结构。可通过服务器配置中的 mixins.createContraptionContextEnabled 进行切换。 |
| Create Aeronautics |
与 Create 相同的崩溃上下文,包含 Aeronautics 的机械结构类型(例如飞艇),当这些机械结构通过 Create 的碰撞器处理时生效。 |
所有其他 Shtreimel 功能均可在与 Sable 兼容且未安装 Create 的 NeoForge 专用服务器上运行。
Fabric
| 组件 |
所需版本 |
| Minecraft |
1.21.1 |
| Fabric Loader |
0.16.9 或更高版本 |
| Fabric API |
0.110.0+1.21.1(需要 fabric-command-api-v2 和 fabric-lifecycle-events-v1) |
| Java |
21 |
| Sable |
1.2.1 至 2.x 版本(>=1.2.1 <3.0.0) |
Fabric 上可选
| 模组 |
提供的内容 |
| — |
在 0.5.0 版本中没有可选模组的集成。所有管理、审计、生命周期、冻结、归档、快照、占用率和崩溃增强功能均已内置。Create 机械结构的崩溃上下文仅限 NeoForge,因为 Create 6 和 Create Aeronautics 未发布官方的 1.21.1 Fabric 构建版本。 |
打包在 Fabric jar 中
| 组件 |
用途 |
| Fabric Permissions API 0.3.3 |
权限节点和原版 OP 回退机制与 NeoForge 相同 |
两种加载器的注意事项
- 仅安装一个 Shtreimel jar:要么
shtreimel-neoforge-1.21.1-<version>.jar,要么 shtreimel-fabric-1.21.1-<version>.jar。
- Sable Companion 随 Sable 一起提供;无需单独安装 Shtreimel。
- 在专用服务器上,玩家客户端不需要安装 Shtreimel。
Shtreimel
A server admin toolkit for Sable and Create Aeronautics. Find lag-causing airships, freeze runaways, undo accidental griefing, see who was last aboard a ship, trace exactly when a body vanished, and identify which contraption was on the server when it crashed.
NeoForge and Fabric 1.21.1. Server-only install on dedicated servers. No client mod required.
"Shtreimel" is the fur hat worn over a sable lining. It's a hat that goes on top of Sable. The name is a joke; the mod is not.
Why you want this
You run a Sable or Create Aeronautics server. Eventually one of these happens:
- Someone builds a 50,000-block monster contraption and your TPS dies. You don't know whose, where, or how to stop it without
/stop.
- A player flies an airship out of survival range and it never comes back. Or it gets stuck in midair. Or it falls into the void.
- Someone you trust runs
/sable remove on the wrong contraption and you have nothing to roll back to.
- A player reports their airship was stripped, moved, or flown off, and you have no idea who was on it.
- Sable removes a body between two ticks and your logs never recorded why.
- Your server crashes and the crash report says "physics tick" with no other information.
Shtreimel gives you commands for every one of those.
What it does
Find the lag
When a dimension's physics slice gets hot, Shtreimel ranks the most-likely-suspect bodies and prints one line in the server console with position, owner-given name, UUID, bounding box, and suspect score.
Example console line:
[shtreimel.lag] lag suspect dim=minecraft:overworld ewma=7.43ms max60=18.20ms uuid=8a1f... name="Big Blimp" plot=(10005,10003) center=(124.0,72.5,-88.3) bb=24x10x32 suspect=83
Ranking uses configurable proxies: volume, footprint, loaded chunks, Sable actors, speed, network drift, reaction wheels, queued forces, intersecting entities, and optional connected/dependency/ticket signals. Weights and caps are all in config.
If your server is heavier or lighter than typical, run /shtreimel lag autotune after a few hours of normal play and it prints recommended thresholds for <world>/shtreimel/dimension-overrides.json.
You can also pull a live ranking on demand:
/shtreimel rank
/shtreimel physics-stats
/shtreimel list
Stop the lag
/shtreimel freeze <uuid>
/shtreimel freeze nearest [radius]
/shtreimel freeze connected <uuid>
/shtreimel freeze list
/shtreimel unfreeze <uuid>
/shtreimel unfreeze connected <uuid>
freeze pins a contraption in place without pausing physics for the whole dimension. connected freezes a body and every body linked to it. The pin sticks across server restarts, survives unload, and split children inherit frozen state from a frozen parent. unfreeze wakes the body back up.
/shtreimel delete uuid <uuid> --confirm
/shtreimel delete at <x> <y> <z> --confirm
/shtreimel delete nearest --confirm
delete runs Sable's own removal path. Same cleanup as /sable remove.
Undo your mistakes
/shtreimel archive save <uuid> [tag]
/shtreimel archive list [uuid] [limit]
/shtreimel archive verify <uuid> <archiveId>
/shtreimel archive restore <uuid> <archiveId> [keepUuid] [dimension] [at <pos>]
/shtreimel archive prune
archive save writes the contraption's full block data to disk with compressed size and SHA-256 metadata. verify checks an archive before you trust it. restore brings it back, optionally with the same UUID. Legacy 0.2/0.3 archives still list and restore. Per-contraption undo.
Inspect a contraption
/shtreimel info <uuid>
Pose, bounding box, mass, center of mass, mass and rigid-body validity, reaction wheels, queued forces, network drift, connected-chain and loading-dependency counts, split parent, frozen state, last serialization pointer, Sable 2 force-load tickets, and a configurable load-index breakdown. On Sable 1.2.x, ticket fields report that the Sable 2 API is unavailable. In-game, the header has clickable [teleport], [freeze], [archive] buttons.
Profile forces on one body
/shtreimel forces start <uuid> [seconds]
/shtreimel forces show <uuid>
/shtreimel forces stop <uuid>
Shtreimel enables individual point-force recording only for bodies you explicitly select, for bounded sessions, and cleans up on stop, expiry, removal, or shutdown. Results show force-group sample count, point-force count, and average/maximum force and torque.
Find what's where
/shtreimel at <x> <y> <z>
/shtreimel in <fromPos> <toPos>
/shtreimel near [radius]
/shtreimel watch <uuid> [seconds]
/shtreimel unwatch
at says which contraption is at a block position. in lists every contraption whose bounding box intersects a region. near lists what's around the calling player. watch subscribes a staff member to live pose updates for a contraption for N seconds (great for following an airship live).
See who was aboard
/shtreimel who <uuid>
/shtreimel who recent <uuid> [limit]
/shtreimel who player <player> [limit]
who shows which players are inside a contraption right now, who is tracking it, and the last player known to have been aboard. who recent lists the players last aboard, newest first, with how long ago they were on and how long they stayed. who player lists the contraptions a player has been on, newest first, each with that body's last known position — usually enough to go find a ship someone says they lost.
Both history commands work for contraptions that are unloaded or already deleted, and for offline players by name or UUID, which is the normal state of affairs by the time a report reaches you. Being anywhere inside the hull counts, not just standing on the top face. History is saved to disk and survives restarts, and one player hopping on and off repeatedly cannot push everyone else out of a contraption's history. Everything is bounded and configurable under shtreimel.occupancy, including an off switch.
Teleport to it
/shtreimel tp <uuid>
/shtreimel tp player <playerName> <uuid>
/shtreimel tp back
Teleports to the top of the contraption's bounding box. tp back returns you to where you were.
See who did what
/shtreimel audit tail [n]
/shtreimel audit since 1h
/shtreimel audit by Steve
/shtreimel audit uuid <uuid>
Every destructive command (delete, freeze, archive save/restore) writes a single line to <world>/shtreimel/audit.log. Tail reads current and rotated logs. Query it from in-game.
Know what happened before it vanished
/shtreimel history [limit]
/shtreimel history <uuid> [limit]
Shtreimel attaches a SubLevelObserver to every Sable container and records additions and permanent removals at the exact callback, before Sable destroys the plot. Permanent removals are mirrored to the audit log with validity, pose, bounds, reason, and—when enabled—the initiating caller frame. The journal survives after a body is unloaded and catches removals that happen within a single tick.
Better crash reports
When the server crashes, Shtreimel adds a bounded -- Shtreimel snapshot -- block listing loaded contraptions (UUID, name, position, bounding box, validity, tickets, topology), per-dimension physics timing, recent lifecycle/removal events, active force-profile summaries, and storage pointers. NeoForge uses CrashReportCallables; Fabric uses the same output through a fail-soft friendly-report mixin.
On NeoForge servers with Create installed, crash reports can also name the contraption being processed inside ContraptionCollider.collideEntities (Create Aeronautics airship/propeller crashes). Create contraption context requires NeoForge; Create 6 and Aeronautics publish for NeoForge on 1.21.1.
Run /shtreimel debug crash-header to preview the block without crashing the server.
Permissions
With no permissions mod installed, Shtreimel uses vanilla op levels:
- Op 2: read-only commands (
list, info, rank, history, who, watch, spatial lookup, physics-stats, dump, snapshot diff, lag autotune).
- Op 3: destructive and state-changing commands (
delete, freeze, archive save / restore / prune / verify, forces start / stop, audit queries).
- Op 4: skip the
--confirm token. Server console and RCON are op 4.
If you run a permissions mod (LuckPerms, FTB Ranks, Fabric Permissions API, etc.), the named nodes are:
shtreimel.observe
shtreimel.profile
shtreimel.delete
shtreimel.delete.confirm_bypass
shtreimel.audit.read
Install
- Make sure your server has Sable 1.2.1 or newer in
mods/.
- Drop the matching jar from Releases into the same
mods/ folder:
shtreimel-neoforge-1.21.1-<version>.jar on NeoForge, or
shtreimel-fabric-1.21.1-<version>.jar on Fabric.
- Start the server. The config generates at
<world>/serverconfig/shtreimel-server.toml and reloads when you edit the file. Existing 0.3.x configs, frozen state, archives, snapshots, and audit logs remain readable.
That's it. Nothing to install on your players' clients.
Compatibility
NeoForge
| Component |
Required version |
| Minecraft |
1.21.1 |
| NeoForge |
21.1.219 or newer |
| Java |
21 |
| Sable |
1.2.1 through 2.x (>=1.2.1 <3.0.0) |
Optional on NeoForge
| Mod |
What it adds |
| Create |
Crash reports can name the contraption active inside ContraptionCollider.collideEntities. Toggle with mixins.createContraptionContextEnabled in server config. |
| Create Aeronautics |
Same crash context as Create, with Aeronautics contraption types (for example airships) when those contraptions are processed through Create’s collider. |
All other Shtreimel features work on a Sable-only NeoForge server with no Create installed.
Fabric
| Component |
Required version |
| Minecraft |
1.21.1 |
| Fabric Loader |
0.16.9 or newer |
| Fabric API |
0.110.0+1.21.1 (needs fabric-command-api-v2 and fabric-lifecycle-events-v1) |
| Java |
21 |
| Sable |
1.2.1 through 2.x (>=1.2.1 <3.0.0) |
Optional on Fabric
| Mod |
What it adds |
| — |
No optional mod integrations in 0.5.0. All admin, audit, lifecycle, freeze, archive, snapshot, occupancy, and crash-enrichment features are built in. Create contraption crash context is NeoForge-only because Create 6 and Create Aeronautics do not publish official 1.21.1 Fabric builds. |
Bundled inside the Fabric jar
| Component |
Purpose |
| Fabric Permissions API 0.3.3 |
Same permission nodes and vanilla op fallbacks as NeoForge |
Notes for both loaders
- Install only one Shtreimel jar:
shtreimel-neoforge-1.21.1-<version>.jar or shtreimel-fabric-1.21.1-<version>.jar.
- Sable Companion ships with Sable; no separate Shtreimel install step.
- On dedicated servers, players do not need Shtreimel on their clients.
评论 0
登录后参与评分
还没有评论,来抢沙发吧