im making an item that i want to teleport the player to their spawnpoint when they right click with it. I want to know how i can get the coordinates of the players spawnpoint, so i can teleport the player there when they use the item. thanks in advance
Use EntityPlayer#getBedLocation(int dimension) to get the player's spawn point for the specified dimension. The Entity#dimension field contains an Entity's current dimension.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
im making an item that i want to teleport the player to their spawnpoint when they right click with it. I want to know how i can get the coordinates of the players spawnpoint, so i can teleport the player there when they use the item. thanks in advance
Use EntityPlayer#getBedLocation(int dimension) to get the player's spawn point for the specified dimension. The Entity#dimension field contains an Entity's current dimension.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
ok thanks