#How do you get the coordinates of a players spawn?

14 messages · Page 1 of 1 (latest)

olive vigil
#

I want to create a "warp" prism that will let people warp home and then warp back to where they were when they used it. However, I am having an issue with getting the players spawn point coordinates. I am attaching the script I currently have as a reference. Any help would be really appreciated.

iron brambleBOT
#

Paste version of prisms.js from @olive vigil

sweet fog
#

try event.player.minecraftPlayer.getBedSpawnLocation()

#

definitely an old javadoc, but i assume it still exists

pure sigil
#

1.9? Lol

sweet fog
#

yep lol

pure sigil
#

lexxie has a copy of 1.19 javadocs on her github.io

sweet fog
#

i just look up minecraft forge minecraftPlayer on google and that got this

#

??javadocs

iron brambleBOT
# sweet fog ??javadocs

You can find online JavaDocs for **Forge **and Fabric by clicking the button.
If you want to see classes added by Minecraft, choose Forge.

If the page doesn't load, click the "Status" button or ping @timid fern.

sweet fog
#

last time i checked it was down, but it seems to be working now

timid fern
#

down?

#

it was never down o-o