返回命令
死得离家太远?重生后输入 /trigger back,你就会站在死亡的地方——无论是主世界还是下界。每人每次死亡仅限一次。
无需模组。无需管理员权限。玩家无需安装任何东西:服务端安装了数据包,所有人都能获得返回命令。
工作原理
|
|
| 死亡 |
Minecraft 会记住位置——数据包读取游戏自带的死亡坐标 |
| 重生 |
聊天栏会出现一个可点击的提示:/trigger back |
输入 /trigger back |
你将被传送至死亡时所在方块的中心 |
| 在其他维度? |
支持跨维度传送——在下界死亡,在主世界床铺重生,即可直接返回 |
| 每人每次死亡仅限一次 |
在你再次死亡之前,第二次执行 /trigger back 会被拒绝(可调整) |
| 在虚空中死亡? |
被拒绝——回到那里只会让你再次死亡 |
由于 Minecraft 本身会记录最近的死亡点,即使你在安装此数据包之前就已经死亡,/trigger back 也能生效。
设置
/scoreboard players set #once back_cfg 1 每次死亡允许返回一次(默认)
/scoreboard players set #once back_cfg 0 允许无限次返回至最近死亡点
该设置在服务器重启或执行 /reload 后依然保留。
安装
服务端
- 将
.zip 文件放入 <level-name>/datapacks/
- 执行
/reload,或重启服务器
单人游戏
- 将
.zip 文件放入 .minecraft/saves/<world>/datapacks/
- 执行
/reload
适用于你已经游玩的世界。它不会更改任何世界数据,也不会添加物品或配方。
为何使用数据包而非模组
通常,“返回命令”会捆绑在一个大型服务器模组或插件中,需要加载器来协调,还附带一堆你从未要求过的命令。
而这是一个仅做一件事的数据包:
- 仅服务端运行。 玩家无需安装任何东西。
- 无需管理员权限。
/trigger 命令设计上对所有玩家开放。
- 与加载器无关。 任何能运行原版数据包的环境都能运行此数据包。
已测试,非假设
本页上的每一项承诺都在真实 Minecraft 服务器上通过自动化测试进行了验证:
| 检查项 |
|
| 返回死亡点,并居中于该方块(包括负坐标) |
✅ |
| 返回其他维度(下界) |
✅ |
| 在虚空中死亡时被拒绝 |
✅ |
| 在一次死亡后再次使用会被拒绝 |
✅ |
#once 0 解除限制 |
✅ |
| 从未死亡过——被拒绝并显示消息 |
✅ |
常见问题
这是作弊吗?
它只节省你走回去的时间,不节省战斗:你死亡时仍然会掉落物品并损失经验值。你只是更快地到达那个地方。
我能在单人游戏中使用吗?
可以,使用方法相同。
玩家能用它传送到其他地方吗?
不行。唯一的目标地点是你自己最近的死亡点。
如果我在熔岩中死亡怎么办?
你会被传送到那个位置。只有在虚空中死亡才会被拒绝传送。
Back Command
Died far from home? Respawn, type /trigger back, and you are standing where
you died - in the Overworld or the Nether. Once per death.
No mod. No operator rights. Nothing for players to install: the server has the
datapack, everyone gets a back command.
How it works
|
|
| Die |
Minecraft remembers where - the datapack reads the game's own death point |
| Respawn |
A clickable hint appears in chat: /trigger back |
Type /trigger back |
You are teleported to the centre of the block where you died |
| Other dimension? |
Works across dimensions - die in the Nether, respawn in your bed, go straight back |
| Once per death |
A second /trigger back is refused until you die again (adjustable) |
| Died in the void? |
Refused - going back there would only kill you again |
Because Minecraft itself keeps track of the last death point, /trigger back
even works for deaths that happened before you installed the datapack.
Settings
/scoreboard players set #once back_cfg 1 one return per death (default)
/scoreboard players set #once back_cfg 0 unlimited returns to the last death point
The setting survives restarts and /reload.
Installation
Server
- Put the
.zip into <level-name>/datapacks/
/reload, or restart the server
Singleplayer
- Put the
.zip into .minecraft/saves/<world>/datapacks/
/reload
Works on a world you already play. It changes no world data, adds no items and
no recipes.
Why a datapack and not a mod
A back command usually comes bundled in a large server mod or plugin, with a
loader to keep in step and a pile of commands you never asked for.
This is a datapack that does exactly one thing:
- Server-side only. Players install nothing.
- No operator rights needed.
/trigger is open to every player by design.
- The loader does not matter - anything that runs vanilla datapacks runs this.
Tested, not assumed
Every promise on this page is checked by an automated test on a real
Minecraft server:
| Check |
|
| Back to the death point, centred on the block (also at negative coordinates) |
✅ |
| Back into another dimension (Nether) |
✅ |
| Death in the void is refused |
✅ |
| Second use after one death is refused |
✅ |
#once 0 lifts the limit |
✅ |
| Never died - refused with a message |
✅ |
FAQ
Is this a cheat?
It saves you the walk back, not the fight: you still drop your items and lose
your experience when you die. You only get to the place faster.
Can I use it in singleplayer?
Yes, the same way.
Can players teleport anywhere else with it?
No. The only destination is your own last death point.
What if I died in lava?
You are sent back to that spot. Deaths in the void are the only ones refused.
评论 0
登录后参与评分
还没有评论,来抢沙发吧