Yet Another Home 图标

Yet Another Home

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/yet-another-home
资源信息

Minecraft 版本: 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6

平台: forge

标签: transportation utility

资源介绍

Yet Another Home

Server-only Forge mod that adds homes, teleport requests, and a safe /back — with built-in combat protection to prevent teleporting out of PvP fights.

Commands

Command Description
/sethome [name] Save current location as a named home (defaults to home)
/home [name] Teleport to a saved home
/delhome [name] Delete a saved home
/listhomes List all your saved homes
/tpa <player> Request to teleport to another player
/tpahere <player> Request another player to teleport to you
/tpaccept / /tpdeny Accept or deny an incoming TPA request
/tpcancel Cancel a TPA request you sent
/back Return to your last teleport origin, or back to your death location
/tphere <player> [OP only] Force-teleport a player to your location

Combat Safety

Teleports are protected by two layers of configuration:

  • Hurt lockout (hurtLockoutSeconds, default 15s): If you take damage, you cannot start or complete any mod teleport until the lockout expires. Death clears the lockout so you can immediately /home or /back to your corpse.
  • Teleport warmup (teleportWarmupSeconds, default 5s): Player-initiated teleports (/home, /back, accepted TPA) wait before executing. If you take damage during the warmup, the teleport is cancelled.

These prevent using teleport commands to escape from a fight.

/back Behavior

  • Returns to your death location first (if you died recently). Cleared once used or after deathBackExpirySeconds (default 10m).
  • Falls back to your last teleport origin (a toggle: /back swaps you between where you were and where you are now). Expires after backExpirySeconds (default 5m) so teleporting out of a friend's base doesn't leave a permanent waypoint back in.

Configuration

All settings in config/yet-another-home.toml:

Option Default Description
maxHomes 1 Homes per player
opUnlimitedHomes true Operators bypass maxHomes
tpaExpirySeconds 60 How long a TPA request stays pending
deathBackExpirySeconds 600 How long after death preceding the death location
backExpirySeconds 300 How long a teleport origin is valid for /back
hurtLockoutSeconds 15 Seconds after taking damage when players can't teleport (0 to disable
teleportWarmupSeconds 5 Delay before a teleport executes (0 for instant)
opUnlimitedHomes true Operators bypass maxHomes

Compatibility

  • Server-only mod — vanilla clients can join without installing anything.
  • Fires EntityTeleportEvent.TeleportCommand so protection mods (WorldGuard, GriefPrevention, etc.) can veto teleports.
  • Saves persist across restarts via world SavedData.

AI disclosure

Coding agent was used in developing this mod.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
More Signs

价格:0 墨喵币
下载量:0

查看详情
Coinflip Plugin

价格:0 墨喵币
下载量:0

查看详情
Better Slots

价格:0 墨喵币
下载量:0

查看详情
REI Custom Command

价格:0 墨喵币
下载量:0

查看详情