Описание
# Back Command
Died far from home, in the void, or inside lava? Back Command gives every player one chance to return after each death.
Simply respawn and use:
`/back`
The mod will teleport you to your recorded death location and then clear it. You will receive another `/back` only after dying again.
## Features
- Return to your latest death location with `/back`
- Cross-dimensional teleportation
- Safer recovery from lava deaths
- Safer recovery from void deaths
- Instant death command with `/suicide`
- Server-side command and teleportation logic
## Safe recovery
Teleporting to the exact location of a void or lava death would usually kill the player again. Version 1.0.1 improves this behaviour by remembering the player's latest safe grounded position.
When a player dies in the void or while still inside lava, `/back` uses that previously recorded safe position.
For all other deaths, `/back` uses the actual death coordinates.
## Commands
### `/back`
Returns you to the location recorded by your latest death.
The location is consumed after a successful teleport. Using the command again before another death displays:
`No death location recorded.`
### `/suicide`
Instantly kills your player and creates a new location for `/back`.
This uses a direct kill operation instead of dealing a large amount of normal damage. Regular Minecraft inventory-drop rules still apply.
## Important limitation
Locations are currently stored in memory and do not survive a complete world or server restart.
## Required
- Minecraft 26.2
- Fabric Loader
- Fabric API