介绍
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/homeor/backto 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:
/backswaps you between where you were and where you are now). Expires afterbackExpirySeconds(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.TeleportCommandso 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.
常见问题
Yet Another Home 支持哪些 Minecraft 版本?
Yet Another Home 支持 Minecraft Java 版 1.20.1–1.20.6,共 6 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Yet Another Home 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分