Go Home Already
另一种 /home 解决方案
一个轻量级的 NeoForge 1.21.1 传送指令模组。玩家可以设置家并返回,或者跳回最后的床/重生点。管理员拥有独立的命令树,用于管理其他玩家的家和重生点。
玩家命令
| 命令 |
描述 |
/sethome |
将你的家设置为当前位置和维度。 |
/home |
传送到你保存的家。如果未设置家,或保存的维度不再存在,则失败。 |
/delhome |
删除你保存的家。可选择运行两次以确认,详见 delHomeConfirmSeconds。 |
/bed |
传送到你最后的重生点(床或重生锚)。如果未设置,则退回世界出生点。 |
/tobed |
/bed 的别名。 |
/back |
返回到你上次传送前所在的位置,或死亡地点。再次运行可返回原处。 |
你可以选择为传送设置冷却时间。
为了进一步平衡,你可以将 warmupSeconds 设置为大于零的值,此时传送需要花费相应的时间才能完成;在此期间如果玩家移动或受到伤害,传送将被取消。默认情况下此功能关闭。
管理员命令
管理员命令位于根命令 /gohome gamemaster 下。它们接受 <targets> 选择器,因此可以使用 @a、@p[...] 或玩家名称;每个命令都会报告影响了多少玩家。
| 命令 |
描述 |
/gohome gamemaster sethome <targets> |
将目标玩家的家设置为 你 当前的位置和维度。 |
/gohome gamemaster sethome <targets> <position> |
将目标玩家的家设置为指定坐标,位于你当前的维度中。 |
/gohome gamemaster clearhome <targets> |
移除目标玩家保存的家。 |
/gohome gamemaster clearbed <targets> |
将目标玩家的重生点重置为默认值(世界出生点)。 |
| 键 |
默认值 |
描述 |
enableSetHome |
true |
启用 /sethome。 |
enableHome |
true |
启用 /home。 |
enableBed |
true |
启用 /bed 和 /tobed。 |
enableDelHome |
true |
启用 /delhome。 |
delHomeConfirmSeconds |
0 |
玩家需要重复运行 /delhome 以确认删除的秒数。0 表示第一次运行即删除。范围:0–300。/sethome 会取消待处理的删除操作。 |
enableBack |
true |
启用 /back。关闭时,不会记录任何位置。 |
backOnDeath |
true |
记录死亡地点,以便 /back 能返回此处。关闭时,/back 仅返回传送开始的位置。 |
cooldownSeconds |
5 |
传送命令的冷却时间(秒),适用于 /home、/bed 和 /back。设置为 0 以禁用。范围:0–86400。不适用于 /sethome、/delhome 或管理员命令。 |
bypassLevel |
2 |
跳过传送冷却和预热时间的权限等级。范围:0–4。0 表示无人需等待。 |
warmupSeconds |
0 |
玩家在传送完成前必须静止不动的秒数。0 表示立即传送。范围:0–60。 |
warmupCancelOnMove |
true |
当玩家移动超过半格时,取消正在预热的传送。 |
warmupCancelOnDamage |
true |
当玩家受到伤害时,取消正在预热的传送。 |
[gameMaster]
| 键 |
默认值 |
描述 |
enabled |
false |
整个 /gohome gamemaster 命令树的主开关。默认关闭。 |
permissionLevel |
2 |
使用管理员命令所需的权限等级。范围:0–4。 |
[gameMaster.administration]
| 键 |
默认值 |
描述 |
enabled |
true |
启用 sethome / clearhome / clearbed 管理员命令。 |
Go Home Already
Another /home solution
A lightweight teleport-commands mod for NeoForge 1.21.1. Players can set a home and return to it, and or jump back to their last bed/respawn point. Administrators get a separate command tree for managing other players' homes and respawn points.
Player commands
| Command |
Description |
/sethome |
Sets your home to your current position and dimension. |
/home |
Teleports you to your saved home. Fails if no home is set, or if the saved dimension no longer exists. |
/delhome |
Deletes your saved home. Optionally has to be run twice to confirm, see delHomeConfirmSeconds. |
/bed |
Teleports you to your last respawn point (bed or respawn anchor). Falls back to world spawn if none is set. |
/tobed |
Alias for bed. |
/back |
Returns you to where you were before your last teleport, or to where you died. Running it twice takes you back again. |
You are able to configure a cool down for tp's if you wish.
For further balance you can set warmupSeconds above zero and a teleport takes that long to complete, and is cancelled if the player moves or takes damage in the meantime. It is off by default.
Admin commands
Admin commands are found under root /gohome gamemaster They accept a <targets> selector, so @a, @p[...], or a player name will do; each reports how many players it affected.
| Command |
Description |
/gohome gamemaster sethome <targets> |
Sets the target players' home to your current position and dimension. |
/gohome gamemaster sethome <targets> <position> |
Sets the target players' home to explicit coordinates, in your current dimension. |
/gohome gamemaster clearhome <targets> |
Removes the target players' saved home. |
/gohome gamemaster clearbed <targets> |
Resets the target players' respawn point back to default (world spawn). |
| Key |
Default |
Description |
enableSetHome |
true |
Enables /sethome. |
enableHome |
true |
Enables /home. |
enableBed |
true |
Enables /bed and /tobed. |
enableDelHome |
true |
Enables /delhome. |
delHomeConfirmSeconds |
0 |
Seconds the player has to repeat /delhome to confirm the delete. 0 deletes on the first run. Range: 0–300. A /sethome cancels a pending delete. |
enableBack |
true |
Enables /back. While off, nothing is recorded at all. |
backOnDeath |
true |
Records the death spot so /back returns to it. With this off, /back only returns to where a teleport started. |
cooldownSeconds |
5 |
Cooldown in seconds for teleport commands, shared across /home, /bed and /back. Set to 0 to disable. Range: 0–86400. Does not apply to /sethome, /delhome, or gamemaster commands. |
bypassLevel |
2 |
Permission level that skips the teleport cooldown and warmup. Range: 0–4. 0 means nobody waits. |
warmupSeconds |
0 |
Seconds a player must stand still before a teleport completes. 0 teleports instantly. Range: 0–60. |
warmupCancelOnMove |
true |
Cancels a warming up teleport when the player moves more than half a block. |
warmupCancelOnDamage |
true |
Cancels a warming up teleport when the player takes damage. |
[gameMaster]
| Key |
Default |
Description |
enabled |
false |
Master switch for the entire /gohome gamemaster tree. Off by default. |
permissionLevel |
2 |
Permission level required to use gamemaster commands. Range: 0–4. |
[gameMaster.administration]
| Key |
Default |
Description |
enabled |
true |
Enables the sethome / clearhome / clearbed admin commands. |
评论 0
登录后参与评分
还没有评论,来抢沙发吧