CodedSakura / FabricHomes

A MC Fabric mod to add a progression to /home command, allowing more homes when providing certain items.
ISC License
8 stars 11 forks source link

Add /lastdeath command #11

Open purplecho opened 3 years ago

purplecho commented 3 years ago

Adds a /lastdeath command to teleport to the coordinates of the player's last death as well as /lastdeath info to see where and how you last died. Does not store the location/cause of deaths by falling out of the world, because there are no items left to collect after dying that way (without e.g. a grave mod) and teleporting back into the void will almost always mean dying again within seconds. Players' death info is stored in their NBT data.

Also includes a minor typo fix where a getZ() method was instead called geyZ()