On reddit, I saw this and decided to try and recreate it. It mostly went well, except there are still some issues with the selectors.
Right now, I am spawning armor stands relative to the player's location to save the player's position and adding 1 to their timeSaveTBT
score every redstone tick. To make it so the player gets teleported back three seconds in time specifically, the armor stands are killed once the score reaches 30. When the player right clicks a fishing rod, the armor stands stop spawning and the player gets teleported to @e[type=armor_stand,name=tracker,c=1]
(the c=1 is the important part).
The c=1
works in certain situations, but it doesn't work all the time. I need a relible way to select either the oldest armor stand with the name ptracker
or the armor stand with the smallest timeSaveTBT
score.
c=1
is the closest to you, not the oldest. I'll work something out this afternoon.