How can I teleport to an unloaded entity in Minecraft?

[BACK]
How can I teleport to an unloaded entity in Minecraft?
Posted On: June 21, 2023

I am using invisible invulnerable ArmorStands to create "warps" and "homes" in a map. The idea is that I can spawn them in with a specific name, and then teleport a player back to them like this:.


/tp @p @e[name=PlayerHome,type=ArmorStand].


These warps/homes need to be able to be moved, so I cannot just use static coordinates. .


The ArmorStand method was working fine at first, however I have noticed that if the entity is not within spawn chunks or a radius of the player, I cannot teleport or interact with it in any way. .


Is there any way I can teleport to a far-away entity? Or have it become loaded first?


I was thinking of doing something with /spreadplayers, which loads chunks that entities are spread to, but I cannot get it to target the unloaded ArmorStand.


Question from user SirBenet at stackexchange.


Answer:

You can spawn a redstone block a certain numbers above or below the point of the player with an activator rail ontop. Then spawn a command minecart on the activator rail with the command /spreadplayers ~ ~ 1 false @e[name=PlayerHome,type=ArmorStand,c=1,r=2].


Because the /spreadplayers will load the chunk the entity is spread to, the commandblock minecart on the activator rail will permenantly keep the chunk that the armorstand is in loaded. When moving the point, run a fill command and a kill command at the previous home to remove the traces. When you are teleporting the player back to their home, you can simply offset the teleportation by a few blocks in the y coordinate.


Answer from user Moddl at stackexchange.



[BACK]
How can I teleport to an unloaded entity in Minecraft?
Posted On: June 21, 2023

I am using invisible invulnerable ArmorStands to create "warps" and "homes" in a map. The idea is that I can spawn them in with a specific name, and then teleport a player back to them like this:.


/tp @p @e[name=PlayerHome,type=ArmorStand].


These warps/homes need to be able to be moved, so I cannot just use static coordinates. .


The ArmorStand method was working fine at first, however I have noticed that if the entity is not within spawn chunks or a radius of the player, I cannot teleport or interact with it in any way. .


Is there any way I can teleport to a far-away entity? Or have it become loaded first?


I was thinking of doing something with /spreadplayers, which loads chunks that entities are spread to, but I cannot get it to target the unloaded ArmorStand.


Question from user SirBenet at stackexchange.


Answer:

You can spawn a redstone block a certain numbers above or below the point of the player with an activator rail ontop. Then spawn a command minecart on the activator rail with the command /spreadplayers ~ ~ 1 false @e[name=PlayerHome,type=ArmorStand,c=1,r=2].


Because the /spreadplayers will load the chunk the entity is spread to, the commandblock minecart on the activator rail will permenantly keep the chunk that the armorstand is in loaded. When moving the point, run a fill command and a kill command at the previous home to remove the traces. When you are teleporting the player back to their home, you can simply offset the teleportation by a few blocks in the y coordinate.


Answer from user Moddl at stackexchange.



[BACK]

Is Sebastian Sallow a pure-blood wizard? Is Sebastian Sallow a pure-blood wizard?

Posted On: July 20, 2023
Do we know Sebastian Sallow's blood status in the game? Is he pure-blood, half-blood, or Muggle-born? Question from user Shaun Roselt at stackexchange. Answer: Sebastian is definitely ...[More]


Misadventures of P.B Winterbottom leaderboards Misadventures of P.B Winterbottom leaderboards

Posted On: March 24, 2023
The Misadventures of P.B Winterbottom is absolutely brilliant (if maybe a little short). Anyway, now that I've finished it, I'm in the process of going through the bonus shorts (levels), and a...[More]


How to get past the old man in Viridian City in Pokemon Leaf Green? How to get past the old man in Viridian City in Pokemon Leaf Green?

Posted On: March 20, 2024
It's been a while since I last played Pokémon Leaf green.I am playing it with my nephew and he asked me how to get to first Gym (Brock) to get the Boulder badge.Here is the problem:.An old man is lyi...[More]


What does the Auto icon do? What does the Auto icon do?

Posted On: January 24, 2023
When you're playing a Yu-Gi-Oh! Master Duel game, there are three icons in the bottom right (by default).On the far right is a battle log which lists every action taken by both players (log icon).In t...[More]


How can I use the trackpad for the sliders like the stars of the Vita version of f & f 2nd? How can I use the trackpad for the sliders like the stars of the Vita version of f & f 2nd?

Posted On: March 15, 2024
On the PlayStation Vita version of Hatsune Miku Project Diva f and f 2nd, you have stars, which you activate by moving your finger on the touch screen on any direction.Now that I have Hatsune Miku Pro...[More]


How do you get to these chests in Hogwarts Legacy? How do you get to these chests in Hogwarts Legacy?

Posted On: August 22, 2023
In the gatehouse of the High Keep you can see a loft and Revelio reveals some chests up there but I can’t figure out how to reach them. It looks like you should be able to climb this pile of cra...[More]


What is the hidden trophy below Lore Master? What is the hidden trophy below Lore Master?

Posted On: August 25, 2023
In Lucky Luna's trophy list there is a hidden Story Mode trophy marked ??? near the bottom of the list. It sits between the trophies for Lore master and Taking flight. What are the requirements fo...[More]


How the Hit Point color bar is calculated? How the Hit Point color bar is calculated?

Posted On: January 31, 2023
I have Silver and Gold (the 2nd gen) in mind, but I guess the logic is the same for the whole serie. I would like to know how the Hit Point color bar is calculated. I guess it would be something li...[More]


Where is Alice in Kingdom Hearts? Where is Alice in Kingdom Hearts?

Posted On: February 27, 2023
Apparently I have to find Alice, because she has gone missing and you can't have a trial without a defendant (or so says the Queen, and I am going to take her at her word, because I don't want...[More]


How do I find out the mythology and history of my Fortress? How do I find out the mythology and history of my Fortress?

Posted On: April 28, 2024
I've created a nice fortress with taverns, beds, dining room, etc, but how do I access some of the mythology of the world they are in?I have no idea of the context and the history of my world, but I'm...[More]