Jump to content

Recommended Posts

Posted
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?

Posted
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

Posted (edited)

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
  • 3 months later...
Posted
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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.