Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Player pos


NastyStuffy
 Share

Recommended Posts

On 8/14/2021 at 4:34 PM, Luis_ST said:

PlayerEntity#position returns the current player pos as an Vec3
PlayerEntity#teleportToWithTicket teleports the player to the given position

I figured out what # is, but can you please give me an example code on how to use it? I tried to create a variable of type String (String PlPos = getPosition (); but nothing works for me

Link to comment
Share on other sites

do you know basic java?

String PlPos = getPosition ();
  1. the method is called position and not getPosition
  2. the variable which is return by position is a Vec3 and not a String
Edited by Luis_ST
Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.