I've read and tried this post but I still can't figure out why instead of teleporting me when I die, it instantly teleported me to the point and didn't let me move! I don't know what I did wrong. I exactly copied what the accepted answer said, but it doesn't seem to work. Any ideas what I did wrong?
Please do not copy and paste the accepted answer 1:1 without filling the placeholders and without creating the scoreboards before usage.
You need to replace placeholders such as
X-cord with the actual X-cooridinate. You can see the world cooridinates when you press
Please mind, that you need to create the scoreboars are shown in the answer before you try to add values to them.
You can create scoreboards using this command:
/scoreboard objectives add <name> <criteria> [display name...]
/scoreboard objectives add deaths deathCount
deathCount tells the scoreboard to automatically count the amount of player-deaths.