Teleport the player to overworld spawn (regardless of dimension)

Started by 0V3R10RD on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Teleport the player to overworld spawn (regardless of dimension)

Hi there,

Is it possible to have the player upon item use be teleported to their spawn point in the overworld even if they're in another dimension?

I have some ideas for how this could be done, if I figure it out I'll post it here. But if anyone has an idea, let me know!

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use execute command…
Fri, 07/21/2023 - 08:51

You can use execute command and run it as this player:

/execute in <dimensionname> run tp @s <pos>