Started by
Valikk
on
Topic category: Help with Minecraft modding (Java Edition)
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.
anyone?
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.