Coding Help i spawn at the wrong place


hi, i made a mod that expands the greenhouse. hence the place the door has been chenged. now when i click the green house door, i spawn at the wrong place and not infront of the door. i dont know how to fix this.
maybe i need to add invisble barriers, or like a certain place(cords) to spawn into. i really dont know. and any help will be well appreciated.
thank you in advance