Started by
Brohamster
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make a mod where there are NPC police that arrests you and when they arrest you I want it to teleport you to a prison structure. I don't know how to teleport players to structures but if anyone could help me I would be grateful. Thanks for reading this.
This will only work if you have specific coords for the prison: let's say you have a prison structure that always spawn at 250 60 250(thats the coords you set for the structure), You enter the prison, and locate the coords of a cell, the Structure spawn is 250 60 250, but the first cell of the prison is 270 60 260, then just do that when the NPC arrest the player, the player get teleported to 270 60 260, which is the the coords of the first cell.
Hey like a hour before you responded i figured that out but thanks for replying!