• check_circle Functions
  • 9,778 views, 6 today
  • 1,702 downloads, 1 today
  • 20
  • 18
  • 13
codefox_'s Avatar codefox_
Level 34 : Artisan Fox
7
This datapack teleports you to the location of your last death when you click the message in chat that appears when you die (or with /function lastdeathtp:tp). This could prove useful if you died in a very unfortunate location and really don't want to lose your items. (It also gives you invulnerability for 5 seconds after the teleport)

Disclaimer:
The datapack has to be installed, before the death occurred and currently only works in Singleplayer (might make it Multiplayer compatible in the future, we'll see) it's Multiplayer compatible now, baby!
Also note that you have to be in the dimension you died in when theleporting, the datapack does not keep track of your dimension. (though I think it'd be possible to fix that, might do that at some point idk)
  If you find any bugs, please let me know in the comments and I'll look into it

Really the only reason I updated this to multiplayer is, because JankWangly wanted to try MineControl on a server, which wouldn't have worked with the old version. So if you wanna have some fun and are looking to get your jank wanged, head on over to his twitch channel!





v1.1 - MINOR UPDATE:
- Added a message with a click event in chat after you die that teleports you when you click it.

v1.1.1 - Bug Fix
- Fixed bug where the player wouldn't get resistance on tp

v1.1.2 - Updated to 1.18
- Still worked, as expected - Just updated the pack_format accordingly

v2 - Multiplayer Compatibility!

- the datapack now is (for the most part) multiplayer compatible
CompatibilityMinecraft 1.13
toMinecraft 1.18
Tags

1 Update Logs

Full Overhaul - Multiplayer Compatibility added! : by codefox_ 05/16/2022 2:04:14 pmMay 16th, 2022

I completely overhauled the datapacks functions - Instead of using an armour stand to remember your death it now uses scoreboards. This makes everything smoother and more efficient, but more importantly this mean that it is now -Multiplayer Compatible-. Yep, you can throw this thing right in your server world now and everyone (with the permission to use the /function command) can enjoy the ability to teleport to their death after they've died.

Now, I should note that there are still some bugs that'll happen in multiplayer, but none of them should be too much of a problem - one bug I already know will happen, is that if two people die in the same, usually unloaded chunk, if one of the players dies again or teleports and leaves before the other player does, the other player won't be able to teleport since the chunk will be unloaded. Since in most cases people will teleport back to their death right away though, this shouldn't really be a problem. If you find any more bugs, please let me know in the comments!

Create an account or sign in to comment.

Jetsh0ck
05/26/2022 6:10 am
Level 9 : Apprentice Warrior
Jetsh0ck's Avatar
Hi, is it possible for you to make something similar but using the /trigger command? Since, in a multiplayer not everyone has OP
1
codefox_
05/26/2022 8:37 pm
Level 34 : Artisan Fox
codefox_'s Avatar
Here you go

https://www.mediafire.com/file/vxjzhqlx8n8915c/LastDeathTP_V2_with_trigger.zip/file

The chat message is set to the trigger as well, so you can either use /trigger deathTP set 1 or just click the message (without having op)
Lmk if you encounter any problems
2
bucketishere
03/18/2023 6:18 am
Level 1 : New Miner
bucketishere's Avatar
can you fix the /trigger command please? it does not seem to be working for me since the /trigger command is missing. when i tested it, it didn't work. thank you.
1
Goldenflyfisher
05/18/2022 12:14 pm
Level 34 : Artisan Mountaineer
Goldenflyfisher's Avatar
very cool idea, would have helped me out in a couple of tight spots
1
MechaKillerRichMC
05/16/2022 2:42 pm
Level 10 : Journeyman Explorer
MechaKillerRichMC's Avatar
This works for version 1.19?
1
codefox_
05/16/2022 2:47 pm
Level 34 : Artisan Fox
codefox_'s Avatar
No existing commands got changed afaik, should work
1
Leunaichs123
03/30/2022 12:40 am
Level 1 : New Miner
Leunaichs123's Avatar
can you make this s its /back
1
codefox_
03/30/2022 12:11 pm
Level 34 : Artisan Fox
codefox_'s Avatar
No, you can't make fully custom commands with datapacks. You're only able to utilize /trigger and /function
1
Korskey
07/13/2021 4:21 am
Level 1 : New Miner
Korskey's Avatar
nice datapack!
2
THINK86200
07/12/2021 10:44 pm
Level 47 : Master Necromancer
THINK86200's Avatar
This Pack is amazing! One thing I see that you can do with it is set up a death scoreboard, so once you die, the scoreboard will/can run a trigger command to /execute run function lastdeathtp:tp after a few seconds... Though there would be issues with it being automatic... It can appear up in chat every time you die so you have the option to do so if you don't have cheats on in a world. There seems to be so many possibilities you can do with this code you discovered/invented!!!

Other than that 9/10 I love this Datapack!!!! :)

I kinda did a datapack like this, although its more hardcore driven where you are forced to have only one life. I'd love to see your thoughts on mine XP
www.planetminecraft.com/data-pack/true-ultra-hardcore/
2
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome