Перейти к содержимому
Mineforgian

Dimensional Inventories Extension: Warp

An extension for Dimensional Inventories that adds warp commands to teleport players between dimension pools.

Загрузки
35
Подписчики
1
Обновлён
7 июня 2026 г.
Лицензия
MIT

Опубликован 2 июня 2026 г.

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

  1. Install Dimensional Inventories.
  2. Place dimensional-inventories-extension-warp-<version>.jar into your mods/ folder.

License

MIT

Центр версий

3 версий
  • Релиз37 КБ
  • Релиз35 КБ
  • Релиз21 КБ

Ченджлог

1.0.2+26.1Релиз26.1.2 · 7 июня 2026 г.

Added

  • Game-mode warp guard/warp now checks whether the player's current game mode matches the gameMode set on the pool they are warping from. If there is a mismatch (e.g. the player is in Spectator mode but the pool requires Survival), the warp is blocked with an error message. Pools without a gameMode restriction are unaffected.
1.0.1+26.1Релиз26.1.2 · 2 июня 2026 г.

Changelog

[1.0.1] — 2026-06-02

Added

  • LuckPerms / Fabric Permissions API support — permission nodes diminv.warp.self and diminv.warp.others now control access to /warp and /warp player. Falls back to vanilla OP level 4 when no permissions mod is present. Fabric Permissions API 0.7.0 is bundled via JiJ (no extra mod required).
  • Creative-mode pool Y override — when the target pool has gameMode: CREATIVE in Dimensional Inventories config, the teleport Y coordinate is forced to 100.0; X, Z, and rotation are still restored from the player's saved position.

Changed

  • Pool-based warping/warp now accepts a pool ID instead of a dimension ID. Players are teleported to whichever dimension within that pool they were last in, preserving exact coordinates. Leaving any dimension (including via portals) updates the per-pool last-dimension record. Falls back to the first dimension in the pool on first visit.
  • JSON save format v2 — positions are now nested under a "positions" key and a "lastDimensionInPool" map is written alongside them. The old flat format is still read transparently and re-saved in the new format.

Fixed

  • Fallback spawn position now always lands on a solid surface block. Two edge cases addressed:
    • getRespawnData() could return null for dimensions without explicit spawn data; falls back to BlockPos.ZERO.
    • getHeight(MOTION_BLOCKING_NO_LEAVES) returns getMinY() for ungenerated chunks, which would place the player underground; falls back to spawnPos.getY() + 1 instead.

Комментарии

Загружаем…