Multiverse / Multiverse-NetherPortals

A Plugin for Multiverse-Core that handles the Notch style nether portals across multiple worlds.
BSD 3-Clause "New" or "Revised" License
79 stars 52 forks source link

Fix entity location when going through end portal #270

Closed benwoo1110 closed 2 months ago

benwoo1110 commented 2 months ago

According to a minecraft wiki and my testing:

Players who enter the End spawn at coordinates (100, 49, 0), facing west toward the main island;
other entities that enter the End spawn at coordinates (100.5, 50, 0.5), in the middle of and 1 block higher than the platform.

[15:27:56 INFO]: [Multiverse-NetherPortals] Entity Jungle Planks is teleporting from Location{world=CraftWorld{name=world},x=-11.78125,y=70.6005859375,z=10.139892578125,pitch=0.0,yaw=95.308624} to Location{world=CraftWorld{name=world_the_end},x=100.5,y=50.0,z=0.5,pitch=0.0,yaw=90.0} [15:28:43 INFO]: [Multiverse-NetherPortals] Entity Villager is teleporting from Location{world=CraftWorld{name=world},x=-11.5,y=70.0,z=10.5,pitch=0.0,yaw=165.47754} to Location{world=CraftWorld{name=world_the_end},x=100.5,y=50.0,z=0.5,pitch=0.0,yaw=90.0}