How do i teleport player to a block then they enter a dimension?

Started by Valikk on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i teleport player to a block then they enter a dimension?

Basically, I have a structure that spawns in a dimension. It has a custom block in it named PlayerSpawn. Basically, I want to make it so when a player enters the dimension, they get teleported to that block, and then the block despawns. I asked an AI about it and tried to find a solution on forums, but I did not find anything.

Joined Apr 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
anyone?
Sat, 08/01/2026 - 23:22

anyone?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey,I have made a similar…
Sun, 08/02/2026 - 07:45

Hey,

I have made a similar portal system. You just have to check your structure, calculate the block's offset from that structure's corner. E.g. if your structure is 9x9x9 and that target block is in the middle, it should then be 5x5x5 meaning when generating the structure, you add that 5x5x5 offset on top of that generate structure pos to get that block's position.