Posted August 14, 20214 yr How to get the player's coordinates and interact with them (for example, teleport to other coordinates)?
August 14, 20214 yr PlayerEntity#position returns the current player pos as an Vec3 PlayerEntity#teleportToWithTicket teleports the player to the given position
August 15, 20214 yr Author 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 What does # stand for?
August 15, 20214 yr Author 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
August 15, 20214 yr do you know basic java? String PlPos = getPosition (); the method is called position and not getPosition the variable which is return by position is a Vec3 and not a String Edited August 15, 20214 yr by Luis_ST
November 28, 20213 yr On 8/15/2021 at 10:36 PM, NastyStuffy said: 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 what does the hashtags mean
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.