Dimensional Inventories Extension: Warp
Dimensional Inventories 的扩展插件,为在不同维度池之间传送玩家添加了 /warp 命令,同时保留其确切的上次位置、所属维度以及摄像机角度。
当玩家返回某个维度池时,他们将从离开时的确切位置(包括坐标和旋转角度)继续游戏——而物品栏切换则由 Dimensional Inventories 自动处理。
功能特性
- 在已配置的维度池之间进行传送
- 记录每个维度池内最后使用的维度
- 恢复精确的坐标与摄像机旋转角度
- 支持传送其他玩家
- 支持 Fabric Permissions API
- 自动补全维度池 ID
- 基于 JSON 的持久化玩家数据存储
- 兼容传送门与普通维度旅行
- 集成
/diminv warp 命令树
命令与权限
| 命令 |
权限节点 |
默认权限 |
/warp <pool> |
diminv.warp.self |
OP 等级 4 |
/warp player <player> <pool> |
diminv.warp.others |
OP 等级 4 |
/diminv warp <pool> |
diminv.warp.self |
OP 等级 4 |
/diminv warp player <player> <pool> |
diminv.warp.others |
OP 等级 4 |
本模组使用 Fabric Permissions API(已内置于 jar 文件中)。
若安装了 LuckPerms,可将权限节点授予非 OP 玩家:
/lp group vip permission set diminv.warp.self true
/lp group admin permission set diminv.warp.others true
未安装权限管理类模组时,两个权限节点均默认为 OP 等级 4。
位置记忆
每位玩家在每个维度池中的最后已知状态会被自动保存并还原。
存储数据
- 每个维度池中最后使用的维度
- 精确的 X/Y/Z 坐标
- 摄像机旋转角度(偏航角与俯仰角)
行为逻辑
- 玩家将回到上次离开该维度池的确切位置
- 坐标会在通过传送门、执行传送指令或正常维度旅行时更新
- 创造模式维度池(
gameMode: creative)始终将玩家重置到 Y=100,同时保留 X/Z 坐标
- 首次访问时,将回退至该维度池首个维度的世界出生点
数据存储
玩家数据以 JSON 文件格式存储于以下路径:
<world>/dimensional-inventories-extension-warp/<uuid>.json
数据在服务端重启后依然保留。
前置要求
- Minecraft 1.26.1
- Fabric Loader 0.19.2+
- Fabric API
- Dimensional Inventories 2.2.1+26.1
安装方法
- 安装 Dimensional Inventories。
- 将
dimensional-inventories-extension-warp-<version>.jar 放入 mods/ 文件夹。
许可证
MIT
Dimensional Inventories Extension: Warp
Extension addon for Dimensional Inventories that adds /warp commands for teleporting players between dimension pools while preserving their exact last location, dimension, and camera angle.
When players return to a pool, they continue exactly where they left off — including coordinates and rotation — while inventory switching is handled automatically by Dimensional Inventories.
Features
- Warp between configured dimension pools
- Remembers the last dimension used inside each pool
- Restores exact coordinates and camera rotation
- Supports teleporting other players
- Fabric Permissions API support
- Automatic pool ID autocompletion
- Persistent per-player JSON storage
- Compatible with portals and normal dimension travel
- Integrated
/diminv warp command tree
Commands & Permissions
| Command |
Permission Node |
Default |
/warp <pool> |
diminv.warp.self |
OP level 4 |
/warp player <player> <pool> |
diminv.warp.others |
OP level 4 |
/diminv warp <pool> |
diminv.warp.self |
OP level 4 |
/diminv warp player <player> <pool> |
diminv.warp.others |
OP level 4 |
The mod uses Fabric Permissions API (bundled inside the jar).
With LuckPerms installed, permission nodes can be granted to non-operators:
/lp group vip permission set diminv.warp.self true
/lp group admin permission set diminv.warp.others true
Without a permissions mod, both permission nodes default to operator level 4.
Position Memory
Each player's last known state in every pool is automatically saved and restored.
Stored Data
- Last used dimension inside each pool
- Exact X/Y/Z coordinates
- Camera rotation (yaw and pitch)
Behavior
- Players return to the exact location where they last left the pool
- Positions are updated during portals, warps, and normal dimension travel
- Creative pools (
gameMode: creative) always restore players at Y=100 while preserving X/Z
- First-time visits fall back to world spawn in the pool's first dimension
Storage
Player data is stored as JSON files at:
<world>/dimensional-inventories-extension-warp/<uuid>.json
Data survives server restarts.
Requirements
- Minecraft 1.26.1
- Fabric Loader 0.19.2+
- Fabric API
- Dimensional Inventories 2.2.1+26.1
Installation
- Install Dimensional Inventories.
- Place
dimensional-inventories-extension-warp-<version>.jar into your mods/ folder.
License
MIT
评论 0
登录后参与评分
还没有评论,来抢沙发吧